Extend response_fields to support field exclusion #181
Labels
status/has-concrete-suggestion
This issue has one or more concrete suggestions spelled out that can be brought up for consensus.
topic/response-format
Issue discussing changes and improvements to the API response format
type/proposal
Proposal for addition/removal of features. May need broad discussion to reach consensus.
Currently
response_fields
query parameter allows the user to explicitly enumerate fields to be included in the response. I suggest a mechanism to explicitly exclude particular field(s) using the sameresponse_fields
query parameter.Now
response_fields=a,b,c
means that the user requests response with onlya
,b
andc
fields. As field names cannot have-
sign,response_fields=-a
could be defined to stand for all fields excludinga
, andresponse_fields=-a,b,c
- all fields excludinga
,b
andc
etc.An alternative proposition is to introduce
response_fields_exclude
query parameter. However, such introduction would also require description of howresponse_fields
andresponse_fields_exclude
interact.The text was updated successfully, but these errors were encountered: