Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

REST version of the Spring PetClinic built with DeepfakeHTTP


   

About Spring PetClinic

The Spring PetClinic is an example application designed to show how a particular stack can be used to create simple but powerful database-oriented applications.

About DeepfakeHTTP

The DeepfakeHTTP is a web server that uses HTTP dumps as a source for responses.

Get started

  1. Download the latest releases of df.jar and df-spring-petclinic.zip
  2. Unzip the df-spring-petclinic.zip archive
  3. Start the server from command line:
    java -jar df.jar \
    --dump PetClinic/dump.txt \
    --js PetClinic/context.js \
    --dir PetClinic \
    --openapi-title 'Spring Pet Clinic API v1.2.7' \
    --db PetClinic/db.json \
    --openapi-path /api \
    --db-path /db
    
  4. Use a browser to check whether the server is running:
    http://localhost:8080
  5. Bonus: Self-hosted OpenAPI client
    http://localhost:8080/api
  6. Bonus: openapi.json
    http://localhost:8080/api/openapi.json
  7. Bonus: openapi.yaml
    http://localhost:8080/api/openapi.yaml
  8. Bonus: Live data dump
    http://localhost:8080/db