--- swagger: "2.0" info: version: "2016-12-20T18:27:47Z" title: "twilio-apigateway" basePath: "/Prod" schemes: - "https" paths: /addphoto: get: consumes: - "application/json" produces: - "application/xml" responses: 200: description: "200 response" headers: Content-Type: type: "string" x-amazon-apigateway-integration: responses: default: statusCode: "200" responseTemplates: application/xml: "#set($inputRoot = $input.path('$'))\n\n\n \n \n\ \ $inputRoot\n \n \n " responseParameters: method.response.header.Content-Type: "'application/xml'" requestTemplates: application/json: "{\n \"body\" : \"$input.params('Body')\",\n \"\ fromNumber\" : \"$input.params('From')\",\n \"image\" : \"$input.params('MediaUrl0')\"\ ,\n \"numMedia\" : \"$input.params('NumMedia')\"\n}" # NOTE: Replace <> and <> fields uri: arn:aws:apigateway:<>:lambda:path/2015-03-31/functions/arn:aws:lambda:<>:<>:function:${stageVariables.LambdaFunctionName}/invocations passthroughBehavior: "when_no_templates" httpMethod: "POST" contentHandling: "CONVERT_TO_TEXT" type: "aws"