@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 | Required Element and Description |
---|---|
String |
value
The 'path' that is going to be used to host the API Declaration of the
resource.
|
Modifier and Type | Optional Element and Description |
---|---|
Authorization[] |
authorizations
Corresponds to the `authorizations` field of the API Declaration.
|
String |
basePath
Corresponds to the `basePath` field of the API Declaration.
|
String |
consumes
Corresponds to the `consumes` field of the API Declaration.
|
String |
description
Corresponds to the `description` field of the Resource Listing API operation.
|
boolean |
hidden
Hides the api.
|
int |
position
Optional explicit ordering of this API resource in the Resource Listing.
|
String |
produces
Corresponds to the `produces` field of the API Declaration.
|
String |
protocols
This property is currently not in use.
|
public abstract String value
@Path
on the resource, but can be any other value as well. It will serve as the path
where the documentation is hosted.
For Servlets, this path has to be the path serving the Servlet.
If the value isn't preceded with a slash, one would be added to it.public abstract String description
public abstract String basePath
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 © 2014. All Rights Reserved.