-
Notifications
You must be signed in to change notification settings - Fork 0
/
swagger.example.yaml
37 lines (37 loc) · 1.1 KB
/
swagger.example.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
swagger: "2.0"
info:
version: "1.0.0"
title: Dialogflow - Google Actions Gateway
description: Webhook to allow Dialogflow to call an action stored in a lambda function
paths:
/my-voice-app:
post:
summary: Call lambda function.
description: |
Call lambda function.
security:
- api_key: []
produces:
- "application/json;charset=utf-8"
x-amazon-apigateway-integration:
type: aws
uri: arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:123456789012:function:my-voice-app/invocations
credentials: arn:aws:iam::123456789012:role/lambda_gateway_execution
httpMethod: POST
responses:
default:
statusCode: "200"
responseParameters:
method.response.header.Content-Type: "'application/json;charset=utf-8'"
responses:
200:
description: An object with the response
headers:
Content-Type:
type: "string"
securityDefinitions:
api_key:
type: "apiKey"
name: "x-api-key"
in: "header"