barisbasaran / petclinic-dropwizard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Java 99.6%Language:Dockerfile 0.4%