Skip to content

wfuertes/cervejaria

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cervejaria wfuertes

Example REST project using (jersey 1.19 + guice 3.0)

Running

(com hsqlbd e tomcat7)

$ mvn hsqldb:start tomcat7:run 

Curls

GET

curl -v -X GET 'http://localhost:8080/cervejaria/api/beer' 

POST

 curl -v -X POST 'http://localhost:8080/cervejaria/api/beer' -H 'Content-Type:application/json' -d '{"name" : "A outra", "price" : "9.00"}'
curl -v -X POST 'http://localhost:8080/cervejaria/api/beer' -H 'Content-Type:application/json' -d '{"NAME" : "Devassa", "pRice" : "5.00"}'

About

Projeto exemplo: REST (jersey 1.19 + guice 3.0)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published