Package | Description |
---|---|
org.eclipse.microprofile.openapi |
Copyright (c) 2017 Contributors to the Eclipse Foundation
|
org.eclipse.microprofile.openapi.models |
Copyright (c) 2017 Contributors to the Eclipse Foundation
|
org.eclipse.microprofile.openapi.models.responses |
Copyright (c) 2017 Contributors to the Eclipse Foundation
|
Modifier and Type | Method and Description |
---|---|
default APIResponse |
OASFilter.filterAPIResponse(APIResponse apiResponse)
Allows filtering of a particular APIResponse.
|
Modifier and Type | Method and Description |
---|---|
default APIResponse |
OASFilter.filterAPIResponse(APIResponse apiResponse)
Allows filtering of a particular APIResponse.
|
Modifier and Type | Method and Description |
---|---|
Map<String,APIResponse> |
Components.getResponses()
Returns the responses property from a Components instance.
|
Modifier and Type | Method and Description |
---|---|
Components |
Components.addResponse(String key,
APIResponse response)
Adds the given response to this Components' map of responses with the given string as its key.
|
Modifier and Type | Method and Description |
---|---|
Components |
Components.responses(Map<String,APIResponse> responses)
Sets this Components' responses property to the given Map containing keys and reusable response objects.
|
void |
Components.setResponses(Map<String,APIResponse> responses)
Sets this Components' responses property to the given Map containing keys and reusable response objects.
|
Modifier and Type | Method and Description |
---|---|
APIResponse |
APIResponse.addHeader(String name,
Header header)
Adds the given Header to this ApiResponse instance's map of Headers with the given name and return this instance of ApiResponse.
|
APIResponse |
APIResponse.addLink(String name,
Link link)
Adds a link to this instance of ApiResponse using the given name and Link, and returns this ApiResponse instance.
|
APIResponse |
APIResponse.content(Content content)
Sets the map containing descriptions of potential response payload for this instance of ApiResponse and returns this ApiResponse instance.
|
APIResponse |
APIResponse.description(String description)
Sets the description of this instance of ApiResponse and returns this ApiResponse instance.
|
APIResponse |
APIResponses.getDefault()
Returns the default documentation of responses other than the ones declared for specific HTTP response codes in this instance of ApiResponses.
|
APIResponse |
APIResponse.headers(Map<String,Header> headers)
Sets the Headers for this instance of ApiResponse with the given map of Headers and returns this instance of ApiResponse.
|
APIResponse |
APIResponse.links(Map<String,Link> links)
Sets the operations links that can be followed from this instance of ApiResponse.
|
Modifier and Type | Method and Description |
---|---|
APIResponses |
APIResponses.addApiResponse(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 |
APIResponses.defaultValue(APIResponse defaultValue)
Sets the default documentation of responses for this instance of ApiResponses and return this instance of ApiResponses.
|
void |
APIResponses.setDefaultValue(APIResponse defaultValue)
Sets the default documentation of responses for this instance of ApiResponses.
|
Copyright © 2017–2018 Eclipse MicroProfile. All rights reserved.