Looking at the code you would simple supply the {} values. So /users/bill to get a user, /users/bill/bookmarks to get bookmarks for that user, and /users/bill/bookmarks/someurl to all one. Then in your request you would set it to do a PUT to add.

/ Add a route for user resources
       router.attach("/users/{username}", UserResource.class);

       // Add a route for user's bookmarks resources
router.attach("/users/{username}/bookmarks", BookmarksResource.class);

       // Add a route for bookmark resources
       Route uriRoute = router.attach("/users/{username}/bookmarks/{URI}",

katrin wrote:
Hi, when I run this sample and want to add a bookmark, or Get a user, receive Not
Found (404) message. what I must do to add a bookmark successfully?
Thanks in advance.


--
Justin Stanczak
Stanczak Group
812-735-3600

"All that is necessary for the triumph of evil is that good men do nothing."
Edmund Burke

Reply via email to