Stream: implementers
Topic: GET /[type]? vs GET /[type]/_search?
Igor Sirkovich (Mar 11 2016 at 19:26):
Hello, I would like to confirm my understanding that GET "/[type]/_search?" is equivalent to GET "/[type]?". After looking at http://hl7.org/implement/standards/fhir/http.html, our developers got an impression that "/[type]?" is used with GET while "/[type]/_search?" is used with POST. However, both work well with GET on the reference servers. Once confirmed, I'm going to open a change request to clarify this at http://hl7.org/implement/standards/fhir/http.html (2.1.0.14 search & 2.1.0.22 Summary) and http://hl7.org/implement/standards/fhir/search.html (2.1.1.2 Introduction).
Grahame Grieve (Mar 11 2016 at 21:01):
We're deprecating _search for get, but the servers still support it for legacy reasons
Igor Sirkovich (Mar 12 2016 at 17:12):
Thank you so much Graeme!
Ewout Kramer (Mar 14 2016 at 08:33):
Maybe we should start removing that support to make this clearer?
Grahame Grieve (Mar 14 2016 at 20:01):
I thought we had
Ewout Kramer (Mar 14 2016 at 20:04):
I mean from our servers ;-)
Grahame Grieve (Mar 14 2016 at 20:12):
ah ok
Brian Postlethwaite (Mar 15 2016 at 01:07):
And return a BadRequest with OperationOutcome that tells you what to do...
Last updated: Apr 12 2022 at 19:14 UTC