-
Notifications
You must be signed in to change notification settings - Fork 4
/
.joule.yml
57 lines (56 loc) · 1.97 KB
/
.joule.yml
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
version: 0.0.1
language: 'nodejs'
environment_variables:
- MyVariable # accessible as process.env.MyVariable - value input through the site
methods:
GET:
status_codes:
- 200 # Can only have one 2xx status code and it must be first in the list
- 400 # Currently accepts 400, 401, 404, 409, 500
- 401
- 404
- 409
- 500
path_params:
- myPathParam : required # [required or optional], see below for details, accessible as process.env.myPathParam
query_string_params:
- myQueryStringParam # accessible as process.env.myQueryStringParam
POST:
status_codes:
- 201 # Can only have one 2xx status code and it must be first in the list
- 400 # Currently accepts 400, 401, 404, 409, 500
- 401
- 404
- 409
- 500
path_params:
- myPathParam : required # [required or optional], see below for details, accessible as process.env.myPathParam
query_string_params:
- myQueryStringParam # accessible as process.env.myQueryStringParam
PUT:
status_codes:
- 201 # Can only have one 2xx status code and it must be first in the list
- 400 # Currently accepts 400, 401, 404, 409, 500
- 401
- 404
- 409
- 500
path_params:
- myPathParam : required # [required or optional], see below for details, accessible as process.env.myPathParam
query_string_params:
- myQueryStringParam # accessible as process.env.myQueryStringParam
DELETE:
status_codes:
- 201 # Can only have one 2xx status code and it must be first in the list
- 400 # Currently accepts 400, 401, 404, 409, 500
- 401
- 404
- 409
- 500
path_params:
- myPathParam : required # [required or optional], see below for details, accessible as process.env.myPathParam
query_string_params:
- myQueryStringParam # accessible as process.env.myQueryStringParam
# path params
# all required must come before optional
# only one optional allowed