Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/yashvardhan-kukreja/avenue-server
- Owner: yashvardhan-kukreja
- Created: 2018-05-05T09:20:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-05-06T15:59:53.000Z (over 6 years ago)
- Last Synced: 2024-11-07T06:02:09.123Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 35.2 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Avenue - Server Side code
## AngelHack 2018API 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: }