@Retention(value=RUNTIME) public @interface RamlResponse
An annotation used to describe a response in greater detail.
The generator can generate response information based purely on the signature of methods. However, this will assume 200 response codes and will miss any other response codes that may be returned.
Used in conjunction with the @RamlResponses annotation.
RamlResponse| Modifier and Type | Required Element and Description |
|---|---|
String |
description
The description of what the response represents
|
int |
status
The status code of the response
|
| Modifier and Type | Optional Element and Description |
|---|---|
RamlBody[] |
bodies
The body payloads that would be returned based on the use of the
Accept request header. |
RamlParameter[] |
headers
The headers that would be included in the response.
|
public abstract int status
The status code of the response
public abstract String description
The description of what the response represents
public abstract RamlParameter[] headers
The headers that would be included in the response.
public abstract RamlBody[] bodies
The body payloads that would be returned based on the use of the Accept request header.
Copyright © 2020. All rights reserved.