Giter Site home page Giter Site logo

dropwizard-guice-jpa-eclipselink's Introduction

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

dropwizard-guice-jpa-eclipselink's People

Contributors

dependabot-support avatar omainegra avatar rtatol avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dropwizard-guice-jpa-eclipselink's Issues

Need Latest guice version

Thanks author for such contribution.

Current built throws the following error

Caused by: java.lang.ClassNotFoundException: com.google.common.base.MoreObjects
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)

Need Latest guice version
<guice.version>4.1.0</guice.version>

Then it works

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.