Skip to content
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

Support wrapped HTTP responses (>= 2.38) #145

Open
wants to merge 6 commits into
base: development
Choose a base branch
from

Conversation

tokland
Copy link
Contributor

@tokland tokland commented Apr 15, 2024

Required by https://github.com/EyeSeeTea/central-planning-reporting/pull/293

Starting at 2.38, some POST/PUT endpoints return now a wrapped HTTP response, see https://github.com/dhis2/dhis2-releases/blob/master/releases/2.38/README.md#api

  • Dynamic and generic workaround: inspect the structure of the response and unwrap if necessary.
  • Remove all responses that had a wrapper HttpResponse in type. BREAKING CHANGE, but easy to solve, as it's fully typed (just use directly response instead of response.response)
  • Release beta version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant