You can use the “nickname” attribute in the @ApiOperation annotation, see here:

https://github.com/swagger-api/swagger-core/blob/master/modules/swagger-annotations/src/main/java/io/swagger/annotations/ApiOperation.java
 
<https://github.com/swagger-api/swagger-core/blob/master/modules/swagger-annotations/src/main/java/io/swagger/annotations/ApiOperation.java>

> On Sep 6, 2016, at 2:37 PM, alex.rhomb...@temet.ch wrote:
> 
> I use swagger-jersey-jaxrs to generation swagger.json from my JAX-RS 
> interface with annotations.
> To define the REST interface for several objects, I use inheritance, with 
> services defined in base classes that are available in several subclasses.
> 
> Now the generated swagger.json correctly shows the separate instances of the 
> service, but all instances get the same operationId taken from the Java 
> method name. This causes the Swagger editor to complain about duplicate 
> operationIds:
> 
> Cannot have multiple operations with the same operationId: createOrder
> 
> 
> How can I make the Swagger generator produce unique operationIds, or omit 
> them at all, if they are not mandatory?
> 
> -- 
> 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.

Reply via email to