(Quick Reference)

Api

Purpose

Marks a controller as being documented

Usage

Simple Usage

@Api("") // passes in value

Advanced Usage

@Api(value="", description="", basePath="", position=0, produces="", consumes="",
        protocols="", authorizations=@Authorization(""), hidden=false)

Parameters

ParameterSupportedUsage
valueNoThe 'path' that is going to be used to host the API Declaration of the resource.
descriptionNoThis should be a short description of the resource.
basePathYesThe `basePath` is derived automatically by Swaggydoc. This property allows overriding the default value if needed.
positionNoOptional explicit ordering of this API resource in the Resource Listing.
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