Skip to content
This repository has been archived by the owner on Jun 10, 2019. It is now read-only.
/ webapp Public archive

Base webapp: Spring + Resteasy + Spring Data JPA(Hibernate + Derby)

Notifications You must be signed in to change notification settings

camaral/webapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Initial Backend Web Application

Every REST API project should start here(somewhat a maven archetype)

  • Spring
  • Resteasy
  • Spring Data JPA(Hibernate + Derby)
  • Dozer
  • Jackson2 and jaxb

To create a new project from this one, first go to github and create an empty repo(e.g. 'new-repository'), then do the following.

$ git clone --bare https://github.com/camaral/webapp.git
# Make a bare clone of the repository

$ cd webapp.git
$ git push --mirror https://github.com/exampleuser/new-repository.git
# Mirror-push to the new repository

$ cd ..
$ rm -rf webapp.git
# Remove our temporary local repository

To run the application

$ mvn jetty:run

To call the sample service either use midas.service.CustomerServiceTest or curl

$ curl "http://localhost:9095/customer" -X POST -d "{\"firstName\":\"caio\"}" -H "Content-Type: application/json" -H "Accept: application/json"
# {"id":1,"firstName":"caio"}

$ curl -v "http://localhost:9095/customer/1" -H "Accept: application/json"
# {"id":1,"firstName":"caio"}

About

Base webapp: Spring + Resteasy + Spring Data JPA(Hibernate + Derby)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages