Skip to content

barisbasaran/petclinic-dropwizard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pet Clinic with Dropwizard

About

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:

Installation

Build project

Run mvn package to build project with Maven.

Start application

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

Database Design

Endpoints

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published