Created
February 11, 2020 04:10
-
-
Save postkin/0a965510d41246ff2f051c50d5f64b13 to your computer and use it in GitHub Desktop.
aws-api-gateway-lambda
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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