(Quick Reference)

ApiOperation

Purpose

Documents an operation

Usage

@ApiOperation(value="", notes="", response=Foo, responseContainer="", tags="", httpMethod="", position=0,
        nickName="", produces="", consumes="", protocols="", authorizations=@Authorization(""),
        hidden=false)

Parameters

ParameterSupportedUsage
valueYesProvides a brief description of this operation. Should be 120 characters or less for proper visibility in Swagger-UI.
notesYesA verbose description of the operation.
responseYesThe response type of the operation.
responseContainerYesNotes whether the response type is a list of values. Use array or set for containers.
tagsNoCurrently not implemented in readers, reserved for future use.
httpMethodNoCorresponds to the `method` field as the HTTP method used. Acceptable values are "GET", "HEAD", "POST", "PUT", "DELETE", "OPTIONS" and "PATCH".
positionNoOptional explicit ordering of this API resource in the Resource Listing.
nicknameNoThe nickname field is used by third-party tools to uniquely identify this operation. Autogenerated.
producesYesTakes in comma-separated values of content types. For example, "application/json, application/xml" would suggest this API Resource generates JSON and XML output.
consumesYesTakes in comma-separated values of content types. For example, "application/json, application/xml" would suggest this API Resource accepts JSON and XML input.
protocolsNoDescribes url schemes supported by controller.
authorizationsNoTakes in a list of the required authorizations for this API Resource. This may be overridden by specific operations.
hiddenNoHides the api