Created
April 5, 2023 15:32
-
-
Save singledigit/cfcd8bc6a1ed421c6b6b1196f189931d to your computer and use it in GitHub Desktop.
Non-proxy catch all endpoint
This file contains hidden or 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
openapi: "3.0.1" | |
info: | |
title: "vtl-example" | |
version: "1.0" | |
servers: | |
- url: "https://r5aji4fod4.execute-api.us-west-2.amazonaws.com/{basePath}" | |
variables: | |
basePath: | |
default: "/Prod" | |
paths: | |
/{proxy+}: | |
x-amazon-apigateway-any-method: | |
parameters: | |
- name: "proxy" | |
in: "path" | |
required: true | |
schema: | |
type: "string" | |
responses: | |
"400": | |
description: "400 response" | |
content: {} | |
"200": | |
description: "200 response" | |
content: {} | |
x-amazon-apigateway-integration: | |
credentials: "arn:aws:iam::55555555555:role/vtl-example-HelloWorldStateMachineApiEventRole-TT2EO0WZEX69" | |
httpMethod: "POST" | |
uri: "arn:aws:apigateway:us-west-2:states:action/StartExecution" | |
responses: | |
"200": | |
statusCode: "200" | |
"400": | |
statusCode: "400" | |
requestTemplates: | |
application/json: "{\"input\": \"$util.escapeJavaScript($input.json('$'))\"\ | |
, \"stateMachineArn\": \"arn:aws:states:us-west-2:55555555555:stateMachine:HelloWorldStateMachine-ETKhkDYP8spH\"\ | |
}" | |
passthroughBehavior: "when_no_match" | |
type: "aws" | |
components: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment