Response
@Deprecated @Documented @Target(value=PARAMETER) @Retention(value=RUNTIME) @Inherited public @interface Response
Modifier and Type | Required Element and Description |
---|---|
int |
value
Deprecated.
HTTP response code.
|
public abstract int value
public abstract String description
The default value pulls the description from the description
entry in the servlet resource bundle.
(e.g.
This field can contain variables (e.g. "$L{my.localized.variable}").
See RestContext.getVarResolver()
for the list of supported variables.
Corresponds to the swagger field /paths/{path}/{method}/responses/{code}/description
.
public abstract String schema
It can be a primitive, an array or an object.
If this field does not exist, it means no content is returned as part of the response.
As an extension to the Schema Object,
its root type value may also be
Copyright © 2018 Apache. All rights reserved.