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

Add support for DELETE to RequestLib #778

Merged
merged 4 commits into from
Mar 1, 2024

Conversation

Cruikshanks
Copy link
Member

https://eaflood.atlassian.net/browse/WATER-4387

We need to add this to support our work to improve how bill runs are cancelled. Basically, replace the crummy legacy one!

When you cancel a bill run you need to send a DELETE request to the Charging Module API to tell it to delete its copy.

Our RequestLib module, which is the base module for all HTTP calls doesn't currently have a delete() so this change adds it.

https://eaflood.atlassian.net/browse/WATER-4387

We need to add this to support our work to improve how bill runs are cancelled. Basically, replace the crummy legacy one!

When you cancel a bill run you need to send a [DELETE request](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/DELETE) to the [Charging Module API](https://github.com/DEFRA/sroc-charging-module-api) to tell it to delete its copy.

Our `RequestLib` module, which is the base module for all HTTP calls doesn't currently have a `delete()` so this change adds it.
@Cruikshanks Cruikshanks added the enhancement New feature or request label Mar 1, 2024
@Cruikshanks Cruikshanks self-assigned this Mar 1, 2024
@Cruikshanks Cruikshanks marked this pull request as ready for review March 1, 2024 11:10
@Cruikshanks Cruikshanks merged commit 7b66fa1 into main Mar 1, 2024
6 checks passed
@Cruikshanks Cruikshanks deleted the add-support-for-delete-to-request-lib branch March 1, 2024 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants