How to use query parameters to tailor REST service responses for the GET operation
SummaryThe REST service GET operation is used to retrieve details of a supplier and its child entities. This response can be tailored to fit specific requirements using the query parameters.
Let’s look at some of the frequently used query parameters and their use cases:
- Query Parameter: fields
This can be used to filter the list of attributes returned in the response payload.
Format for fields in child resource: ?fields=Accessor1:Attribute1,Attribute2
e.g: If the response payload should have just a few selected attribute values instead of all, then you can use this query parameter along with the request URL.