-
Notifications
You must be signed in to change notification settings - Fork 129
/
faas.yaml
68 lines (67 loc) · 1.91 KB
/
faas.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
function-compute:
region: 'cn-shanghai'
services:
- name: 'wechat'
description: 'wechat demo'
functions:
- name: 'get'
description: 'Wechat get handler'
runtime: nodejs6
handler: wechat.get
codes:
- 'wechat.js'
- name: 'post'
description: 'Wechat post handler'
runtime: nodejs6
handler: wechat.post
codes:
- 'wechat.js'
- 'biz.js'
api-gateway:
endpoint: 'http://apigateway.cn-hangzhou.aliyuncs.com'
groups:
- name: 'wechat_group'
description: 'API Gateway & Function Compute'
apis:
- name: 'wechat_get'
method: 'GET'
path: '/wechat'
function: 'cn-shanghai/wechat/get'
parameters:
- name: 'encrypt_type'
- name: 'msg_signature'
- name: 'timestamp'
location: 'Query'
type: 'String'
required: 'REQUIRED'
- name: 'nonce'
location: 'Query'
type: 'String'
- name: 'signature'
location: 'Query'
type: 'String'
- name: 'echostr'
location: 'Query'
type: 'String'
- name: 'wechat_post'
method: 'POST'
path: '/wechat'
body_format: 'STREAM'
function: 'cn-shanghai/wechat/post'
parameters:
- name: 'timestamp'
location: 'Query'
type: 'String'
required: 'REQUIRED'
- name: 'nonce'
location: 'Query'
type: 'String'
- name: 'signature'
location: 'Query'
type: 'String'
- name: 'msg_signature'
location: 'Query'
type: 'String'
- name: 'encrypt_type'
location: 'Query'
type: 'String'