In the current version of the spec, there is no way to do that. Assuming both operation return the same type but have different input, your option is to specify the input options as optional and describe it as a single operation.
From: <swagger-swaggersocket@googlegroups.com> on behalf of "avinash.upadhy...@gmail.com" <avinash.upadhy...@gmail.com> Reply-To: "swagger-swaggersocket@googlegroups.com" <swagger-swaggersocket@googlegroups.com> Date: Tuesday, 6 September 2016 at 22:52 To: Swagger <swagger-swaggersocket@googlegroups.com> Subject: Same resource path Is there any way i can have document two method with same name but with different input parameter? I am having a situation where i need to document the resources which all are hosted on a same path (kind of micro services in MyProjects/get?Parameters) but each micro-service has a same name but different input parameters. When i annotate my Java source code it generates the paths. But Shen i feed this json to swaggerUI it gives me only one micro-service (i believe this is because same resource path `MyProjects/get) -- 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. -- 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.