GeeCON Prague 2014*
The moose likes Web Services and the fly likes Generic RESTful Web Service with dynamic query & Projection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Web Services
Bookmark "Generic RESTful Web Service with dynamic query & Projection" Watch "Generic RESTful Web Service with dynamic query & Projection" New topic
Author

Generic RESTful Web Service with dynamic query & Projection

Balaji Thiruvengadam
Greenhorn

Joined: Oct 11, 2012
Posts: 1
Hi,

I have a requirement to create a generic GET service which accepts Dynamic Projection (i.e. fields / object) and a dynamic criteria.

For example:-

Client A would like to know about the order & would request the following fields (projection) by supplying order number as criteria

customer_order_nbr
order_date
order_status_code
order_type_code
order_release_date

Client B would like to know about the order & would request the following fields by supplying order_type_code and order_date as criteria (parameter)
customer_order_nbr
order_date
order_status_code
whs_order_method
order_receipt_ts
order_release_date

How can i create a generic REST GET service which can cater to both the request. Key challenge here is dynamic criteria and dynamic projection


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Generic RESTful Web Service with dynamic query & Projection