-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrecipe.yaml
51 lines (51 loc) · 997 Bytes
/
recipe.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
routes:
/:
get:
sequential: true
responses:
- code: 200
data: |
{
"some": "data",
"to": "return"
}
- code: 500
data: "{\"error\": \"something went wrong\"}"
/animals:
post:
responses:
- code: 204
data: ""
get:
responses:
- code: 200
data: |
[
{
"animal": "dog",
"name": "spot"
}
]
/animals/:name/details:
get:
responses:
- code: 200
data: |
{
"animal": "bear",
"name": "{{ index .Vars "name" }}"
}
/animals/:name/food:
get:
responses:
- code: 200
data: |
{
"animal": "bear",
"food": ["salmon", "berries"]
}
default:
responses:
- code: 200
data: |
{"default": true}