Forums Register Login

Filter on REST Agent to return selective/partial JSON Data

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
 

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

What are you saying? I thought you said that Santa gave you that. And this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1661 times.
Similar Threads
webApps on the same container but listening on different ports
REST vs SOAP - stateful/stateless
Adding more data to a HATEOAS response in Spring Boot Data Rest
Having some problem to understand how to manage JSON request
JSON Design with Jersey
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 08:26:03.