- SpringBoot 3
- Java 17
- Lombok
- MySQL / FlyWay
- JPA / Hibernate
- Maven
- Insomnia / Postman
- This project requires Java v17 or later.
- you should also update your file application.properties to include your data source username and password.
- you need an api platform to test the application, I recommend using postMan or insomnia.
-
post - url: https://localhost:8080/doctors
-
Response 200 (application/json)
-
Body
{ "name": "Jose Otavio", "email": "[email protected]", "crm": "883765", "telephone": "996130678", "speciality": "ORTHOPEDICS", "address": { "publicplace": "rua 1", "neighborhood": "bairro", "zipcode": "12345678", "city": "Joinville", "state": "SC", "number": "1", "complement": "complemento" } }
-
-
-
put - url: https://localhost:8080/doctors
-
Response 200 (application/json)
-
Body
{ "id" : 1, "name" : "jose otavio2", "crm": "553765" }
-
-
-
get - url: https://localhost:8080/doctors
-
delete - url: https://localhost:8080/doctors
-
post - url: https://localhost:8080/patients
-
Response 200 (application/json)
-
Body
{ "name": "Jose Otavio", "email": "[email protected]", "telephone": "996130678", "cpfcnpj": "12345678910", "address": { "publicplace": "rua 1", "neighborhood": "bairro", "zipcode": "12345678", "city": "Joinville", "state": "SC", "number": "1", "complement": "complemento" } }
-
-
-
put - url: https://localhost:8080/patients
-
Response 200 (application/json)
-
Body
{ "id" : 1, "name" : "jose otavio2", "cpfcnpj" : "1234567891234" }
-
-
-
get - url: https://localhost:8080/patients
-
delete - url: https://localhost:8080/patients