-
-
Returns: JWT access token and refresh token upon successful authentication.
-
Status Codes: 200 (Success), 400 (User does not exist), 401 (Wrong password), 500 (Internal server error).
{ "email": "[email protected]", "password": "string" }
{ "token": "string", "refreshToken": "string" }
-
-
- Returns: Confirmation message upon successful logout.
- Status Codes: 201 (Logout successful), 500 (Internal server error).
{ "refreshToken": "string" }
-
- Returns: Confirmation message upon successful registration.
- Status Codes: 201 (User registered successfully), 500 (Error registering user), 501 (User already exists).
{ "email": "[email protected]", "password": "string" }
-
- Returns: A new JWT access token.
- Status Codes: 200 (New token generated), 400 (Invalid token), 401 (No token provided).
{ "refreshToken": "string" }
{ "token": "string", }
-
- Returns: User-specific data including username, randomInfo1, arrayOfInfo, and infoObject.
- Status Codes: 200 (Data retrieved), 401 (Access denied), 500 (Internal server error).
{ "username": "string", "randomInfo1": "string", "arrayOfInfo": [ "string" ], "infoObject": { "infoId": 0, "infoText": "string" } }
-
- Returns: Mock medical data including patientId, diagnosis, treatmentPlan, and nextAppointment.
- Status Codes: 200 (Data retrieved), 500 (Internal server error).
{ "patientId": "string", "diagnosis": "string", "treatmentPlan": { "medication": "string", "dosage": "string", "frequency": "string" }, "nextAppointment": "2023-11-18" }
-
- Returns: Mock diagnosis based on the provided patient information.
- Status Codes: 200 (Diagnosis provided), 400 (Bad request), 500 (Internal server error).
{ "age": 0, "symptoms": [ "string" ] }
{ "diagnosis": "string" }
-
- Returns: Object representing positive and negative chance for a heart disease
- Status Codes: 200 (Chances provided), 400 (Incorrect data), 500 (Internal server error).
{ "age": "string", "cholesterol": "string", "pressure" : "string" }
{ "negativeChance" : "float", "positiveChance" : "float" }