-
Notifications
You must be signed in to change notification settings - Fork 66
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 params to DELETE #145
Add params to DELETE #145
Conversation
84213c9
to
74c4b51
Compare
74c4b51
to
5a3c656
Compare
@balvig I rebased to main. Please let me know any feedback. |
Hello @amalagaura! |
This change makes code that used to send a json payload param to a DELETE endpoint into url-params instead. It does not seem possible to send a json-payload with a DELETE request after this change. Am I mistaken? |
@keithxm23 You are right that the HTTP spec shows the DELETE may have a body. Has this changed the behavior to remove the ability to send a payload in the body. From what I remember there was no body and no params before. |
The params sent with The Atlassian Bitbucket delete-branch api expects a request body with the HTTP-DELETE request to delete a branch. My ruby client which was successfully sending request bodies with DELETE looks like this:
After upgrading beyond 7.1.1 the I think it would be best if the change was reverted because we're losing functionality here. If we want URL-params with a DELETE request, this is possible prior to this change using a custom request like so:
|
I am ok to revert. I think it will need some more work. You should just create another PR. |
Good spot @keithxm23! |
I am trying to use this REST API which takes query params on DELETE
https://docs.camunda.org/manual/7.5/reference/rest/deployment/delete-deployment/
Made these changes and ran tests locally. But to run tests locally I had to rename
MiniTest
toMinitest
. I am not familiar with Minitest to know about this.