This repository has been archived by the owner on Nov 29, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
example.conf.json
65 lines (64 loc) · 1.72 KB
/
example.conf.json
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
{
"ext_libs": {
"example_lib": "/ext_libs/example.js",
"counters": "/ext_libs/counters.js"
},
"queryStringParam": "tc",
"mockResponses": {
"default": {
"/exampleStatic": {
"get": {
"type": "staticFile",
"path": "/mockfiles/res_static_1.json"
}
},
"/exampleFunction": {
"get": {
"type": "function",
"fn": "example_lib.exampleFunction1"
}
},
"/exampleStaticPost": {
"post": {
"type": "staticFile",
"path": "/mockfiles/res_static_post.json"
}
},
"/echo": {
"get": {
"type": "function",
"fn": "example_lib.echo"
}
},
"/counter": {
"get": {
"type": "function",
"fn": "counters.count"
}
},
"/reset": {
"get": {
"type": "function",
"fn": "counters.reset"
}
}
},
"tc1": {
"/exampleStatic": {
"get": {
"type": "staticFile",
"path": "/mockfiles/res_static_2.json"
}
}
},
"tc2": {
"/exampleStatic": {
"get": {
"type": "extend",
"extendFrom": "default",
"obj": {"live": 1, "message": "thanks"}
}
}
}
}
}