Spring Boot 2.0 REST API
The dietitian can add their clients. For each client the dietitian can add measurements, mainly they weight for that measurement. The BMI is added automatically. The dietitian can also schedule the next appointment for each client, the appointment's date is after the current date.
The UI will be done in Angular and be hosted in a different repository.
localhost:8080/swagger-ui.html to see the controllers generated by swagger
Method | Endpoint |
---|---|
GET | /persons |
POST | /persons |
GET | /persons/{id} |
DELETE | /persons/{id} |
GET | /persons/{id}/measurements |
POST | /persons/{id}/measurements |
GET | /persons/{id}/measurements/count |
DELETE | /persons/{id}/measurements/{mid} |
GET | /persons/{id}/appointment |
POST | /persons/{id}/appointment |
GET | /persons/count |
GET | /appointments |
GET | /appointments/count |
GET | /appointments/{id} |
DELETE | /appointments/{id} |
GET | /appointmentsByDay/today |
GET | /appointmentsByDay/tomorrow |