-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathMocking.json
145 lines (145 loc) · 5.66 KB
/
Mocking.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
{
"uuid": "d72241e5-562e-45c1-9a65-5e37c4d213ae",
"lastMigration": 29,
"name": "Coffee Shop",
"endpointPrefix": "api",
"latency": 0,
"port": 3002,
"hostname": "",
"folders": [],
"routes": [
{
"uuid": "de160c45-4ac5-4a66-abfe-0d171080d1ad",
"type": "http",
"documentation": "",
"method": "get",
"endpoint": "special-offers",
"responses": [
{
"uuid": "fc435200-e3a8-485c-85d1-a5245ffaa03d",
"body": "[\n {\n \"name\": \"Latte & Croissant\",\n \"description\": \"1 small Latte and 1 regular croissant\",\n \"image\": \"latte\",\n \"price\": 7,\n },\n {\n \"name\": \"Cortado & Muffin\",\n \"description\": \"1 regular Cortado and 1 Muffin\",\n \"image\": \"cortado\",\n \"price\": 5.5,\n },\n]",
"latency": 0,
"statusCode": 200,
"label": "",
"headers": [],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": true,
"crudKey": "id"
}
],
"enabled": true,
"responseMode": null
},
{
"uuid": "7983f8df-1d4a-43c9-9cb5-d7a1651c7055",
"type": "http",
"documentation": "",
"method": "post",
"endpoint": "place-order",
"responses": [
{
"uuid": "ac78d31a-5276-4d49-be3a-77a6e83d3a2e",
"body": "",
"latency": 0,
"statusCode": 200,
"label": "",
"headers": [],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": true,
"crudKey": "id"
}
],
"enabled": true,
"responseMode": null
},
{
"uuid": "c29d0596-fc68-481e-b847-d40fdf861f20",
"type": "http",
"documentation": "",
"method": "get",
"endpoint": "coffee-data",
"responses": [
{
"uuid": "8c512672-47bb-4787-a041-38a87aeee1a8",
"body": "[\n {\n \"date\": \"2023-08-01\",\n \"details\": [\n {\n \"type\": \"latte\",\n \"amount\": 10\n }, \n {\n \"type\": \"cappuccino\",\n \"amount\": 3\n },\n {\n \"type\": \"latte\",\n \"amount\": 3\n },\n {\n \"type\": \"latte\",\n \"amount\": 2\n },\n ]\n },\n {\n \"date\": \"2023-09-01\",\n \"details\": [\n {\n \"type\": \"latte\",\n \"amount\": 10\n }, \n {\n \"type\": \"cappuccino\",\n \"amount\": 3\n },\n {\n \"type\": \"latte\",\n \"amount\": 3\n },\n {\n \"type\": \"latte\",\n \"amount\": 2\n },\n ]\n },\n {\n \"date\": \"2023-10-01\",\n \"details\": [\n {\n \"type\": \"latte\",\n \"amount\": 10\n }, \n {\n \"type\": \"cappuccino\",\n \"amount\": 3\n },\n {\n \"type\": \"latte\",\n \"amount\": 3\n },\n {\n \"type\": \"latte\",\n \"amount\": 2\n },\n ]\n },\n {\n \"date\": \"2023-11-01\",\n \"details\": [\n {\n \"type\": \"latte\",\n \"amount\": 10\n }, \n {\n \"type\": \"cappuccino\",\n \"amount\": 3\n },\n {\n \"type\": \"latte\",\n \"amount\": 3\n },\n {\n \"type\": \"latte\",\n \"amount\": 2\n },\n ]\n },\n {\n \"date\": \"2023-12-01\",\n \"details\": [\n {\n \"type\": \"latte\",\n \"amount\": 10\n }, \n {\n \"type\": \"cappuccino\",\n \"amount\": 3\n },\n {\n \"type\": \"latte\",\n \"amount\": 3\n },\n {\n \"type\": \"latte\",\n \"amount\": 2\n },\n ]\n },\n {\n \"date\": \"2024-01-01\",\n \"details\": [\n {\n \"type\": \"latte\",\n \"amount\": 10\n }, \n {\n \"type\": \"cappuccino\",\n \"amount\": 3\n },\n {\n \"type\": \"latte\",\n \"amount\": 3\n },\n {\n \"type\": \"latte\",\n \"amount\": 2\n },\n ]\n }\n]",
"latency": 0,
"statusCode": 200,
"label": "",
"headers": [],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": true,
"crudKey": "id"
}
],
"enabled": true,
"responseMode": null
}
],
"rootChildren": [
{
"type": "route",
"uuid": "de160c45-4ac5-4a66-abfe-0d171080d1ad"
},
{
"type": "route",
"uuid": "7983f8df-1d4a-43c9-9cb5-d7a1651c7055"
},
{
"type": "route",
"uuid": "c29d0596-fc68-481e-b847-d40fdf861f20"
}
],
"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": []
}