Modifier and Type | Required Element and Description |
---|---|
String |
value
Corresponds to the `summary` field of the operation.
|
Modifier and Type | Optional Element and Description |
---|---|
Authorization[] |
authorizations
Corresponds to the `security` field of the Operation Object.
|
int |
code
The HTTP status code of the response.
|
String |
consumes
Corresponds to the `consumes` field of the operation.
|
Extension[] |
extensions |
boolean |
hidden
Hides the operation from the list of operations.
|
String |
httpMethod
Corresponds to the `method` field as the HTTP method used.
|
String |
nickname
Corresponds to the `operationId` field.
|
String |
notes
Corresponds to the 'notes' field of the operation.
|
int |
position
Deprecated.
|
String |
produces
Corresponds to the `produces` field of the operation.
|
String |
protocols
Sets specific protocols (schemes) for this operation.
|
Class<?> |
response
The response type of the operation.
|
String |
responseContainer
Declares a container wrapping the response.
|
ResponseHeader[] |
responseHeaders
A list of possible headers provided alongside the response.
|
String |
responseReference
Specifies a reference to the response type.
|
String[] |
tags
A list of tags for API documentation control.
|
public abstract String value
public abstract String notes
public abstract String[] tags
Api.value()
or Api.tags()
for this operation.public abstract Class<?> response
javax.ws.rs.core.Response
. In that case, the operation return type would default to `void`
as the actual response type cannot be known.
Setting this property would override any automatically-derived data type.
If the value used is a class representing a primitive (Integer
, Long
, ...)
the corresponding primitive type will be used.public abstract String responseContainer
public abstract String responseReference
public abstract String httpMethod
@GET
, @HEAD
, @POST
, @PUT
, @DELETE
and @OPTIONS
.
Note that even though not part of the JAX-RS specification, if you create and use the @PATCH
annotation,
it will also be parsed and used. If the httpMethod property is set, it will override the JAX-RS annotation.
For Servlets, you must specify the HTTP method manually.
Acceptable values are "GET", "HEAD", "POST", "PUT", "DELETE", "OPTIONS" and "PATCH".@Deprecated public abstract int position
public abstract String nickname
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
public abstract ResponseHeader[] responseHeaders
public abstract int code
public abstract Extension[] extensions
Copyright © 2015. All Rights Reserved.