@PathVariable binding and Swagger

12 views
Skip to first unread message

ksm...@email.vccs.edu

unread,
Jan 12, 2017, 11:53:15 PM1/12/17
to Swagger



Hello,

I'm trying to utilize @PathVariable binding within my @RequestMapping method while also preserving Swagger UI's capability to input each path variable in a separate input box.

For example, if I have the above code (pic 1) it produces the above Swagger page (pic 2+3) which is fantastic, but you can see that the Args Object is just a json block (pic 2) when I was hoping it would unwrap into the full args as in (pic 3).

Is there any configuration value I can set up or annotation I can use to mark the behavior I'd like? Or even any thoughts on how to extend Swagger to do so?

Thank you so much for your time,
Kevin



tony tam

unread,
Jan 13, 2017, 12:22:00 PM1/13/17
to swagger-sw...@googlegroups.com
Hi Kevin, I’m not positive if there are other tricks with SpringFox, but you can use @ApiImplicitParams as an annotation to your function

--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages