Simple Clinic App Api, that have the most of the basics clinic operations, made by Express and Mongodb, to serve this app.
if you want to use it, after cloning run:
git clone https://github.com/Dimah02/myclinic-api.git
cd myclinic-api
npm i
npm run serve
- HTTP Authentication, scheme: bearer, required for all endpoints except login and signup.
POST /user/signup
Body Parameters
{
"name": "user_name",
"email": "[email protected]",
"password": "strongpassword"
}
POST /user/login
Body Parameters
{
"email": "[email protected]",
"password": "strongpassword"
}
POST /user/update_info
Body Parameters
{
"id": "user_id",
"name": "user_name",
"email": "[email protected]",
"gender": "femal",
"height": "168",
"weight": "78",
"medical_history": "medical_history",
"allergy_to_medications": "allergy_to_medications",
"birth_date": "birth_date",
"blood_type": "blood_type"
}
GET /clinics
GET /doctors/{id}
POST /doctors/{id}/reviews
Body Parameters
{
"userId": "userId",
"userName": "userName",
"rating": 5,
"comment": "awesome"
}
DELETE /doctors/{id}/reviews/{reviewId}
POST /appointments
Body Parameters
{
"doctorId": "doctorId",
"date": "2024-11-29T00:00:00.000",
"time": "15:00",
"userId": "userId"
}
POST /appointments/{id}/cancel
POST /users/{id}/appointments
This is my first deployed API! I want to thank myself and everyone who has contributed to my knowledge over the years (✿◠‿◠). If you have any comments, please feel free to reach out.