Feature request: exclude
Background
Copied from https://github.com/CrossRef/rest-api-doc/issues/568:
For efficiency, I would like to fetch results with every field except references. There is currently no feasible way to do this with 'select=', because if I specify every field I am interested in and new attributes are subsequently added, they wouldn't appear in my list and thus I wouldn't get them.
I propose that select take an optional ! before the field list, which would cause the listed fields to be excluded while returning everything else. That way, I could issue a query such as "/works?query=xxx&rows=5&select=!references,indexed".
exclude
is perhaps more clear (see Joe's comment below).
How urgent
Definition of ready
-
Product owner: @ppolischuk1 -
Tech lead: @dtkaczyk -
Service:: label applied -
Definition of done updated -
Acceptance testing plan: -
Weight applied
Definition of done
-
Unit tests identified, implemented, and passing -
Code reviewed -
Available for acceptance testing via a staging URL, or otherwise -
Consider any impacts to current or future architecture/infrastructure, and update specifications and documentation as needed -
Knowledge base reviewed and updated -
Public documentation reviewed and updated -
Acceptance criteria met -
Users can use the exclude
parameter for excluding fields from response.
-
-
Acceptance testing passed -
Deployed to production
Notes
Edited by Patrick Polischuk