Annotation Type RestResponse
@Documented
@Target(METHOD)
@Retention(SOURCE)
public @interface RestResponse
Used to describe the Response Body for a REST resource.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.String
description
Description of the response.RestObjectProperty[]
properties
Array ofRestObjectProperty
of properties contained in a root JSON in this response.java.lang.String
sampleValue
Sample Value of the response body.
-
Element Details
-
description
java.lang.String descriptionDescription of the response.
Optional.
Default Value - "No description available."- Default:
- "No description available"
-
sampleValue
java.lang.String sampleValueSample Value of the response body.
Optional.
Default Value - "No sample value available."- Default:
- "No sample value available"
-
properties
RestObjectProperty[] propertiesArray ofRestObjectProperty
of properties contained in a root JSON in this response.
Optional.
Default Value - Empty array.- Default:
- {}
-