Este proyecto fue realizado con el proposito de desarrollar las habilidades en sequelize mediante la creacion de la base de datos de una clinica dental.
Esta API (My Dental Clinic) contiene las siguientes relaciones:
- JavaScript
- DOCKER
- MYSQL
- SEQUELIZE
- Postman
- JWT
- Clonar el repositorio
- $ npm install
- Conectamos nuestro repositorio con la base de datos
- $ Ejecutamos las migraciones
- $ Ejecutamos los seeders
- $ npm run dev
Endpoints:
• auth/register
POST http://localhost:3000/auth/register
body:
{
name
lastName
email
password
dni
phoneNumber
gender
birthdate
speciality
collegiateNumber
roleId
}
/login
body:
{
"email":"[email protected]",
"password":"123456Aa"
}
POST http://localhost:3000/auth/login
• user
/profile
GET http://localhost:3000/user/profile
/allProfiles
GET http://localhost:3000/user/allProfiles
/UpdateProfile
PUT http://localhost:3000/user/updateProfile
/updateProfileAdmin
PUT http://localhost:3000/user/:id
DELETE http://localhost:3000/user/:id
• appointment
/newAppointment body:
{
date
interventionId
details
dentistId
dentistSpecialityid
patientId
results
}
POST http://localhost:3000/appointment/newAppointment
/allaAppointments
PUT http://localhost:3000/appointment/:id
/deleteAppointment
DELETE http://localhost:3000/appointment/:id
/getUserAppointment
GET http://localhost:3000/appointment/patientAppointments
/getAppointmentDetails
GET http://localhost:3000/appointment/appointmentDetail/:id
/getAllAppointments
GET http://localhost:3000/appointment/allAppointments
/getDentistAppointments
GET http://localhost:3000/appointment/dentistAppointments
License and Copyright Add MIT Licence. The style is completely created by Oriana Infante.