-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Phase 1: Add generic HTTP request #889
Comments
@hunterachieng could you please add an estimate to this issue? |
Adjustments to the design:
So far, we haven't changed any behaviour from the user's point of view. Hopefully some tests will break, and we can fix them Next, in http. add a new request operation which just calls out to the common request helper. It does NOT pass a value for baseUrl The utils.request signature is probably going to get very long (too many parameters) so you may want to refactor it to request(state, method, path, options), where options is an object like { query, body, baseUrl } My only doubt about this is: what about pagination? Should the generic request util really handle pagination? The fhir API will want to do it differently. Maybe that's something we can worry about later. |
@josephjclark if the |
@aleksa-krolls the We have implemented "generic" pagination support for for OpenMRS already. But by "generic" we really mean for the Rest API. Other modules, including fhir, could use different pagination semantics. In practice it's probably just fhir we need to worry about. What I think we'll need to do when we get to the fhir APIs is:
It's just a question of moving all the code to the right place so its nice and tidy. |
ok cool, so as I said... if Great if later down the line we want to add enhanced support for the fhir api, but at minimum next week I want to be able to implement the common request helper (and all good if no pagination). |
See parent issue #887 for details.
The text was updated successfully, but these errors were encountered: