Skip to content

rtatol/dropwizard-guice-jpa-eclipselink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dropwizard-guice-jpa-eclipselink

Build Status Dependency Status

Sample REST application written with:

  • Dropwizard
  • Google Guice DI
  • Google Guice-Persist extension
  • EclipseLink ORM as implementation of JPA 2.1
  • H2 as database
  • JDK 1.8
QuickStart
mvn clean package
java -jar target/dropwizard-guice-jpa-eclipselink-1.0-SNAPSHOT.jar server conf.yml
API - examples
  • POST /player - new player
curl -H "Content-type: application/json" -X POST -d '{"login": "test-player-01", "name": "test"}' http://localhost:18080/player/
  • GET /player/{id} - get player
curl -H "Content-type: application/json" -X GET http://localhost:18080/player/1
  • DELETE /player/{id} - delete player
curl -H "Content-type: application/json" -X DELETE http://localhost:18080/player/51
  • GET /player - get all players
curl -H "Content-type: application/json" -X GET http://localhost:18080/player/
  • GET /player/find?name=test - find player by name
curl -H "Content-type: application/json" -X GET http://localhost:18080/player/find?name=test

About

Sample REST application with guice-persist

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages