· 5 years ago · Jun 17, 2020, 11:18 AM
1swagger: "2.0"
2info:
3 description: "This is a sample hello server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters."
4 version: "1.0.0"
5 title: "Swagger Greeting"
6 termsOfService: "http://swagger.io/terms/"
7 contact:
8 email: "apiteam@swagger.io"
9 license:
10 name: "Apache 2.0"
11 url: "http://www.apache.org/licenses/LICENSE-2.0.html"
12host: "api-gateway"
13basePath: "/v1/"
14schemes:
15 - "https"
16 - "http"
17paths:
18 /hello:
19 get:
20 x-amazon-apigateway-integration:
21 type: aws
22 uri:
23 Fn::Sub: "arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${HelloWorldFunction.Arn}/invocations"
24 httpMethod: POST
25 passthroughBehavior: when_no_match
26 contentHandling: "CONVERT_TO_TEXT"
27 responses:
28 default:
29 statusCode: '200'
30 tags:
31 - "hello"
32 summary: "Get Hello World greeting"
33 description: "Would be good to get a hello world started"
34 produces:
35 - "application/json"
36 responses:
37 "200":
38 description: "successful operation"
39 schema:
40 $ref: "#/definitions/HelloWorld"
41
42definitions:
43 HelloWorld:
44 type: "string"
45
46externalDocs:
47 description: "Find out more about Swagger"
48 url: "http://swagger.io"