Reputation: 7862
I have a POST operation in a SpringBoot @RestController
that takes a query param and a request body:
@RequestMapping(path = "/benchmark", method = POST)
public String startBenchmark(@QueryParam("numMessages") int numMessages, @RequestBody String body) {
Swagger UI will render 'numMessages' as parameter type "body". Is there a way to correct this?
Upvotes: 1
Views: 2365