Beispiel #1
0
def signup():
    return jsonify(
        MobileService.registerUser(required_param("firstName"),
                                   required_param("lastName"),
                                   required_param("age"),
                                   required_param("sex"),
                                   required_param("pincode"),
                                   required_param("college"),
                                   required_param("email"),
                                   required_param("password")))
Beispiel #2
0
def postDisease():
    return jsonify(MobileService.storeDoctorsVerdict(required_param("id"), required_param("testResult"),
                                                     required_param("disease")))
Beispiel #3
0
def fetchfetchAllUsersInfo():
    return jsonify(MobileService.fetchAllUsersInfo())
Beispiel #4
0
def postAnswers():
    return jsonify(MobileService.addAnswers(g.json_body))
Beispiel #5
0
def getQuestions():
    return jsonify(MobileService.getQuestions())
Beispiel #6
0
def login():
    return jsonify(MobileService.login(required_param("email"), required_param("password")))
Beispiel #7
0
def getUsers(id):
    return jsonify(MobileService.getUsers(id))
Beispiel #8
0
def storeDoctorsVerdict():
    return jsonify(
        MobileService.storeDoctorsVerdict(required_param("label"),
                                          required_param("firstName"),
                                          required_param("lastName")))
Beispiel #9
0
def fetchSymptomsForCollege():
    return jsonify(
        MobileService.fetchSymptomsForCollege(required_param("college")))
Beispiel #10
0
def fetchSymptomsForUser():
    return jsonify(
        MobileService.fetchSymptomsForUser(required_param("firstName"),
                                           required_param("lastName")))
Beispiel #11
0
def fetchSymptomsForPincode():
    return jsonify(
        MobileService.fetchSymptomsForPincode(required_param("Pincode")))