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
This is a bit of a challenge, as described in #492, because it involves capturing unknown parameters in the API.
This may not be the best idea, because it could lead to confusion and conflicts between the known parameters and unknown parameters. E.g. if the user typed ?object_id=... it might be better to reject this request rather than assuming that this request was for the attributes. Note, that currently unknown parameters are not rejected with an error status code, which should probably be changed.
Some ideas on how to implement this:
Allow any unknown parameters and assume that the user intends to query by attributes.
Add a list of "allowed" parameters which can be used to query attributes. For example, just allowing portal_run_id and other important attributes. These could be configurable during deployment.
The text was updated successfully, but these errors were encountered:
As described in #462, ideally there would be a way to shorten querying top-level
attributes
:E.g, instead of:
/api/v1/s3_objects?attributes[portal_run_id]=...
It could be:
/api/v1/s3_objects?portal_run_id=...
This is a bit of a challenge, as described in #492, because it involves capturing unknown parameters in the API.
This may not be the best idea, because it could lead to confusion and conflicts between the known parameters and unknown parameters. E.g. if the user typed
?object_id=...
it might be better to reject this request rather than assuming that this request was for theattributes
. Note, that currently unknown parameters are not rejected with an error status code, which should probably be changed.Some ideas on how to implement this:
attributes
.attributes
. For example, just allowingportal_run_id
and other importantattributes
. These could be configurable during deployment.The text was updated successfully, but these errors were encountered: