I have configured my spring project using springfox 2.0. I am able to generate the open api spec with it.
"paths": {
"/test/testinfo": {
"post": {
"tags": [
"test-controller"
],
"summary": "getTestInfo",
"operationId": "getTestInfoInfoUsingGET",
"consumes": [
"application/json"
],
"produces": [
"application/json"
]
As you can see the value of operationId is of format
[java_method_name_here]Using[HTTP_verb_here]
ex. getPetsUsingGET
This operationId is used while generating clients using swagger-codegen.
Does anyone know how to customize it? I know this can be done per api using @ApiOperation
but is there a more generic way to define this format for all apis?