-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.json.sample
More file actions
67 lines (66 loc) · 1.37 KB
/
config.json.sample
File metadata and controls
67 lines (66 loc) · 1.37 KB
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
{
"debug": false,
"remote_server": "http://ip地址:8002",
"access_token": "Bearer 你的token",
"mock_server": "http://ip地址:8001",
"mock_server_headers": {
"token1":"token1",
},
"remove_mock_prefix": false,
"common": {
"user_res": {
"id": 1,
"name": "用户名",
"email": "邮箱"
},
"doc_res": {
"status": "success",
"data": "这是配置的响应数据,没有获取请求真实的后端",
"code": 200
}
},
"url_configs": {
"/api/users/[id]/": {
"GET": {
"response_data": "{{user_res}}"
},
"DELETE": {
"response_data": "{{user_res}}"
}
},
"/api/users/": {
"POST": {
"request_body": null,
"response_data": {
"id": 40,
"name": "用户名",
"email": "邮箱"
}
},
"GET": {
"request_body": null,
"response_delay": 2,
"is_enable": false,
"response_data": {
"count": 10,
"next": null,
"previous": null,
"results": [
"{{user_res}}",
{
"id": 43,
"name": "用户名",
"email": "邮箱"
}
]
}
}
},
"/api/docs/": {
"GET": {
"request_body": null,
"response_data": "{{doc_res}}"
}
}
}
}