예제 #1
0
def patch_appointment(appointment_id):
    return Response(
            dumps(
                {
                    'response' : AppointmentController.untrack_appointment(appointment_id)
                }
            ),
            mimetype='application/json',
            status=200
    )
예제 #2
0
def post_appointment():
    return Response(
            dumps(
                {
                    'response' : AppointmentController.post_appointment()
                }
            ),
            mimetype='application/json',
            status=200
    )
예제 #3
0
def get_appointments(doctor_id):
    return Response(
            dumps(
                {
                    'response' : AppointmentController.get_appointments(doctor_id)
                }
            ),
            mimetype='application/json',
            status=200
    )