posted 11 years ago
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