This is an example Java RESTful web service for a pet clinic. It is mainly based on Dropwizard and PostgreSQL.
The whole list of tools used is as follows:
For testing:
Run mvn package
to build project with Maven.
Run docker-compose --profile local up
to start application with Docker.
To check that your application is running enter url http://localhost:8080/
You may see application's health at http://localhost:8081/healthcheck
GET /pets
Get all pets
PUT /pets
Create pet
GET /pets/{pet_id}
Get pet
POST /pets/{pet_id}
Update pet
GET /vets
Get all vets
PUT /vets
Create vet
GET /vets/{vet_id}
Get vet
POST /vets/{vet_id}
Update vet
PUT /visits/pets/{pet_id}/vets/{vet_id}
Make visit to the vet
GET /visits/pets/{pet_id}
Get visits of the pet