Skip to content

SATYAM-DCS/Covid-19-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Covid-19-API

Information about API:

Theme:

  • We’re going to design an API for the doctors of a Hospital which has been allocated by the govt for testing and quarantine + well being of COVID-19 patients.
  • There can be 2 types of Users
  • Doctors
  • Patients
  • Doctors can log in
  • Each time a patient visits, the doctor will follow 2 steps
  • Register the patient in the app (using phone number, if the patient already exists, just return the patient info in the API)
  • After the checkup, create a Report
  • Patient Report will have the following fields
  • Created by doctor
  • Status (You can use enums if you want to):
  • Can be either of: [Negative, Travelled-Quarantine, Symptoms-Quarantine, Positive-Admit]

Routes

  1. Register a Doctor: [POST]: /api/v1/doctors/register
  2. Login for Doctor: [POST]: /api/v1/doctors/login
  3. Register a patient: [POST]: /api/v1/patients/register
  4. Create Patient report: [POST]:/api/v1/patients/:id/create_report
  5. Fetch All Reports of a Patient [GET]: /api/v1/patients/:id/all_reports
  6. Fetch All Reports Based on a Status: [GET]: /api/v1/reports/:status

🚀 About Me

I'm a full stack developer...

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors