-
Notifications
You must be signed in to change notification settings - Fork 9
/
test.http
110 lines (84 loc) · 1.25 KB
/
test.http
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
POST 127.0.0.1:8080/get
Content-Type: application/json
{
"Document": {
"id": 1
}
}
###
POST 127.0.0.1:8080/get
Content-Type: application/json
{
"document": {
"id{}": ">1"
}
}
###
POST 127.0.0.1:8080/get
Content-Type: application/json
{
"User[]": {
"User": {
"id{}":[38710,82001,70793]
}
}
}
###
POST 127.0.0.1:8080/get
Content-Type: application/json
{
"User[]": {
"User": {
"id{}": "<38711"
}
}
}
###
POST 127.0.0.1:8080/get
Content-Type: application/json
{
"User[]": {
"User": {
"id{}": ">70793,"
}
}
}
### 添加一条记录
POST 127.0.0.1:8080/post
Content-Type: application/json
{
"Comment":{
"id": 116136422088499,
"userId": 82012,
"momentId":12,
"content":"APIJSON,let interfaces and documents go to hell !"
},
"tag":"Comment"
}
### 更新一条记录
POST 127.0.0.1:8080/put
Content-Type: application/json
{
"Comment":{
"id": 301,
"content":"put is ok",
"toId": 97
},
"tag":"Comment"
}
### 删除一条记录
POST 127.0.0.1:8080/delete
Content-Type: application/json
{
"Comment":{
"id": 209
}
}
### 删除多条记录
POST 127.0.0.1:8080/delete
Content-Type: application/json
{
"Comment":{
"id{}": [300, 301, 4001]
}
}