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
using the api to get the arreport of a certain parent_id doesn't work
/senaite/@@API/senaite/v1/search?portal_type=ARReport&parent_id=PL-0001&complete=1
Current behavior
returns all the Analysis Report objects
Expected behavior
it should return only the Analysis Report with the specified parent_id
Can somebody confirm if this is a bug or intended behaviour?
In general, is there filtering available on the API? For instance, how can I get all samples in a batch, or all analyses for a sample?
Currently you can filter by parent_path with the physical path to the parent object, or the parent_uid, also see https://senaitejsonapi.readthedocs.io/ for examples.
If you want to filter by parent_id or any other criteria, you must add an index to the respective catalog.
Activity
valeriozhang commentedon Apr 26, 2021
bump
DanKaranja commentedon May 4, 2021
bump
rossrossp commentedon Aug 11, 2024
Can somebody confirm if this is a bug or intended behaviour?
In general, is there filtering available on the API? For instance, how can I get all samples in a batch, or all analyses for a sample?
ramonski commentedon Aug 14, 2024
Currently you can filter by
parent_pathwith the physical path to the parent object, or theparent_uid, also see https://senaitejsonapi.readthedocs.io/ for examples.If you want to filter by
parent_idor any other criteria, you must add an index to the respective catalog.