Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yashvardhan-kukreja/avenue-server

**AngelHack 2018** An early warning disease system
https://github.com/yashvardhan-kukreja/avenue-server

Last synced: 29 days ago
JSON representation

**AngelHack 2018** An early warning disease system

Awesome Lists containing this project

README

        

# Avenue - Server Side code
## AngelHack 2018

API documentation

## Routes Structure

**=> Base URL:**
https://avenue-angelhack.herokuapp.com

**=> Authentication Routes:**

Doctor Register
- POST /authenticate/doctor/register : Parameters (name, email, password, contact)
- Response : {success: true, message: "Doctor registered successfully"}

Doctor Login
- POST /authenticate/doctor/login : Parameters (email, password)
- Response : {success: true, message: "Doctor logged in successfully", doctor: }

Disease Register
- POST /authenticate/disease/register : Parameters (name, description)
- Response : {success: true, message: "Disease registered successfully"}

Normal User Register
- POST /authenticate/user/register : Parameters (name, address, geoaddress, email, password, contact)
- Response : {success: true, message: "User registered successfully"}

Normal User Login
- POST /authenticate/user/login : Parameters (email, password)
- Response : {success: true, message: "User logged in successfully", user: }

**=> Doctor Routes:**

Close a case
- POST /doctor/closeCase/:patId/:docId : URL Parameters (patientId, doctorId)
- Response : {success: true, message: "Case closed successfully"}

Fetch all patients of a specific doctor
- POST /doctor/fetchAllPatients/:id : URL Parameters (doctorId)
- Response: {success: true, message: "Fetched all the patients", patients: }

Fetch geocoordinates of all the open cases
- GET /doctor/fetchAllCoordiantes
- Response: {success: true, message: "Coordinates fetched successfully", coordinates: }

Open a case by a specific doctor
- POST /doctor/openCase/:docId : URL Parameters (doctorId), Parameters (name, address, geoaddress, email, contact, disease_name, disease_desc, img_url)
- Reponse: {success: true, message: "Patient registered successfully"}

Locate all the open cases within 4km of current location
- POST /doctor/nearbyCases : Parameters (current_lat, current_long)
- Response: {success: true, message: "Fetched the cases within 4km", cases: }