inferno-framework / us-core-test-kit

Inferno Test Kit for evaluating API conformance to the US Core Implementation Guide
Apache License 2.0
7 stars 5 forks source link

FI-2494 POST capability added to granular scopes #158

Closed 360dgries closed 6 months ago

360dgries commented 6 months ago

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.