my dog learned polymorphism*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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


 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Generic RESTful Web Service with dynamic query & Projection
 
Similar Threads
Sample Questions for 288 - Need answers
What does hibernate think is "dirty" here?
Web Sevice As a Generic Wrapper
Design Review
What's the point with Dynamic Downloading???