-
Notifications
You must be signed in to change notification settings - Fork 0
/
requests.http
217 lines (191 loc) · 7.21 KB
/
requests.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
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
###
http://localhost:8080/entries/3P8M8XGF2uzDazV5fzdKNxrbC3YqCWScKxw/$RESERVED_AMOUNT/?block_timestamp=2020-02-18T23:16:09Z
###
http://localhost:8080/entries/3P8M8XGF2uzDazV5fzdKNxrbC3YqCWScKxw/$RESERVED_AMOUNT/?height=1929637
###
http://localhost:8080/entries/3P8M8XGF2uzDazV5fzdKNxrbC3YqCWScKxw/$RESERVED_AMOUNT/?block_timestamp=2020-08-18T23:16:09Z
###
http://localhost:8080/entries/3P8M8XGF2uzDazV5fzdKNxrbC3YqCWScKxw/$RESERVED_AMOUNT/?height=2017867
###
http://localhost:8080/entries/3P8M8XGF2uzDazV5fzdKNxrbC3YqCWScKxw/$RESERVED_AMOUNT/
###
POST http://localhost:8080/entries/?block_timestamp=2019-11-18T23:16:09Z HTTP/1.1
content-type: application/json
{
"address_key_pairs": [
{"address":"3P8M8XGF2uzDazV5fzdKNxrbC3YqCWScKxw", "key":"$RESERVED_AMOUNT"},
{"address":"3P8M8XGF2uzDazV5fzdKNxrbC3YqCWScKxw", "key":"$GAME_NUM"},
{"address":"3P5Bfd58PPfNvBM2Hy8QfbcDqMeNtzg7KfP", "key":"price_index"}
]
}
###
POST http://localhost:8080/entries/?height=1801309 HTTP/1.1
content-type: application/json
{
"address_key_pairs": [
{"address":"3P8M8XGF2uzDazV5fzdKNxrbC3YqCWScKxw", "key":"$RESERVED_AMOUNT"},
{"address":"3P8M8XGF2uzDazV5fzdKNxrbC3YqCWScKxw", "key":"$GAME_NUM"},
{"address":"3P5Bfd58PPfNvBM2Hy8QfbcDqMeNtzg7KfP", "key":"price_index"}
]
}
###
POST http://localhost:8080/entries/?height=1801520 HTTP/1.1
content-type: application/json
{
"address_key_pairs": [
{"address":"3P8M8XGF2uzDazV5fzdKNxrbC3YqCWScKxw", "key":"$RESERVED_AMOUNT"},
{"address":"3P8M8XGF2uzDazV5fzdKNxrbC3YqCWScKxw", "key":"$GAME_NUM"},
{"address":"3P5Bfd58PPfNvBM2Hy8QfbcDqMeNtzg7KfP", "key":"price_index"}
]
}
###Error
POST http://localhost:8080/entries/?height=1801520&block_timestamp=2020-08-18T23:16:09Z HTTP/1.1
content-type: application/json
{
"address_key_pairs": [
{"address":"3P8M8XGF2uzDazV5fzdKNxrbC3YqCWScKxw", "key":"$RESERVED_AMOUNT"},
{"address":"3P8M8XGF2uzDazV5fzdKNxrbC3YqCWScKxw", "key":"$GAME_NUM"},
{"address":"3P5Bfd58PPfNvBM2Hy8QfbcDqMeNtzg7KfP", "key":"price_index"}
]
}
###Error
POST http://localhost:8080/entries/?block_timestamp=2020-08-18T23:16:09 HTTP/1.1
content-type: application/json
{
"address_key_pairs": [
{"address":"3P8M8XGF2uzDazV5fzdKNxrbC3YqCWScKxw", "key":"$RESERVED_AMOUNT"},
{"address":"3P8M8XGF2uzDazV5fzdKNxrbC3YqCWScKxw", "key":"$GAME_NUM"},
{"address":"3P5Bfd58PPfNvBM2Hy8QfbcDqMeNtzg7KfP", "key":"price_index"}
]
}
###
POST https://mainnet-dev.waves.exchange/api/v1/state/search
Content-Type: application/json
{"filter": {"address": {"operation": "eq", "value": "3PBSX4sRwoVc4Wgn46eaK9R1jGCFYSKnFRy"}}}
###NotFound
POST http://localhost:8080/entries/?block_timestamp=2019-11-18T23:16:09Z HTTP/1.1
content-type: application/json
{
"address_key_pairs": [
{"address":"3P8M\"'8XGF2uz'Da\\'z\\V5fzdKN xrbC3YqCWScKxw", "key":"$RES ERVE'D_AMOUNT"},
{"address":"3P8M8XGF2uzD 'azV5fzdKNxr bC3YqCWScKxw", "key":"$GA M'E_NUM"},
{"address":"3P5Bfd58PPfNv'BM2Hy8Qfb cDqMeNtzg7KfP", "key":"pric\\'e_in dex"}
]
}
###
POST http://localhost:8080/search
Content-Type: application/json
{
"filter": {
"address": {
"operation": "eq",
"value": "3PBSX4sRwoVc\\'4Wgn46eaK9R1jGCFYSKnFRy"
}
}
}
###
POST http://localhost:8080/search
Content-Type: application/json
{"filter":{"and":[{"address":{"operation":"eq","value":"3Mzt645zA6u2QG6jRPoo6H6CK89kVggFgNi"}},{"or":[{"key":{"operation":"eq","value":"%s%s\\'%'s__config__asset__DWgwcZTMhSvnyYCoWLRUXXSH1RSkzThXLJhww9gwkqdn"}},{"key":{"operation":"eq","value":"%s%s%d_\\'_shutd\\\"own__put__2"}}]}]}}
###
POST http://localhost:8080/search
Content-Type: application/json
{
"filter":{
"in":{
"properties":[
{"address":{}},
{
"fragment":{
"position":0,
"type":"string"
}
},
{"fragment":{"position":1,"type":"integer"}},
{"fragment":{"position":2,"type":"string"}}
],
"values":[
["3My9pmwLQ2CRvUXtT9f6B8E5rHAkqMnP4xs","P",0,"3Mz9N7YPfZPWGd4yYaX6H53Gcgrq6ifYiH7"],
["3My9pmwLQ2CRvUXtT9f6B8E5rHAkqMnP4xs","G",0,"3Mz9N7YPfZPWGd4yYaX6H53Gcgrq6ifYiH7"],
["3NC9wWawxuFG6a3sZdfckGwoMeVhLFjZFwH","P",1,"3Mz9N7YPfZPWGd4yYaX6H53Gcgrq6ifYiH7"],
["3NC9wWawxuFG6a3sZdfckGwoMeVhLFjZFwH","G",1,"3Mz9N7YPfZPWGd4yYaX6H53Gcgrq6ifYiH7"]
]
}
}
}
###
POST http://localhost:8080/search
Content-Type: application/json
{
"filter":{
"in":{
"properties":[
{"address":{}},
{
"fragment":{
"position":0,
"type":"string"
}
},
{"fragment":{"position":1,"type":"integer"}},
{"fragment":{"position":2,"type":"string"}}
],
"values":[
["3My9pmwLQ2\\CRvUXtT9f6\\'B8E5rHAkqMnP4xs","P",0,"3Mz9N7YPfZPWGd4yYaX'6H53Gcgrq6ifYiH7"],
["3My9pmwLQ2CRvUXtT9'f6B8E5rHAkqMnP4xs","G",0,"3Mz9N7YPfZPWGd4yYaX'6H53Gcgrq6ifYiH7"],
["3NC9wWawxuFG6a3sZdfc'kGwoMeVhLFjZFwH","P",1,"3Mz9N7YPfZPWGd4yYaX'6H53Gcgrq6ifYiH7"],
["3NC9wWawxuFG6a3sZdfck'GwoMeVhLFjZFwH","G",1,"3Mz9N7YPfZPWGd4yYa'X6H53Gcgrq6ifYiH7"]
]
}
}
}
###
POST http://localhost:8080/search
Content-Type: application/json
{
"filter":{
"in":{
"properties":[
{"address":{}},
{"key":{}}
],
"values":[
["3P8M8XGF2uzDazV5fzdKNxrbC3YqCWScKxw","%s%s%d__topup__currentIdx__0"],
["3My9pmwLQ2CRvUXtT9f6B8E5rHAkqMnP4xs","%s%s%d__limits__remaining__0"],
["3My9pmwLQ2CRvUXtT9f6B8E5rHAkqMnP4xs","%s%s%d__shutdown__put__0"],
["3My9pmwLQ2CRvUXtT9f6B8E5rHAkqMnP4xs","%s%s%d__price__last__0"],
["3My9pmwLQ2CRvUXtT9f6B8E5rHAkqMnP4xs","%s%s%s__config__asset__DWgwcZTMhSvnyYCoWLRUXXSH1RSkzThXLJhww9gwkqdn"],
["3NC9wWawxuFG6a3sZdfckGwoMeVhLFjZFwH","%s%s%d__topup__currentIdx__1"],
["3NC9wWawxuFG6a3sZdfckGwoMeVhLFjZFwH","%s%s%d__limits__remaining__1"],
["3NC9wWawxuFG6a3sZdfckGwoMeVhLFjZFwH","%s%s%d__shutdown__put__1"],
["3NC9wWawxuFG6a3sZdfckGwoMeVhLFjZFwH","%s%s%d__price__last__1"],
["3NC9wWawxuFG6a3sZdfckGwoMeVhLFjZFwH","%s%s%s__config__asset__DWgwcZTMhSvnyYCoWLRUXXSH1RSkzThXJhww9gwkqdn"]
]
}
}
}
###NotFound
POST http://localhost:8080/search
Content-Type: application/json
{
"filter":{
"in":{
"properties":[
{"address":{}},
{"key":{}}
],
"values":[
["3My9pmwLQ2CRvUXtT9f6B8'E5rHAkqMnP4xs","%s%s%'d__topup__currentIdx__0"],
["3My9pmwLQ2CRvUXtT9'f6B8E5rHAkqMnP4xs","%s%s'%d__limits__remaining__0"],
["3My9pmwLQ2CRvUXtT9f6B8'E5rHAkqMnP4xs","%s%s%'d__shutdown__put__0"],
["3My9pmwLQ2CRvUXtT9'f6B8E5rHAkqMnP4xs","%s%'s%d__price__last__0"],
["3My9pmwLQ2CRvUXtT9f'6B8E5rHAkqMnP4xs","%s%s%s_'_config__asset__DWgwcZTMhSvnyYCoWLRUXXSH1RSkzThXLJhww9gwkqdn"],
["3NC9wWawxuFG6'a3sZdfckGwoMeVhLFjZFwH","%s%s'%d__topup__currentId'x__1"],
["3NC9wWawxu'FG6a3sZdfckGwoMeVhLFjZFwH","%s%'s%d__limits__remai'ning__1"],
["3NC9wWawxuF'G6a3sZdfckGwoMeVhLFjZFwH","%s%s'%d__shutdown__put__1"],
["3NC9wWawxuFG6a3sZdfckGwoMeVhLF'jZFwH","%s%s%d__price_'_last__1"],
["3NC9wWaw'xuFG6a3sZdfckG\\'woMeVhLFjZFwH","%s\\'%s%s_'_config__asset__DWgwcZTMhSv'nyYCoWL\\RUXXSH1RSkzThX\\'Jhww9gwkqdn"]
]
}
}
}