Forum Discussion

_Oliver_'s avatar
_Oliver_
Contributor
4 years ago

ReadyApi & Swagger : change API displayed name

Hi all,

I am using ReadyApi with Swagger. What I observe is that whenever I use the Swagger Api definition, every API is named after the value of the operationId parameter. For example :

"operationId" : "getDataListUsingGET",

will be shown (in ReadyApi) as :

 

 

What I would like to do is to find a way to manually set the value of operationId so the name in readyApi makes more sense (from the project point of view). Ideally, I'd like to have somethink like 

"operationId" ; "GET /app/data/list"

Which would result in this in ReadyApi

 

Is this feasible ? Can this operationId be set in the code, at this level for example ;:

 

    @JsonView(Views.DataList.class)
    @RequestMapping(value = "/app/data/list", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
    @ApiOperation(
            value = "Datalist detail",
            notes = ""
    )

 

Please let me know if my question is not clear.

Thanks !

No RepliesBe the first to reply