swagger-codegen icon indicating copy to clipboard operation
swagger-codegen copied to clipboard

[JAVA] Swagger-codegen renames api methods with same uri name

Open ghost opened this issue 9 years ago • 1 comments

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?

ghost avatar Aug 16 '17 11:08 ghost

You can use "operationId" in yaml/json specification file to give api name of your choice.

ravinikam avatar Aug 29 '17 14:08 ravinikam