Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

@pathparam and @queryparam

 
simon tiberius
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want my URI to look like this for read operation:

let's say the customer id is 147 and I want to view 10 of his orders starting from the 30th order, the URI will look llike this:


is this RESTful? and how do I parse the params?


is this the correct RESTful implementation of read operation? thanks
 
sandeeprajsingh tandon
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I DONT think its UNRESTFUL..but if i was you, i would have rather passed an Object called OrderDetails and obtained my parameters from there.That way the URI would be a little more clean and i use POST.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic