public interface APIResponses extends Constructible, java.util.Map<java.lang.String,APIResponse>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT |
Modifier and Type | Method and Description |
---|---|
APIResponses |
addApiResponse(java.lang.String name,
APIResponse apiResponse)
Adds an ApiResponse in the format of the name as a key and the item as the value to ApiResponses map
|
APIResponses |
defaultValue(APIResponse defaultValue)
Sets the default documentation of responses for this instance of ApiResponses and return this instance of ApiResponses.
|
APIResponse |
getDefault()
Returns the default documentation of responses other than the ones declared for specific HTTP response codes in this instance of ApiResponses.
|
void |
setDefaultValue(APIResponse defaultValue)
Sets the default documentation of responses for this instance of ApiResponses.
|
static final java.lang.String DEFAULT
APIResponses addApiResponse(java.lang.String name, APIResponse apiResponse)
name
- the name of ApiResponseapiResponse
- the ApiResponse object to be added to ApiResponses mapAPIResponse getDefault()
void setDefaultValue(APIResponse defaultValue)
defaultValue
- the default documentation of responsesAPIResponses defaultValue(APIResponse defaultValue)
defaultValue
- the default documentation of responses