-
Notifications
You must be signed in to change notification settings - Fork 0
/
mockoon.json
97 lines (97 loc) · 2.96 KB
/
mockoon.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"uuid": "b184e781-6aa3-455f-9c91-6ed894051827",
"lastMigration": 24,
"name": "OprProxy",
"endpointPrefix": "",
"latency": 0,
"port": 80,
"hostname": "0.0.0.0",
"routes": [
{
"uuid": "f05373a5-62fa-48dd-b9f3-a785093b996c",
"documentation": "",
"method": "get",
"endpoint": "v1/health",
"responses": [
{
"uuid": "e69e9ba2-6392-4c05-b5c7-1e4a71d8a19b",
"body": "{\n \"status\": \"pass\",\n \"usage\": {{int 0 100}},\n \"runtimes\": {\n {{#repeat 0 5 comma=true}}\n \"runtime{{@index}}\": { \"status\":\"pass\", \"usage\":{{int 0 100}} }\n {{/repeat}}\n }\n}",
"latency": 0,
"statusCode": 200,
"label": "",
"headers": [],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": true
}
],
"enabled": true,
"responseMode": null
},
{
"uuid": "15068b94-a77e-4362-a20f-24a4904b29ba",
"documentation": "",
"method": "get",
"endpoint": "v1/ping",
"responses": [
{
"uuid": "2f19044b-ffe3-45f7-974d-128211f061a7",
"body": "{\"ping\":\"pong\",\"server\":\"{{header 'x-opr-executor-hostname' 'UNKNOWN'}}\",\"secret\":\"{{header 'Authorization' 'UNKNOWN'}}\"}",
"latency": 0,
"statusCode": 200,
"label": "",
"headers": [],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": true
}
],
"enabled": true,
"responseMode": null
}
],
"proxyMode": false,
"proxyHost": "",
"proxyRemovePrefix": false,
"tlsOptions": {
"enabled": false,
"type": "CERT",
"pfxPath": "",
"certPath": "",
"keyPath": "",
"caPath": "",
"passphrase": ""
},
"cors": true,
"headers": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"proxyReqHeaders": [
{
"key": "",
"value": ""
}
],
"proxyResHeaders": [
{
"key": "",
"value": ""
}
],
"data": []
}