[rest] introduce nickname attribute in ApiOperation annotation to make operationIds unique (#1544)

Signed-off-by: Paul Vogel <pavog@users.noreply.github.com>
pull/1554/head
Paul Vogel 2020-07-19 00:33:23 +02:00 committed by GitHub
parent 6078d9a949
commit 6966c2fc21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ public class BindingResource implements RESTResource {
@GET
@Produces(MediaType.APPLICATION_JSON)
@ApiOperation(value = "Get all bindings.", response = BindingInfoDTO.class, responseContainer = "Set")
@ApiOperation(nickname = "getAllBindings", value = "Get all bindings.", response = BindingInfoDTO.class, responseContainer = "Set")
@ApiResponses(value = {
@ApiResponse(code = 200, message = "OK", response = BindingInfoDTO.class, responseContainer = "Set") })
public Response getAll(
@ -123,7 +123,7 @@ public class BindingResource implements RESTResource {
@GET
@Path("/{bindingId}/config")
@Produces({ MediaType.APPLICATION_JSON })
@ApiOperation(value = "Get binding configuration for given binding ID.")
@ApiOperation(nickname = "getBindingConfiguration", value = "Get binding configuration for given binding ID.")
@ApiResponses(value = { @ApiResponse(code = 200, message = "OK", response = String.class),
@ApiResponse(code = 404, message = "Binding does not exist"),
@ApiResponse(code = 500, message = "Configuration can not be read due to internal error") })