-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.yml
61 lines (61 loc) · 1.26 KB
/
config.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
58
59
60
61
routes:
- method: GET
path: /users/:id
response:
- name: Warm up
cond: routeRequestCount < 2
status: 500
header:
Content-Type: application/json
body: >
{
"message": "Warn up now.... Please wait."
}
- name: 200
cond: param["id"] < 100
delay: 0.0
status: 200
header:
Content-Type: application/json
body: >
{
"id": {{ .Param.id }},
"name": "Alice"
}
- name: 404
status: 404
header:
Content-Type: application/json
body: >
{
"message": "Not Found"
}
- method: POST
path: /users
response:
- name: 401
cond: true
status: 401
header:
Content-Type: application/json
body: >
{
"message": "Unauthorized"
}
- method: "*"
path: /company
response:
- name: search
status: 302
redirect: https://soranoba.net
- method: "*"
path: "*"
response:
- name: default
status: 404
header:
Content-Type: application/json
body: >
{
"message": "Not Found"
}