See here: https://github.com/swagger-api/swagger-samples/blob/master/java/java-jaxrs/src/main/java/io/swagger/sample/resource/PetResource.java#L108 <https://github.com/swagger-api/swagger-samples/blob/master/java/java-jaxrs/src/main/java/io/swagger/sample/resource/PetResource.java#L108>
No annotation is required for a body parameter, but it’s best added for documentation purposes. > On Jan 4, 2017, at 9:19 AM, pria <sbomm...@gmail.com> wrote: > > Thank you! what is the swagger annotation for setting the parameter in the > body. Where is the code for petstore example? > > > On Tuesday, January 3, 2017 at 8:46:20 AM UTC-6, pria wrote: > I'm trying to create a POST request with various parameters with in the body > of the request. However I'm unable to generate the swagger ui where I can > input the request parameters. Would appreciate if anyone has dealt with this > issue and what's the right way to fix it. Thank you! > > -- > 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-swaggersocket+unsubscr...@googlegroups.com > <mailto:swagger-swaggersocket+unsubscr...@googlegroups.com>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- 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-swaggersocket+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.