-
Notifications
You must be signed in to change notification settings - Fork 38.9k
Open
Labels
in: testIssues in the test moduleIssues in the test modulestatus: waiting-for-feedbackWe need additional information before we can continueWe need additional information before we can continuestatus: waiting-for-triageAn issue we've not yet triaged or decided onAn issue we've not yet triaged or decided on
Description
We have some OpenAPI specs from external parties we need to use and connect to. Those specs specify, for GET requests at least, request parameters to be supplied to do some filtering. Currently there is no, easy, way to add those to the request.
We now need to manually construct the URL with placeholders for the request parameters and supply them as variables within the uri method.
restTestClient.get().uri("http://example.com/?foo={bar}", Map.of("bar", "baz").exchangeSuccesfully();
It would be a nice extension to be able to do something with param/params akin the header/headers functionality.
restTestClient.get().uri("http://example.com/).params(Map.of("bar", "baz")).exchangeSuccesfully();
or
restTestClient.get().uri("http://example.com/).param("bar", "baz").exchangeSuccesfully();
This would make it easier to reuse static variables for URLs (as generated with OpenAPI generator) and to add the parameters to the URL.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
in: testIssues in the test moduleIssues in the test modulestatus: waiting-for-feedbackWe need additional information before we can continueWe need additional information before we can continuestatus: waiting-for-triageAn issue we've not yet triaged or decided onAn issue we've not yet triaged or decided on