-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathexample.conf
More file actions
31 lines (31 loc) · 733 Bytes
/
example.conf
File metadata and controls
31 lines (31 loc) · 733 Bytes
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
{
"proxy_host": "apid.docker",
"proxy_port": 8082,
"proxy_delay": "1s",
"port": 5004,
"fakes": [
{
"hyjack": "/api/settings.json",
"code": 500
},
{
"hyjack": "/api/functions.json",
"methods": [
"GET",
"POST"
],
"body": "{\"json\":true}",
"code": 201,
"headers": [
"Content-Type: application/json",
"Cache-Control: max-age=3600"
],
"time": "1s15ms"
},
{
"hyjack": "\/api\/users\/[0-9]+\/credits.json",
"code": 404,
"pattern_match": true
}
]
}