Skip to content

Instantly share code, notes, and snippets.

@postkin
Created February 11, 2020 04:10
Show Gist options
  • Save postkin/0a965510d41246ff2f051c50d5f64b13 to your computer and use it in GitHub Desktop.
Save postkin/0a965510d41246ff2f051c50d5f64b13 to your computer and use it in GitHub Desktop.
aws-api-gateway-lambda
{
"x-amazon-apigateway-integration": {
"uri": "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:879370021840:function:ans_update_application/invocations",
"responses": {
"default": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Access-Control-Allow-Origin": "'*'"
}
}
},
"passthroughBehavior": "when_no_templates",
"httpMethod": "POST",
"type": "aws",
"requestTemplates": {
"application/json": "{\n \"application_id\" : $input.params('application_id'),\n \"title\" : $input.json('$.title'),\n \"description\" : $input.json('$.description'),\n \"application_key\" : $input.json('$.application_key')\n}"
},
"contentHandling": "CONVERT_TO_TEXT"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment