The API is deployed on render(on free tier, hence expect a slow initial response) and the postman collection has the API templates
Please go ahead and fork this Postman collection to test the APIs API Collection
You can also clone this repository on your local machine and try it out.
git clone https://github.com/dineshkumarsrdk/hospital-api.git
Install the dependencies and start the server.
npm i
node index.js
Please remember to add the environment variables. You can always use the postman collection mentioned above, if you don't want to go through the trouble of setting up env variables
- Doctor registration and sign in
- A signed in doctor can register a patient by providing the patient's name and mobile number
- Doctor can create test report for a patient
- Doctors can filter and view patient's report
- POST: https://hospital-api-x96e.onrender.com/api/doctors/register
- POST: https://hospital-api-x96e.onrender.com/api/doctors/login
- POST: https://hospital-api-x96e.onrender.com/api/patients/register
- POST: https://hospital-api-x96e.onrender.com/api/patients/:id/create_report
- GET: https://hospital-api-x96e.onrender.com/api/patients/:id/all_reports
- GET: https://hospital-api-x96e.onrender.com/api/reports/:status
Tools used in this project
- Node.js - used for backend
- Express - framework used for node.js application
- MongoDB - used for database
- Mongoose - library used for MongoDB connection
- Bcrypt - used for password encryption
- JWT - JsonWebToken used for user authentication
- Postman - for API testing
Thank You! Have a great day!