-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapis.json
executable file
·105 lines (105 loc) · 2.68 KB
/
apis.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
{
"settings": {
"default_content_type": "application/json"
},
"apis": [
{
"path": ["/info", "/status"],
"method": ["GET"],
"accept": ["all"],
"response": {
"content_type": "application/json",
"data": {
"name": "magic-mock-api",
"version": ".0.9.5",
"description": "mock rest api tool"
},
"status_code": 200
}
},
{
"path": ["/register"],
"method": ["POST", "PUT"],
"accept": ["application/json", "application/x-www-form-urlencoded"],
"response": {
"content_type": "application/json",
"data": {
"act_type": 1,
"status": "success",
"register_id": "a99f391852caf97496e7a5ad27a7f295ecc194061b490985959472f3da3d00fb"
},
"status_code": 200
},
"callback": {
"url": "http://localhost:7001/status",
"method": "GET",
"headers": {
"Content-Type": "application/json; charset=utf-8"
}
}
},
{
"path": ["/heartbeat"],
"method": ["POST"],
"accept": ["application/json", "application/x-www-form-urlencoded", "text/html", "application/octet-stream", "text/plain"],
"response": {
"content_type": "application/json",
"data": {
"act_type": 1,
"status": "success",
"message": "OK, keep in touch"
},
"status_code": 200
},
"callback": {
"url": "http://localhost:6001/app/status",
"method": "POST",
"headers": {
"Content-Type": "application/json; charset=utf-8"
},
"data": {
"message": "hello OKJ asset",
"amount": 2021
}
}
},
{
"path": ["/notify"],
"method": ["POST"],
"accept": ["all"],
"response": {
"content_type": "application/json",
"data": {
"act_type": 1,
"status": "acknowledged"
},
"status_code": 200
}
},
{
"path": ["/foo"],
"method": ["POST"],
"accept": ["application/json"],
"response": {
"content_type": "application/json",
"data": {
"bar": "okay",
"message": "test accept type"
},
"status_code": 200
}
},
{
"path": ["/btc"],
"method": ["GET","POST"],
"accept": ["all"],
"response": {
"content_type": "text/plain",
"data": {
"welcome": "buy btc now"
},
"status_code": 200
}
}
]
}