Stream: implementers
Topic: Get all instances of a resource
Vadim Peretokin (Aug 15 2016 at 23:28):
What is the right way to ask a server to get all instances of a resource? The fact that some servers return all instances on GET [base]/[type] doesn't seem to be a thing in the spec
Brian Postlethwaite (Aug 15 2016 at 23:31):
This is described in http.html and search.html (searching with no parameters)
And all servers I know of are doing this, except some don't on the Patient as they expect only parameterized searching
Grahame Grieve (Aug 15 2016 at 23:31):
not all servers will do this.
Vadim Peretokin (Aug 15 2016 at 23:40):
I don't see where in http.html and search.html it says that searching with no parameters returns all resources
Vadim Peretokin (Aug 15 2016 at 23:41):
@Brian Postlethwaite do you remember something in particular about this? So far it seems to be an implicit behaviour that some servers implement and some don't, and it's not described by the spec or in the conformance statements
Brian Postlethwaite (Aug 15 2016 at 23:43):
It is the search rest operation that you are hitting at that location.
So the conformance should indicate that it supports that.
I don't believe that there is any way of knowing if an open search is permitted or will return content.
Vadim Peretokin (Aug 15 2016 at 23:45):
Yeah, that's the thing about this open search returning something or nothing. Seems like there isn't a way to explicitly ask for all resources of a particular type, it's left up to this undefined behaviour
Brian Postlethwaite (Aug 15 2016 at 23:48):
That request is the open search. Nothing for the server to declare that it supports it.
Vadim Peretokin (Aug 15 2016 at 23:50):
Yeah, that's why I'm wondering what is the right way to ask a server to get all instances of a resource, since open search isn't reliable
Last updated: Apr 12 2022 at 19:14 UTC