OpenApi annotation formParam
See original GitHub issueHello, I have this kind of request handler:
@OpenApi(
path = "/activate",
method = HttpMethod.POST
)
public void activateWithKey(Context ctx) {
String key = ctx.formParam("key");
do_smth(key);
}
I can’t find what OpenApiRequestBody annotation should I use for requestBody with formdata key=value? Can you help me?
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
@FormParam OpenAPI not displayed properly in Resteasy ...
Enquiry regarding the request dto, previously before migrating to resteasy reactive I used to have the @FormParam annotation providing the ...
Read more >How to I read in Array formParams using Javalin's swagger ...
The current annotation I'm using is as follows: @OpenApi( summary = "Update Camera", tags = ["Camera"], formParams = [ OpenApiFormParam(name ...
Read more >org.eclipse.microprofile.openapi.annotations.parameters ...
This page shows Java code examples of org.eclipse.microprofile.openapi.annotations.parameters.Parameter.
Read more >Chapter 47. Passing Information into Resource Classes and ...
The javax.ws.rs.FormParam annotation extracts field values from form data and injects the value into resource method parameters. The annotation takes a single ...
Read more >Solved: Specifying Encoding For Form Data Parameters
I've come to understand that swagger-jaxrs2 can handle turning method parameters annotated FormParam into the appropriate request body in ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@sealedtx It seems like I completely forgot to implement this feature. I will add it this weekend. This shouldn’t be much work.
After the merge you can document form parameters with annotations:
or the DSL: