Add payload to delete operation - #78
Merged
Merged
Conversation
NahuFigueroa97
force-pushed
the
bug/77-delete-requests-do-not-send-payload
branch
from
December 23, 2025 15:45
6504bef to
8fcff7b
Compare
NahuFigueroa97
requested review from
LucioDonda,
jam300,
juliancnn and
matigarciadev
December 23, 2025 16:07
NahuFigueroa97
force-pushed
the
bug/77-delete-requests-do-not-send-payload
branch
from
December 24, 2025 14:02
8fcff7b to
7142a19
Compare
LucioDonda
reviewed
Dec 26, 2025
LucioDonda
left a comment
Member
There was a problem hiding this comment.
It would be nice to add some unit test cases to UrlRequestUnitTest and if possible also some component tests to ComponentTestInterface
|
LGTM! |
jam300
approved these changes
Dec 27, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request adds support for sending a payload in DELETE requests in the urlRequest TestTool.
Previously, DELETE actions did not reliably support request bodies, and providing a JSON payload could lead to runtime errors due to implicit type conversions. With this change, DELETE requests now handle payloads consistently with other HTTP methods such as POST, PUT, and PATCH.
Proposed Changes
TRequestParameters<nlohmann::json>for DELETE actions to avoid implicitjson → std::stringconversions.Motivation
Some REST APIs allow or require a request body in DELETE operations (for example, to specify resources, filters, or conditions). Without payload support, the TestTool could not accurately test these APIs.
This change improves flexibility and correctness when testing REST endpoints that expect a DELETE body.
Testing
Details