Closed dbrgn closed 10 years ago
Ready to test, @d22 or @cfaessler!
The API now allows a new fields
parameter that can filter returned fields per document.
The fields need to be comma separated, without any spaces.
fields=id,url,packageName
fields=id&fields=url
fields=id, url
Nested entities can be shown or hidden, but their fields cannot be filtered.
Very nice! Good to merge!
Is this possible with DRF?
See https://stackoverflow.com/questions/23643204/django-rest-framework-dynamically-return-subset-of-fields.