swagger-codegen
swagger-codegen copied to clipboard
[JAVA] Swagger-codegen renames api methods with same uri name
Description
Swagger-codegen renames api methods with same uri name despite the fact that they are in different java clases.
Swagger-codegen version
2.2.3
Command line used for generation
I have generate a swagger client api with:
java -jar swagger-codegen-2.2.3/modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i http://localhost:8080/myproject/services/service0/swagger.json -l java -o client/myproject/java
Suggest a fix/enhancement
Is there any option to solve that issue?
You can use "operationId" in yaml/json specification file to give api name of your choice.