-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.rest
executable file
·387 lines (320 loc) · 10.4 KB
/
test.rest
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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
### Get range filter with picks
POST https://seadserv.humlab.umu.se:8089/api/facets/load
content-type: application/json
mode: cors
accept: application/json
{
"requestId":1,
"requestType":"populate",
"targetCode":"tbl_denormalized_measured_values_32",
"facetConfigs":[
{
"facetCode":"tbl_denormalized_measured_values_32",
"position":1,
"picks":[],
"textFilter":""
}
]
}
### Issue 29
POST https://seadserv.humlab.umu.se:8089/api/facets/load
content-type: application/json
mode: cors
accept: application/json
{
"requestId":1,
"requestType":"populate",
"targetCode":"tbl_denormalized_measured_values_33_0",
"facetConfigs":[ {
"facetCode":"tbl_denormalized_measured_values_33_0",
"position":1,
"picks":[],
"textFilter":""
}]
}
###
OPTIONS https://seadserv.humlab.umu.se:8089/api/result/load
mode: cors
### Issue with Country filter
POST https://seadserv.humlab.umu.se:8089/api/result/load
Sec-Fetch-Mode: cors
mode: cors
Accept: application/json, text/javascript, */*; q=0.01
Content-Type: application/json; charset=UTF-8
{"facetsConfig":{"requestId":2,"requestType":"populate","targetCode":"country","triggerCode":"country","facetConfigs":[{"facetCode":"country","position":1,"picks":[{"pickType":1,"pickValue":64,"text":64}],"textFilter":""}]},"resultConfig":{"requestId":2,"sessionId":"1","viewTypeId":"map","aggregateKeys":["site_level"]}}
### Issue with Sample group filter
POST https://seadserv.humlab.umu.se:8089/api/result/load
Sec-Fetch-Mode: cors
mode: cors
Accept: application/json, text/javascript, */*; q=0.01
Content-Type: application/json; charset=UTF-8
{"facetsConfig":{"requestId":4,"requestType":"populate","targetCode":"sample_groups","triggerCode":"sample_groups","facetConfigs":[{"facetCode":"sample_groups","position":1,"picks":[{"pickType":1,"pickValue":510,"text":510}],"textFilter":""}]},"resultConfig":{"requestId":4,"sessionId":"1","viewTypeId":"map","aggregateKeys":["site_level"]}}
### Testing MS filter
POST https://seadserv.humlab.umu.se:8089/api/facets/load
Sec-Fetch-Mode: cors
mode: cors
Accept: application/json, text/javascript, */*; q=0.01
Content-Type: application/json; charset=UTF-8
{
"requestId": 1,
"requestType": "populate",
"targetCode": "tbl_denormalized_measured_values_33_0",
"facetConfigs": [
{
"facetCode": "tbl_denormalized_measured_values_33_0",
"position": 1,
"picks": [
],
"textFilter": ""
}
]
}
### Testing range filters
POST https://seadserv.humlab.umu.se:8089/api/facets/load
Sec-Fetch-Mode: cors
mode: cors
Accept: application/json, text/javascript, */*; q=0.01
Content-Type: application/json; charset=UTF-8
{
"requestId":1,
"requestType":"populate",
"targetCode":"tbl_denormalized_measured_values_32",
"triggerCode":"tbl_denormalized_measured_values_32",
"facetConfigs":[ {
"facetCode":"tbl_denormalized_measured_values_32",
"position":1,
"picks":[
{ "pickType": 2, "pickValue": "10", "text": "10"},
{ "pickType": 3, "pickValue": "12", "text": "12"}
],
"textFilter":""
}
]
}
### Testing: MS with picks + Site
POST https://seadserv.humlab.umu.se:8089/api/facets/load
Sec-Fetch-Mode: cors
mode: cors
Accept: application/json, text/javascript, */*; q=0.01
Content-Type: application/json; charset=UTF-8
{
"requestId": 1,
"requestType": "populate",
"targetCode": "sites",
"facetConfigs": [
{
"facetCode": "tbl_denormalized_measured_values_33_0",
"position": 1,
"picks": [
{
"pickType": 2,
"pickValue": 100,
"text": 100
},
{
"pickType": 3,
"pickValue": 200,
"text": 200
}
],
"textFilter": ""
},
{
"facetCode": "sites",
"position": 2,
"picks": [],
"textFilter": ""
}
]
}
### Gives count 5 for span 1034 => 1036
POST https://seadserv.humlab.umu.se:8089/api/facets/load
Sec-Fetch-Mode: cors
mode: cors
Accept: application/json, text/javascript, */*; q=0.01
Content-Type: application/json; charset=UTF-8
{
"requestId": 1,
"requestType": "populate",
"targetCode": "tbl_denormalized_measured_values_33_0",
"facetConfigs": [
{
"facetCode": "tbl_denormalized_measured_values_33_0",
"position": 1,
"picks": [
{
"pickType": 2,
"pickValue": 900,
"text": 900
},
{
"pickType": 3,
"pickValue": 1200,
"text": 1200
}
],
"textFilter": ""
}
]
}
### Gives count 5 for spans 1034 => 1035 and 1035 => 1036 (total count: 10)
POST https://seadserv.humlab.umu.se:8089/api/facets/load
Sec-Fetch-Mode: cors
mode: cors
Accept: application/json, text/javascript, */*; q=0.01
Content-Type: application/json; charset=UTF-8
{
"requestId": 1,
"requestType": "populate",
"targetCode": "tbl_denormalized_measured_values_33_0",
"facetConfigs": [
{
"facetCode": "tbl_denormalized_measured_values_33_0",
"position": 1,
"picks": [
{
"pickType": 2,
"pickValue": 1030,
"text": 1030
},
{
"pickType": 3,
"pickValue": 1037,
"text": 1037
}
],
"textFilter": ""
}
]
}
### Failing fetch: Site-filter with a pick + MS-filter
POST https://seadserv.humlab.umu.se:8089/api/result/load
Sec-Fetch-Mode: cors
mode: cors
Accept: application/json, text/javascript, */*; q=0.01
Content-Type: application/json; charset=UTF-8
{
"facetsConfig":{
"requestId":2,
"requestType":"populate",
"targetCode":"tbl_denormalized_measured_values_33_0",
"triggerCode":"tbl_denormalized_measured_values_33_0",
"facetConfigs":[
{
"facetCode":"sites",
"position":1,
"picks":[
{
"pickType":1,
"pickValue":261,
"text":261
}
],
"textFilter":""
},
{
"facetCode":"tbl_denormalized_measured_values_33_0",
"position":2,
"picks":[
],
"textFilter":""
}
]
},
"resultConfig":{
"requestId":2,
"sessionId":"1",
"viewTypeId":"map",
"aggregateKeys":[
"site_level"
]
}
}
###
GET http://seadserv.humlab.umu.se:8080/qse_abundance_modification?or=(abundance_id.eq.5433,abundance_id.eq.5610,abundance_id.eq.5710,abundance_id.eq.5846,abundance_id.eq.5888,abundance_id.eq.5959,abundance_id.eq.6134,abundance_id.eq.6143,abundance_id.eq.6144,abundance_id.eq.6267,abundance_id.eq.6316,abundance_id.eq.6334,abundance_id.eq.6393,abundance_id.eq.6405,abundance_id.eq.6444,abundance_id.eq.6460,abundance_id.eq.6475,abundance_id.eq.6527,abundance_id.eq.6596,abundance_id.eq.6691,abundance_id.eq.6762,abundance_id.eq.6826,abundance_id.eq.6852,abundance_id.eq.6943,abundance_id.eq.7044,abundance_id.eq.7183,abundance_id.eq.7193,abundance_id.eq.7403,abundance_id.eq.7424,abundance_id.eq.7603,abundance_id.eq.7653,abundance_id.eq.7733,abundance_id.eq.7763,abundance_id.eq.7849,abundance_id.eq.7920,abundance_id.eq.7931,abundance_id.eq.8221,abundance_id.eq.8256,abundance_id.eq.8276,abundance_id.eq.8377,abundance_id.eq.8455,abundance_id.eq.8491,abundance_id.eq.8517,abundance_id.eq.8554,abundance_id.eq.8594)
Sec-Fetch-Mode: cors
mode: cors
Accept: application/json, text/javascript, */*; q=0.01
Content-Type: application/json; charset=UTF-8
null
### Gives count 5 for span 1034 => 1036
POST https://seadserv.humlab.umu.se:8089/api/facets/load
Sec-Fetch-Mode: cors
mode: cors
Accept: application/json, text/javascript, /; q=0.01
Content-Type: application/json; charset=UTF-8
{
"requestId": 1,
"requestType": "populate",
"targetCode": "tbl_denormalized_measured_values_33_0",
"facetConfigs": [
{
"facetCode": "tbl_denormalized_measured_values_33_0",
"position": 1,
"picks": [
{
"pickType": 2,
"pickValue": 900,
"text": 900
},
{
"pickType": 3,
"pickValue": 1200,
"text": 1200
}
],
"textFilter": ""
}
]
}
### Gives count 5 for spans 1034 => 1035 and 1035 => 1036 (total count: 10)
POST https://seadserv.humlab.umu.se:8089/api/facets/load
Sec-Fetch-Mode: cors
mode: cors
Accept: application/json, text/javascript, /; q=0.01
Content-Type: application/json; charset=UTF-8
{
"requestId": 1,
"requestType": "populate",
"targetCode": "tbl_denormalized_measured_values_33_0",
"facetConfigs": [
{
"facetCode": "tbl_denormalized_measured_values_33_0",
"position": 1,
"picks": [
{
"pickType": 2,
"pickValue": 1030,
"text": 1030
},
{
"pickType": 3,
"pickValue": 1037,
"text": 1037
}
],
"textFilter": ""
}
]
}
### MS 0-100 request
POST https://seadserv.humlab.umu.se:8089/api/facets/load
Sec-Fetch-Mode: cors
mode: cors
Accept: application/json, text/javascript, /; q=0.01
Content-Type: application/json; charset=UTF-8
{"requestId":17,"requestType":"populate","targetCode":"tbl_denormalized_measured_values_33_0","facetConfigs":[{"facetCode":"tbl_denormalized_measured_values_33_0","position":1,"picks":[{"pickType":2,"pickValue":0,"text":0},{"pickType":3,"pickValue":100,"text":100}],"textFilter":""}]}
### MS 0-10 request
POST https://seadserv.humlab.umu.se:8089/api/facets/load
Sec-Fetch-Mode: cors
mode: cors
Accept: application/json, text/javascript, /; q=0.01
Content-Type: application/json; charset=UTF-8
{"requestId":17,"requestType":"populate","targetCode":"tbl_denormalized_measured_values_33_0","facetConfigs":[{"facetCode":"tbl_denormalized_measured_values_33_0","position":1,"picks":[{"pickType":2,"pickValue":0,"text":0},{"pickType":3,"pickValue":10,"text":10}],"textFilter":""}]}
### Server failure on result load
POST https://seadserv.humlab.umu.se:8089/api/result/load
Sec-Fetch-Mode: cors
mode: cors
Accept: application/json, text/javascript, /; q=0.01
Content-Type: application/json; charset=UTF-8
{"facetsConfig":{"requestId":3,"requestType":"populate","targetCode":"tbl_denormalized_measured_values_32","triggerCode":"tbl_denormalized_measured_values_32","facetConfigs":[{"facetCode":"country","position":1,"picks":[{"pickType":1,"pickValue":162,"text":162},{"pickType":1,"pickValue":205,"text":205}],"textFilter":""},{"facetCode":"tbl_denormalized_measured_values_32","position":2,"picks":[{"pickType":2,"pickValue":0.2,"text":0.2},{"pickType":3,"pickValue":8.2,"text":8.2}],"textFilter":""}]},"resultConfig":{"requestId":3,"sessionId":"1","viewTypeId":"tabular","aggregateKeys":["site_level"]}}