Added inspection of request body if it is a POST request for query parameters.
Wondering about if we will ever expect more in the body than query parameters, i.e. should there be more thorough parsing/decision making here?
Also want to check that POST searches are made to an endpoint that ends in \_search every time? The current spec test uses that endpoint, and I don't think it would impact the functionality, but the spec test wouldn't pass until I added that into the url (fhir_search must automatically add the route when it sees it's a POST?)
Testing Guidance
Added a spec test that stubs a post request and returns correct resources, and expects test to pass.
Summary
Added inspection of request body if it is a POST request for query parameters.
Wondering about if we will ever expect more in the body than query parameters, i.e. should there be more thorough parsing/decision making here?
Also want to check that POST searches are made to an endpoint that ends in
\_search
every time? The current spec test uses that endpoint, and I don't think it would impact the functionality, but the spec test wouldn't pass until I added that into the url (fhir_search must automatically add the route when it sees it's a POST?)Testing Guidance
Added a spec test that stubs a post request and returns correct resources, and expects test to pass.