API for Doctors of a Hospital which has been allocated by the govt. for testing, quarantine as well as well being of COVID-19 patients. Submitted to Arpan Garg(Coding Ninjas) by Shubham Rakshit as Mock Interview.
- Clone or Download the Repo.
cd covid19-api
goto the Repo using Terminal.- Run
mongod
to start the MongoDB Database. - Run
npm start
to ignite the project. - Use Postman to test the api.
- Register a Doctor:
[POST]: /api/v1/doctors/register
- Login for Doctor:
[POST]: /api/v1/doctors/login
- Register a patient:
[POST]: /api/v1/patients/register
- Create Patient report:
[POST]: /api/v1/patients/:id/create_report
- Fetch All Reports of a Patient
[GET]: /api/v1/patients/:id/all_reports
- Fetch All Reports Based on a Status:
[GET]: /api/v1/reports/:status