[rest] introduce nickname attribute to make operationId unique (#1546)
The getAll() method in the ConfigDescriptionResource does not have a nickname set in its ApiOperation annotation. Swagger uses the method name (getAll) as default operationId which is not unique. Signed-off-by: Paul Vogel <pavog@users.noreply.github.com>pull/1558/head^2
parent
2adc918409
commit
2ee2e2d2f5
|
@ -90,7 +90,7 @@ public class ConfigDescriptionResource implements RESTResource {
|
|||
|
||||
@GET
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
@ApiOperation(value = "Gets all available config descriptions.", response = ConfigDescriptionDTO.class, responseContainer = "List")
|
||||
@ApiOperation(nickname = "getAllConfigDescriptions", value = "Gets all available config descriptions.", response = ConfigDescriptionDTO.class, responseContainer = "List")
|
||||
@ApiResponses(value = @ApiResponse(code = 200, message = "OK", response = ConfigDescriptionDTO.class, responseContainer = "List"))
|
||||
public Response getAll(@HeaderParam("Accept-Language") @ApiParam(value = "language") @Nullable String language, //
|
||||
@QueryParam("scheme") @ApiParam(value = "scheme filter") @Nullable String scheme) {
|
||||
|
|
Loading…
Reference in New Issue