Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Generic RESTful Web Service with dynamic query & Projection

 
Balaji Thiruvengadam
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic