@Target(value=TYPE) @Retention(value=RUNTIME) @Inherited public @interface Api
@Api
and will ignore other resources (JAX-RS endpoints, Servlets and
so on).Modifier and Type | Optional Element and Description |
---|---|
Authorization[] |
authorizations
Corresponds to the `security` field of the Operation Object.
|
String |
basePath
Deprecated.
|
String |
consumes
Corresponds to the `consumes` field of the operations under this resource.
|
String |
description
Deprecated.
|
boolean |
hidden
Hides the operations under this resource.
|
int |
position
Deprecated.
|
String |
produces
Corresponds to the `produces` field of the operations under this resource.
|
String |
protocols
Sets specific protocols (schemes) for the operations under this resource.
|
String[] |
tags
A list of tags for API documentation control.
|
String |
value
Implicitly sets a tag for the operations, legacy support (read description).
|
public abstract String value
tags()
is not used, this value will be used to set the tag for the operations described by this
resource. Otherwise, the value will be ignored.
The leading / (if exists) will be removed.tags()
is defined.public abstract String[] tags
value()
.@Deprecated public abstract String description
@Deprecated public abstract String basePath
@Deprecated public abstract int position
public abstract String produces
@Produces
annotation if such exists. It can also be used to override the @Produces
values
for the Swagger documentation.public abstract String consumes
@Consumes
annotation if such exists. It can also be used to override the @Consumes
values
for the Swagger documentation.public abstract String protocols
public abstract Authorization[] authorizations
Authorization
public abstract boolean hidden
Copyright © 2015. All Rights Reserved.