This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Filter on REST Agent to return selective/partial JSON Data

 
Faraz Ka
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a REST Agent that returns the response in the form of JSON Array.

Initially the URL is like http://localhost:8080/bookshelf/book/author->; This returns all the data
Next, the filtering is needed like http://localhost:8080/bookshelf/book;name=Quite/author;name=Susan -> Here filtering is done on book and name fields

Any clue what is the best way to achieve this filtering?

Thanks,
Faraz
 
Roger Sterling
Ranch Hand
Posts: 426
Eclipse IDE Fedora Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Faraz Ka wrote:Hi,

I have a REST Agent that returns the response in the form of JSON Array.

Initially the URL is like http://localhost:8080/bookshelf/book/author->; This returns all the data
Next, the filtering is needed like http://localhost:8080/bookshelf/book;name=Quite/author;name=Susan -> Here filtering is done on book and name fields

Any clue what is the best way to achieve this filtering?

Thanks,
Faraz


REST url parameters are specified thusly : http://localhost:8080/bookshelf/book?book_name=quite;author_name=Susan

http://www.ietf.org/rfc/rfc3986.txt

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic