--- swagger: "2.0" info: version: "2020-06-23T17:07:02Z" title: "Downloader" host: "bjhd585g57.execute-api.us-east-1.amazonaws.com" basePath: "/prod" schemes: - "https" paths: /downloader: post: consumes: - "application/json" produces: - "application/json" parameters: - in: "body" name: "Input" required: true schema: $ref: "#/definitions/Input" responses: 200: description: "200 response" schema: $ref: "#/definitions/Empty" headers: Access-Control-Allow-Origin: type: "string" x-amazon-apigateway-integration: credentials: "arn:aws:iam::[your-aws-account-no]:role/lambda-invoke-assume-apigw" uri: "arn:aws:apigateway:us-east-1:lambda:path//2015-03-31/functions/arn:aws:lambda:us-east-1:[your-aws-account-no]:function:youtube-downloader/invocations" responses: default: statusCode: "200" responseParameters: method.response.header.Access-Control-Allow-Origin: "'*'" passthroughBehavior: "when_no_match" httpMethod: "POST" type: "aws" options: consumes: - "application/json" produces: - "application/json" responses: 200: description: "200 response" schema: $ref: "#/definitions/Empty" headers: Access-Control-Allow-Origin: type: "string" Access-Control-Allow-Methods: type: "string" Access-Control-Allow-Headers: type: "string" x-amazon-apigateway-integration: responses: default: statusCode: "200" responseParameters: method.response.header.Access-Control-Allow-Methods: "'OPTIONS,POST'" method.response.header.Access-Control-Allow-Headers: "'*'" method.response.header.Access-Control-Allow-Origin: "'*'" requestTemplates: application/json: "{\"statusCode\": 200}" passthroughBehavior: "when_no_match" type: "mock" definitions: Empty: type: "object" title: "Empty Schema" Input: type: "object" properties: Url: type: "string" BucketName: type: "string" title: "Input"