We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In generated curl-request.adoc and http-request.adoc files the request parameters are ignored when using param builder:
curl-request.adoc
http-request.adoc
this.mockMvc.perform(delete("/users").param("username", "Tester")) .andExpect(status().isOk()) .andDo(document("delete-user"))
However, this one works:
this.mockMvc.perform(delete("/users?username=Tester")) .andExpect(status().isOk()) .andDo(document("delete-user"))
I have tried using RestDocumentationRequestBuilders as well. Same result. Generated curl-request.adoc:
RestDocumentationRequestBuilders
[source,bash] ---- $ curl 'http://localhost:8080/users/' -i -X DELETE ----
How it looks like without using param builders:
[source,bash] ---- $ curl 'http://localhost:8080/users/?username=Tester' -i -X DELETE ----
Using: org.springframework.boot:spring-boot:2.2.6.RELEASE org.springframework.restdocs:spring-restdocs-mockmvc:2.0.4.RELEASE org.springframework.restdocs:spring-restdocs-asciidoctor:2.0.4.RELEASE
The text was updated successfully, but these errors were encountered:
0146f1a
No branches or pull requests
In generated
curl-request.adoc
andhttp-request.adoc
files the request parameters are ignored when using param builder:However, this one works:
I have tried using
RestDocumentationRequestBuilders
as well. Same result.Generated
curl-request.adoc
:How it looks like without using param builders:
Using:
org.springframework.boot:spring-boot:2.2.6.RELEASE
org.springframework.restdocs:spring-restdocs-mockmvc:2.0.4.RELEASE
org.springframework.restdocs:spring-restdocs-asciidoctor:2.0.4.RELEASE
The text was updated successfully, but these errors were encountered: