Support 'select' on 'get', 'update', and 'delete' calls to limit what fields are returned in update response
'get', 'update' and 'delete' calls respond with the entire record. Sometimes this is undesirable, such as collections with very large manifest text. The API should support using 'select' to choose which fields are returned by the response.
"make sure you start with a test, but this might already work"
needs to be added to the discovery document.
check that selecting fields ensures the fields are not loaded from the database.
Confirmed that only the selected columns are loaded from the database (except in the case of "update", which needs to populate all attributes in order to do validations).
#10 Updated by Lucas Di Pentima 4 days ago
Here're my comments/questions:
- In file
services/api/app/controllers/application_controller.rb: In the
_requires_parametersmethods, should descriptions be added for the automatic cli help?
- Word repetition in file
doc/api/methods.html.textile.liquid:L87: "...whose whose..."
- Do you think it would be helpful to document the particular behavior when requesting a collection by PDH? (i.e., we can use