@Target(value=METHOD) @Retention(value=RUNTIME) @Inherited public @interface ApiOperation
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 `authorizations` field of the operation.
|
String |
consumes
Corresponds to the `consumes` field of the operation.
|
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 `nickname` field.
|
String |
notes
Corresponds to the 'notes' field of the operation.
|
int |
position
Optional explicit ordering of this API resource in the Resource Listing.
|
String |
produces
Corresponds to the `produces` field of the operation.
|
String |
protocols
This property is currently not in use.
|
Class<?> |
response
The response type of the operation.
|
String |
responseContainer
Notes whether the response type is a list of values.
|
String |
tags
Currently not implemented in readers, reserved for future use.
|
public abstract String value
public abstract String notes
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 tags
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".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
Copyright © 2014. All Rights Reserved.