@Target(value=METHOD) @Retention(value=RUNTIME) public @interface Authorization
The authorization scheme used needs to be declared at the Swagger root level first.
This annotation is not used directly and will not be parsed by Swagger. It should be used
within either Api
or ApiOperation
.
ApiOperation
,
Api
Modifier and Type | Required Element and Description |
---|---|
String |
value
The name of the authorization scheme to be used on this resource/operation.
|
Modifier and Type | Optional Element and Description |
---|---|
AuthorizationScope[] |
scopes
The scopes to be used if the authorization scheme is OAuth2.
|
public abstract String value
The name must be defined in the Resource Listing's authorization section,
public abstract AuthorizationScope[] scopes
AuthorizationScope
Copyright © 2019. All Rights Reserved.