1
0

feat: example of apigateway rest api

This commit is contained in:
xpk
2026-03-15 13:02:59 +08:00
parent 4c3754e79f
commit c0c08b1584
8 changed files with 282 additions and 0 deletions
+57
View File
@@ -0,0 +1,57 @@
{
"openapi" : "3.0.1",
"info" : {
"title" : "HelloWorld",
"version" : "2026-03-15T04:22:58Z"
},
"servers" : [ {
"url" : "https://8cti482053.execute-api.ap-east-1.amazonaws.com/{basePath}",
"variables" : {
"basePath" : {
"default" : "test"
}
}
} ],
"paths" : {
"/" : {
"x-amazon-apigateway-any-method" : {
"responses" : {
"200" : {
"description" : "200 response",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/Empty"
}
}
}
}
},
"x-amazon-apigateway-integration" : {
"type" : "aws_proxy",
"uri" : "arn:aws:apigateway:ap-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:ap-east-1:040216112220:function:HashWebApp/invocations",
"httpMethod" : "POST",
"responses" : {
"default" : {
"statusCode" : "200"
}
},
"passthroughBehavior" : "when_no_match",
"timeoutInMillis" : 10000,
"responseTransferMode" : "BUFFERED",
"contentHandling" : "CONVERT_TO_TEXT"
}
}
}
},
"components" : {
"schemas" : {
"Empty" : {
"title" : "Empty Schema",
"type" : "object"
}
}
},
"x-amazon-apigateway-security-policy" : "SecurityPolicy_TLS13_1_3_2025_09",
"x-amazon-apigateway-endpoint-access-mode" : "BASIC"
}