Personalize responses per function
Add the ability to rewrite some x-amazon-apigateway-integration
per function.
Small example serving css from the lambda:
{
"x-api-gateway": {
"tags": ["CSS"],
"consumes": null,
"produces": ["text/css; charset=utf-8"],
"responses": {
"200": {
"schema": {
"$ref": "#/definitions/Empty"
}
}
},
"x-amazon-apigateway-integration": {
"responses": {
"default": {
"statusCode": "200",
"responseTemplates": {
"text/css": "$input.path('$')"
}
}
}
}
}
}