more commenting on API controller for appointments and removed unnecessary response formats in app/controllers/appointments_controller.rb