integrationResponses property

Map<String, IntegrationResponse>? integrationResponses
final

Specifies the integration's responses.

Example: Get integration responses of a method

Request

GET
/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200
HTTP/1.1 Content-Type: application/json Host:
apigateway.us-east-1.amazonaws.com X-Amz-Date: 20160607T191449Z
Authorization: AWS4-HMAC-SHA256
Credential={access_key_ID}/20160607/us-east-1/apigateway/aws4_request,
SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
Response
The successful response returns 200 OK status and a payload as follows:
{ "_links": { "curies": { "href":
"https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html",
"name": "integrationresponse", "templated": true }, "self": { "href":
"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200",
"title": "200" }, "integrationresponse:delete": { "href":
"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200"
}, "integrationresponse:update": { "href":
"/restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET/integration/responses/200"
} }, "responseParameters": { "method.response.header.Content-Type":
"'application/xml'" }, "responseTemplates": { "application/json":
"$util.urlDecode(\"%3CkinesisStreams%3E#foreach($stream in
$input.path('$.StreamNames'))%3Cstream%3E%3Cname%3E$stream%3C/name%3E%3C/stream%3E#end%3C/kinesisStreams%3E\")\n"
}, "statusCode": "200" }

Creating an API

Implementation

final Map<String, IntegrationResponse>? integrationResponses;