Skip to content

REST+JSON demonstration: from a JavaScript frontend (Backbone.js, Require.js and jQuery) to a Java backend (Jersey)

Notifications You must be signed in to change notification settings

olim7t/Backbone-Jersey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backbone+Jersey

Integration between a Java server-side using Jersey and a JavaScript client-side using Backbone. Launch com.xebia.server.EmbeddedServer.main (or run mvn compile exec:java from the root directory) and open a browser at http://localhost:8080

Resources

Product

/product -> GET, POST

/product/{id} -> GET, DELETE

/product/{id}/stock -> GET, POST

/product/{id}/stock/{quantity}/{username} -> POST

Basket

/basket/{username} -> GET, DELETE

/basket/{username}/{productid} -> GET

/basket/{username}/price -> GET

/basket/{username}/payment -> POST

Representations

product:{id:long, name:string, price:int, links:link[]}

stock:{quantity:int, id:long, related:link}

basket:{stock:stock, links:link[]}

price:{value:int}

link:{href:anyURI, rel:rels[rels/book,rels/price,rels/payment,rels/related], type:string}

About

REST+JSON demonstration: from a JavaScript frontend (Backbone.js, Require.js and jQuery) to a Java backend (Jersey)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published