UNPKG

genericsuite-be-scripts

Version:
141 lines (140 loc) 6.65 kB
/ENDPOINT_placeholder: get: consumes: - application/json produces: - application/json responses: '200': description: 200 response schema: $ref: '#/definitions/Empty' x-amazon-apigateway-integration: responses: default: statusCode: '200' uri: Fn::Sub: arn:${AWS::Partition}:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${APIHandler.Arn}/invocations passthroughBehavior: when_no_match httpMethod: POST contentHandling: CONVERT_TO_TEXT type: aws_proxy summary: Handles generic route requests and delegates to the appropriate description: "CRUD operation based on the request parameters.\n\nArgs:\n\ \ request (AuthorizedRequest): The authorized request object.\n\ \ kwargs (dict): Additional keyword arguments.\n\nReturns:\n \ \ Response: The response from the CRUD operation." post: consumes: - application/json produces: - application/json responses: '200': description: 200 response schema: $ref: '#/definitions/Empty' x-amazon-apigateway-integration: responses: default: statusCode: '200' uri: Fn::Sub: arn:${AWS::Partition}:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${APIHandler.Arn}/invocations passthroughBehavior: when_no_match httpMethod: POST contentHandling: CONVERT_TO_TEXT type: aws_proxy summary: Handles generic route requests and delegates to the appropriate description: "CRUD operation based on the request parameters.\n\nArgs:\n\ \ request (AuthorizedRequest): The authorized request object.\n\ \ kwargs (dict): Additional keyword arguments.\n\nReturns:\n \ \ Response: The response from the CRUD operation." put: consumes: - application/json produces: - application/json responses: '200': description: 200 response schema: $ref: '#/definitions/Empty' x-amazon-apigateway-integration: responses: default: statusCode: '200' uri: Fn::Sub: arn:${AWS::Partition}:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${APIHandler.Arn}/invocations passthroughBehavior: when_no_match httpMethod: POST contentHandling: CONVERT_TO_TEXT type: aws_proxy summary: Handles generic route requests and delegates to the appropriate description: "CRUD operation based on the request parameters.\n\nArgs:\n\ \ request (AuthorizedRequest): The authorized request object.\n\ \ kwargs (dict): Additional keyword arguments.\n\nReturns:\n \ \ Response: The response from the CRUD operation." delete: consumes: - application/json produces: - application/json responses: '200': description: 200 response schema: $ref: '#/definitions/Empty' x-amazon-apigateway-integration: responses: default: statusCode: '200' uri: Fn::Sub: arn:${AWS::Partition}:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${APIHandler.Arn}/invocations passthroughBehavior: when_no_match httpMethod: POST contentHandling: CONVERT_TO_TEXT type: aws_proxy summary: Handles generic route requests and delegates to the appropriate description: "CRUD operation based on the request parameters.\n\nArgs:\n\ \ request (AuthorizedRequest): The authorized request object.\n\ \ kwargs (dict): Additional keyword arguments.\n\nReturns:\n \ \ Response: The response from the CRUD operation." options: consumes: - application/json produces: - application/json responses: '200': description: 200 response schema: $ref: '#/definitions/Empty' headers: Access-Control-Allow-Methods: type: string Access-Control-Allow-Origin: type: string Access-Control-Allow-Headers: type: string Access-Control-Expose-Headers: type: string Access-Control-Max-Age: type: string Access-Control-Allow-Credentials: type: string x-amazon-apigateway-integration: responses: default: statusCode: '200' responseParameters: method.response.header.Access-Control-Allow-Methods: '''GET,POST,PUT,DELETE,OPTIONS''' method.response.header.Access-Control-Allow-Origin: '''http://localhost:3000''' method.response.header.Access-Control-Allow-Headers: '''Access-Control-Allow-Origin,Authorization,Content-Type,X-Amz-Date,X-Amz-Security-Token,X-Api-Key''' method.response.header.Access-Control-Expose-Headers: '''Authorization,Access-Control-Allow-Origin,Content-Type''' method.response.header.Access-Control-Max-Age: '''600''' method.response.header.Access-Control-Allow-Credentials: '''true''' requestTemplates: application/json: '{"statusCode": 200}' passthroughBehavior: when_no_match type: mock contentHandling: CONVERT_TO_TEXT