You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A list of properties to be included, using dot notation
Add limits to the number of items returned for properties where an array is available (note the limits are per-field, to allow the first item to contain more fields than subsequent items).
If an object is specified without specific fields (e.g. location.address) return the whole object.
Comma separation of multiple terms should be consistent with strategy we go for in Filtering issue (Filtering #1) w.r.t. multiple terms. e.g. it could be fields=name,activity, fields=name&fields=activity, fields[]=name&fields[]=activity, etc
Use Case
For mobile device usecases, a restricted number of fields returned enables the implementer to minimise data transfer.
References
Proposal
The
fields
keyword is reserved to allow for the restriction of properties returned in the response./sessions?fields=name,startDate,subEvent[1].startDate,subEvent[1].endDate
Examples
/sessions?fields=name,activity,location.address,offers.name,offers.price,offers.priceCurrency
/sessions?fields=name,activity,location.address.postalCode,offers[1].price,offers[1].priceCurrency,offers[2].name
The text was updated successfully, but these errors were encountered: