-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbackend-insomnia-calls.json
797 lines (797 loc) · 26.2 KB
/
backend-insomnia-calls.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
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
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
{
"_type": "export",
"__export_format": 3,
"__export_date": "2018-08-14T11:03:05.893Z",
"__export_source": "insomnia.desktop.app:v6.0.1",
"resources": [
{
"_id": "wrk_bafd6f5c8bcb4350b9a92f1c9f3b447e",
"created": 1530712345548,
"description": "",
"modified": 1530712345548,
"name": "GSoC",
"parentId": null,
"_type": "workspace"
},
{
"_id": "env_2d9020c62895487c9474e947d0d36964",
"color": null,
"created": 1530712345565,
"data": {},
"isPrivate": false,
"metaSortKey": 1533118412418,
"modified": 1533118412956,
"name": "New Environment",
"parentId": "wrk_bafd6f5c8bcb4350b9a92f1c9f3b447e",
"_type": "environment"
},
{
"_id": "jar_4cdd4d59c6864366bb62e6b07069fd3c",
"cookies": [
{
"creation": "2018-07-04T13:56:35.565Z",
"domain": "localhost",
"hostOnly": true,
"httpOnly": true,
"id": "61136639077717",
"key": "JSESSIONID",
"lastAccessed": "2018-07-04T13:56:35.565Z",
"path": "/predictor",
"value": "5949c69cf2fc1b1a6b19851be87d"
}
],
"created": 1530712345567,
"modified": 1530712595570,
"name": "Default Jar",
"parentId": "wrk_bafd6f5c8bcb4350b9a92f1c9f3b447e",
"_type": "cookie_jar"
},
{
"_id": "fld_37fdedb80a5f4999b2096c7311d8381d",
"created": 1530712734032,
"description": "",
"environment": {},
"metaSortKey": -1530712734032,
"modified": 1530712734032,
"name": "Annotations",
"parentId": "wrk_bafd6f5c8bcb4350b9a92f1c9f3b447e",
"_type": "request_group"
},
{
"_id": "fld_8973dd5ad55e4f688dd49317cf5734ea",
"created": 1530713003032,
"description": "",
"environment": {},
"metaSortKey": -1530713003032,
"modified": 1530713003032,
"name": "Installation",
"parentId": "wrk_bafd6f5c8bcb4350b9a92f1c9f3b447e",
"_type": "request_group"
},
{
"_id": "fld_58a8b627ebff4ad08cff5f88714731e8",
"created": 1531840399260,
"description": "",
"environment": {},
"metaSortKey": -1531840399260,
"modified": 1531840399260,
"name": "Users",
"parentId": "wrk_bafd6f5c8bcb4350b9a92f1c9f3b447e",
"_type": "request_group"
},
{
"_id": "fld_22c64e3d399141dfa0526b5ec1d54f46",
"created": 1532444167961,
"description": "",
"environment": {},
"metaSortKey": -1532444167962,
"modified": 1532444167961,
"name": "Templates",
"parentId": "wrk_bafd6f5c8bcb4350b9a92f1c9f3b447e",
"_type": "request_group"
},
{
"_id": "env_fd09c18bec1d4967bc678c9e4865e8dc",
"color": "#22f145",
"created": 1530712388258,
"data": {
"hostname": "http://localhost:8080/",
"path": "predictor/webapi/"
},
"isPrivate": false,
"metaSortKey": 1533118409161,
"modified": 1533124028483,
"name": "local",
"parentId": "env_2d9020c62895487c9474e947d0d36964",
"_type": "environment"
},
{
"_id": "env_2ce16c80e40044528194708df6d0a656",
"color": "#698fed",
"created": 1533118415705,
"data": {
"hostname": "http://35.240.117.95/",
"path": "predictor/webapi/"
},
"isPrivate": false,
"metaSortKey": 1533118415705,
"modified": 1533983273401,
"name": "docker-googlecloud",
"parentId": "env_2d9020c62895487c9474e947d0d36964",
"_type": "environment"
},
{
"_id": "env_f9a849faea80416dbd888ba54155725e",
"color": "#889ef6",
"created": 1533983214344,
"data": {
"hostname": "http://104.155.47.73:8080/",
"path": "predictor/webapi/"
},
"isPrivate": false,
"metaSortKey": 1533983214344,
"modified": 1534032324389,
"name": "docker-virtuoso",
"parentId": "env_2d9020c62895487c9474e947d0d36964",
"_type": "environment"
},
{
"_id": "req_9ccad78ca89d42479653c211cb88e401",
"authentication": {},
"body": {},
"created": 1530712744426,
"description": "Get a single annotation with all their TB, M and C attributes.\n\nIt also includes the `lock` attribute, that shows if any user is locking the edition of the *parent* mapping, the `vote` attribute, that shows which users have vote and which was their vote and the `classification_result`, that shows the output that the classification algorithm has decided.\n",
"headers": [],
"isPrivate": false,
"metaSortKey": -1533458833427.5,
"method": "GET",
"modified": 1534238885251,
"name": "Annotation",
"parameters": [],
"parentId": "fld_37fdedb80a5f4999b2096c7311d8381d",
"settingDisableRenderRequestBody": false,
"settingEncodeUrl": true,
"settingMaxTimelineDataSize": 1000,
"settingRebuildPath": true,
"settingSendCookies": true,
"settingStoreCookies": true,
"url": "{{ hostname }}{{ path }}annotations/18936",
"_type": "request"
},
{
"_id": "req_49a5f1877ddb4d1e93a327a571279aaf",
"authentication": {},
"body": {
"mimeType": "application/json",
"text": "{\n\t\"attributeA\": \"owned\",\n\t\"attributeB\": \"propietario\",\n\t\"c1\": 0.0,\n\t\"c2\": 1.0,\n\t\"c3a\": 0.0,\n\t\"c3b\": 0.0,\n\t\"classA\": \"http://dbpedia.org/ontology/Station\",\n\t\"classB\": \"http://dbpedia.org/ontology/Station\",\n\t\"domainPropA\": \"\",\n\t\"domainPropB\": \"\",\n\t\"langA\": \"en\",\n\t\"langB\": \"es\",\n\t\"m1\": 338,\n\t\"m2\": 42,\n\t\"m3\": 498,\n\t\"m4a\": 26,\n\t\"m4b\": 2,\n\t\"m5a\": 498,\n\t\"m5b\": 498,\n\t\"propA\": \"dbo:owner\",\n\t\"propB\": \"dbo:owningOrganisation\",\n\t\"rangePropA\": \"dbo:Agent\",\n\t\"rangePropB\": \"dbo:Organisation\",\n\t\"tb1\": 0,\n\t\"tb10\": 0,\n\t\"tb11\": 1,\n\t\"tb2\": 1,\n\t\"tb3\": 1,\n\t\"tb4\": 1,\n\t\"tb5\": 1,\n\t\"tb6\": 0,\n\t\"tb7\": 0,\n\t\"tb8\": 0,\n\t\"tb9\": 0,\n\t\"templateA\": \"Infobox_station\",\n\t\"templateB\": \"Ficha_de_estación\",\n\t\"id\": 15000\n}"
},
"created": 1530714997630,
"description": "With this call, you can add a single annotation, one by one, in JSON format",
"headers": [
{
"id": "pair_6e3f2a43b4b8402ca40004ba45d0ac15",
"name": "Content-Type",
"value": "application/json"
}
],
"isPrivate": false,
"metaSortKey": -1533458833415,
"method": "POST",
"modified": 1534238881552,
"name": "New annotation",
"parameters": [],
"parentId": "fld_37fdedb80a5f4999b2096c7311d8381d",
"settingDisableRenderRequestBody": false,
"settingEncodeUrl": true,
"settingMaxTimelineDataSize": 1000,
"settingRebuildPath": true,
"settingSendCookies": true,
"settingStoreCookies": true,
"url": "{{ hostname }}{{ path }}annotations",
"_type": "request"
},
{
"_id": "req_a9e26d340c7a4b08854c062dd9210e26",
"authentication": {},
"body": {},
"created": 1530721022135,
"description": "This annotation service allows to get all the annotations available on a language pair.\n\nDepending of the Accept header used, you can get a JSON response or a CSV file:\n* Accept: application/json \n* Accept: text/plain: used for CSV",
"headers": [
{
"disabled": false,
"id": "pair_3490c607e97041cf857bee58423ad4ba",
"name": "Accept",
"value": "application/json"
},
{
"disabled": true,
"id": "pair_f6cb0c862e3f4e2596523eb7ae641588",
"name": "Accept",
"value": "text/plain"
}
],
"isPrivate": false,
"metaSortKey": -1533458833440,
"method": "GET",
"modified": 1534239049080,
"name": "All annotations",
"parameters": [
{
"id": "pair_c17fe18ab04e4df5919024565d269bd4",
"name": "langa",
"value": "en"
},
{
"id": "pair_61b8a67baf854f2fa302982ef31b6cd4",
"name": "langb",
"value": "es"
}
],
"parentId": "fld_37fdedb80a5f4999b2096c7311d8381d",
"settingDisableRenderRequestBody": false,
"settingEncodeUrl": true,
"settingMaxTimelineDataSize": 1000,
"settingRebuildPath": true,
"settingSendCookies": true,
"settingStoreCookies": true,
"url": "{{ hostname }}{{ path }}annotations",
"_type": "request"
},
{
"_id": "req_89a782b281984301841396b1a1df3998",
"authentication": {},
"body": {
"mimeType": "application/json",
"text": "{\n\t\"vote\": \"CORRECT_MAPPING\",\n\t\"annotationId\": 18606,\n\t\"user\": {\n\t\t\"username\": \"default\"\n\t}\n}"
},
"created": 1531408576980,
"description": "Adds a vote done by one user to the annotation.\n\nIt will be added to a table that counts the vote that one annotation has. This vote can be readed on the \"vote\" field when calling GET /annotations/{id}",
"headers": [
{
"id": "pair_f4046348b63d4781b7f73fcda9583927",
"name": "Content-Type",
"value": "application/json"
},
{
"id": "pair_ff878e82ed3b4ec1a80611e29cf9e2d5",
"name": "Authorization",
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJEQnBlZGlhIiwiZXhwIjoxNTM1NzExNzkxLCJpYXQiOjE1MzMxMTk3OTEsImVtYWlsIjoiZGVmYXVsdEBleGFtcGxlLmNvbSIsInVzZXJuYW1lIjoiZGVmYXVsdCJ9._BBgWkVPbSnA30vUbN5uB1lfcWSunpUf7IqXNTLCq9o"
}
],
"isPrivate": false,
"metaSortKey": -1531408576980,
"method": "POST",
"modified": 1534239451360,
"name": "Post vote",
"parameters": [],
"parentId": "fld_37fdedb80a5f4999b2096c7311d8381d",
"settingDisableRenderRequestBody": false,
"settingEncodeUrl": true,
"settingMaxTimelineDataSize": 1000,
"settingRebuildPath": true,
"settingSendCookies": true,
"settingStoreCookies": true,
"url": "{{ hostname }}{{ path }}annotations/18606/vote",
"_type": "request"
},
{
"_id": "req_51b76ca6ea26441088943a29a0251a12",
"authentication": {},
"body": {},
"created": 1533458833390,
"description": "This call allows to train all the annotations that are inserted for a specific language.\n\nIt will only train the annotations on specific languages. You must provide the langa and langb parameters as query parameters.\n\nThe langa parameter is referred to the \"origin\" language on an annotation, whereas the langb parameters refers to \"current\" language\n\n\n\n",
"headers": [
{
"id": "pair_37c546ce4a334e6391cbf9a61afa63d8",
"name": "",
"value": ""
}
],
"isPrivate": false,
"metaSortKey": -1533458833390,
"method": "POST",
"modified": 1534241075118,
"name": "Classify",
"parameters": [
{
"id": "pair_37b76648bb2e4d998a4180e7e89426ae",
"name": "langa",
"value": "en"
},
{
"id": "pair_262b61b0922f44cebe496deb243d7a8d",
"name": "langb",
"value": "el"
}
],
"parentId": "fld_37fdedb80a5f4999b2096c7311d8381d",
"settingDisableRenderRequestBody": false,
"settingEncodeUrl": true,
"settingMaxTimelineDataSize": 1000,
"settingRebuildPath": true,
"settingSendCookies": true,
"settingStoreCookies": true,
"url": "{{ hostname }}{{ path }}annotations/classify",
"_type": "request"
},
{
"_id": "req_652f716ded3f49a8a8f01d5885d0f299",
"authentication": {},
"body": {
"mimeType": "application/json",
"text": "{\n\t\"locked\": true,\n\t\"dateStart\": 1533729222000,\n\t\"dateEnd\": 1533730222000,\n\t\"user\": {\n\t\t\"username\": \"default\"\n\t}\n}"
},
"created": 1533728832429,
"description": "A mapper user can lock an annotation to signal other users that the mapping is being edited and avoid concurrency issues.",
"headers": [
{
"id": "pair_766f4a0a1816498aa6d26018ef0a9cb0",
"name": "Content-Type",
"value": "application/json"
},
{
"id": "pair_74f1b32296414be7a0c387925ea914d6",
"name": "Authorization",
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJEQnBlZGlhIiwiZXhwIjoxNTM1NzExNzkxLCJpYXQiOjE1MzMxMTk3OTEsImVtYWlsIjoiZGVmYXVsdEBleGFtcGxlLmNvbSIsInVzZXJuYW1lIjoiZGVmYXVsdCJ9._BBgWkVPbSnA30vUbN5uB1lfcWSunpUf7IqXNTLCq9o"
}
],
"isPrivate": false,
"metaSortKey": -1530716503756.25,
"method": "POST",
"modified": 1534239566660,
"name": "Lock annotation",
"parameters": [],
"parentId": "fld_37fdedb80a5f4999b2096c7311d8381d",
"settingDisableRenderRequestBody": false,
"settingEncodeUrl": true,
"settingMaxTimelineDataSize": 1000,
"settingRebuildPath": true,
"settingSendCookies": true,
"settingStoreCookies": true,
"url": "{{ hostname }}{{ path }}annotations/18936/lock",
"_type": "request"
},
{
"_id": "req_87c92ac0586a403b8e9e5a073aea4bcb",
"authentication": {},
"body": {},
"created": 1533729290366,
"description": "When the user has done the edition of the mapping, can release the lock.",
"headers": [
{
"id": "pair_766f4a0a1816498aa6d26018ef0a9cb0",
"name": "Content-Type",
"value": "application/json"
},
{
"id": "pair_74f1b32296414be7a0c387925ea914d6",
"name": "Authorization",
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJEQnBlZGlhIiwiZXhwIjoxNTM1NzExNzkxLCJpYXQiOjE1MzMxMTk3OTEsImVtYWlsIjoiZGVmYXVsdEBleGFtcGxlLmNvbSIsInVzZXJuYW1lIjoiZGVmYXVsdCJ9._BBgWkVPbSnA30vUbN5uB1lfcWSunpUf7IqXNTLCq9o"
}
],
"isPrivate": false,
"metaSortKey": -1530715750693.125,
"method": "DELETE",
"modified": 1534239812839,
"name": "Delete lock",
"parameters": [],
"parentId": "fld_37fdedb80a5f4999b2096c7311d8381d",
"settingDisableRenderRequestBody": false,
"settingEncodeUrl": true,
"settingMaxTimelineDataSize": 1000,
"settingRebuildPath": true,
"settingSendCookies": true,
"settingStoreCookies": true,
"url": "{{ hostname }}{{ path }}annotations/18618/lock",
"_type": "request"
},
{
"_id": "req_9dc8b4ea36074277acdf86c86a7231e0",
"authentication": {},
"body": {},
"created": 1533811414845,
"description": "Shows to the user a list of triples that are related with the annotation.\n\nUsually are entities that comes from the template mapping of the annotation and has any property that can be mapped from the attribute specified.",
"headers": [],
"isPrivate": false,
"metaSortKey": -1533458833402.5,
"method": "GET",
"modified": 1534239125942,
"name": "Annotation helpers",
"parameters": [],
"parentId": "fld_37fdedb80a5f4999b2096c7311d8381d",
"settingDisableRenderRequestBody": false,
"settingEncodeUrl": true,
"settingMaxTimelineDataSize": 1000,
"settingRebuildPath": true,
"settingSendCookies": true,
"settingStoreCookies": true,
"url": "{{ hostname }}{{ path }}annotations/26/helpers",
"_type": "request"
},
{
"_id": "req_470f978760d14513861f2816176dfd73",
"authentication": {},
"body": {},
"created": 1530713019112,
"description": "After installing the database, everything will be empty. This call will add samle annotations that includes files from four language pairs:\n\n* English - Spanish\n* English - Greek\n* English - Dutch\n* Spanish - German",
"headers": [],
"isPrivate": false,
"metaSortKey": -1530713019112,
"method": "POST",
"modified": 1534239894233,
"name": "Add from csv",
"parameters": [],
"parentId": "fld_8973dd5ad55e4f688dd49317cf5734ea",
"settingDisableRenderRequestBody": false,
"settingEncodeUrl": true,
"settingMaxTimelineDataSize": 1000,
"settingRebuildPath": true,
"settingSendCookies": true,
"settingStoreCookies": true,
"url": "{{ hostname }}{{ path }}installation/addAllCSV",
"_type": "request"
},
{
"_id": "req_4ca1cc2981ec467894747aeba704f4fa",
"authentication": {},
"body": {},
"created": 1531234752479,
"description": "After deploying the web api of glassfish, it is needed to create the corresponding tables on MySQL database. This call should be used once, and will create tables on the database and will also insert basic data, as constants or sample users",
"headers": [
{
"id": "pair_0cd104edbd9a4546a91714b0a0a30085",
"name": "Accept",
"value": "application/json"
}
],
"isPrivate": false,
"metaSortKey": -1531234752479,
"method": "POST",
"modified": 1534239878957,
"name": "Create tables",
"parameters": [],
"parentId": "fld_8973dd5ad55e4f688dd49317cf5734ea",
"settingDisableRenderRequestBody": false,
"settingEncodeUrl": true,
"settingMaxTimelineDataSize": 1000,
"settingRebuildPath": true,
"settingSendCookies": true,
"settingStoreCookies": true,
"url": "{{ hostname }}{{ path }}installation/createtables",
"_type": "request"
},
{
"_id": "req_92fb4947aaec4a2aa23338e98ac2fec8",
"authentication": {},
"body": {
"mimeType": "multipart/form-data",
"params": [
{
"fileName": "/home/vfrico/IdeaProjects/predictor/src/main/resources/csv/anotados-en-el-iri.csv",
"id": "pair_eca1b464770841159480b5c7bc4d481c",
"name": "file",
"type": "file",
"value": ""
}
]
},
"created": 1533913693452,
"description": "To upload a file to the backend, is mandatory to use the Content-type: multipart/form-encoded Mimetype.\n\nThe file has to be send with the \"file\" attribute. Otherwise, the API won't be able to load the CSV file",
"headers": [
{
"id": "pair_e45b3fe3048b4714a64abdca6d90896b",
"name": "Content-Type",
"value": "multipart/form-data"
}
],
"isPrivate": false,
"metaSortKey": -1530712686494,
"method": "POST",
"modified": 1534240578044,
"name": "Upload CSV file",
"parameters": [
{
"id": "pair_da0149df337a4a3ab4bc17ad5329a2e4",
"name": "langa",
"value": "en"
},
{
"id": "pair_b695389794c0422aad4a0c78c3d5cca6",
"name": "langb",
"value": "el"
}
],
"parentId": "fld_8973dd5ad55e4f688dd49317cf5734ea",
"settingDisableRenderRequestBody": false,
"settingEncodeUrl": true,
"settingMaxTimelineDataSize": 1000,
"settingRebuildPath": true,
"settingSendCookies": true,
"settingStoreCookies": true,
"url": "{{ hostname }}{{ path }}installation/fromCSV",
"_type": "request"
},
{
"_id": "req_cc11a702ae104c418edbd618e2d30994",
"authentication": {},
"body": {
"mimeType": "application/json",
"text": "{\n\t\"username\": \"test\",\n\t\"email\": \"vfrico@gmail.com\",\n\t\"password_md5\": \"237289476238\",\n\t\"role\": \"ADMIN\"\n}"
},
"created": 1531840406666,
"description": "This call allows an admin user to add a user into the system.\n\nOnly username, email and password is really required. If no role field is provided, the NO_ROLE will be assigned.",
"headers": [
{
"id": "pair_28b14f351c4e48638196df2967b1d793",
"name": "Content-Type",
"value": "application/json"
},
{
"id": "pair_48d9455754214015ac923749ea7f99b3",
"name": "Accept",
"value": "application/json"
}
],
"isPrivate": false,
"metaSortKey": -1532102241458,
"method": "POST",
"modified": 1534242064861,
"name": "Create user",
"parameters": [],
"parentId": "fld_58a8b627ebff4ad08cff5f88714731e8",
"settingDisableRenderRequestBody": false,
"settingEncodeUrl": true,
"settingMaxTimelineDataSize": 1000,
"settingRebuildPath": true,
"settingSendCookies": true,
"settingStoreCookies": true,
"url": "{{ hostname }}{{ path }}users/",
"_type": "request"
},
{
"_id": "req_e2e64263ebcf4318add90756f182f31d",
"authentication": {},
"body": {},
"created": 1531924206962,
"description": "This call, as expected, deletes the user defined as path param.\n\nThe body MUST be empty, if not, the request won't be processed correctly\n",
"headers": [
{
"disabled": true,
"id": "pair_28b14f351c4e48638196df2967b1d793",
"name": "Content-Type",
"value": "application/json"
},
{
"id": "pair_48d9455754214015ac923749ea7f99b3",
"name": "Accept",
"value": "application/json"
}
],
"isPrivate": false,
"metaSortKey": -1531624491823,
"method": "DELETE",
"modified": 1534244492121,
"name": "Delete user",
"parameters": [],
"parentId": "fld_58a8b627ebff4ad08cff5f88714731e8",
"settingDisableRenderRequestBody": false,
"settingEncodeUrl": true,
"settingMaxTimelineDataSize": 1000,
"settingRebuildPath": true,
"settingSendCookies": true,
"settingStoreCookies": true,
"url": "{{ hostname }}{{ path }}users/victor",
"_type": "request"
},
{
"_id": "req_431003cf19d040ad9ba5950289a01375",
"authentication": {},
"body": {
"mimeType": "application/json",
"text": "{\n\t\"password_md5\": \"default\",\n\t\"username\": \"default\"\n}"
},
"created": 1532102241407,
"description": "Adds a new authentication token in the database or returns the same if the user was already logged in",
"headers": [
{
"id": "pair_f6b5e9348f0c447e89e64b839c513596",
"name": "Content-Type",
"value": "application/json"
}
],
"isPrivate": false,
"metaSortKey": -1532102241408,
"method": "POST",
"modified": 1534243898972,
"name": "Login",
"parameters": [],
"parentId": "fld_58a8b627ebff4ad08cff5f88714731e8",
"settingDisableRenderRequestBody": false,
"settingEncodeUrl": true,
"settingMaxTimelineDataSize": 1000,
"settingRebuildPath": true,
"settingSendCookies": true,
"settingStoreCookies": true,
"url": "{{ hostname }}{{ path }}users/default/login",
"_type": "request"
},
{
"_id": "req_b0c5d983e04347929836409c5f6aae97",
"authentication": {},
"body": {
"mimeType": "application/json",
"text": "{\n\t\"username\": \"victor\"\n}"
},
"created": 1532103376439,
"description": "Deletes the auth token on database",
"headers": [
{
"id": "pair_f6b5e9348f0c447e89e64b839c513596",
"name": "Content-Type",
"value": "application/json"
},
{
"id": "pair_b188c07251ad4958b260a3932917007d",
"name": "Authorization",
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJEQnBlZGlhIiwiZXhwIjoxNTM1NTcxNjY4LCJpYXQiOjE1MzI5Nzk2NjgsImVtYWlsIjoidmZyaWNvQGdtYWlsLmNvbSIsInVzZXJuYW1lIjoidmljdG9vciJ9.tKuGSKpwVwyIsXMZ1UWMDLKIpi2oRvSZorVTgef22GE"
}
],
"isPrivate": false,
"metaSortKey": -1532053147393.875,
"method": "POST",
"modified": 1534244083092,
"name": "Logout",
"parameters": [],
"parentId": "fld_58a8b627ebff4ad08cff5f88714731e8",
"settingDisableRenderRequestBody": false,
"settingEncodeUrl": true,
"settingMaxTimelineDataSize": 1000,
"settingRebuildPath": true,
"settingSendCookies": true,
"settingStoreCookies": true,
"url": "{{ hostname }}{{ path }}users/victoor/logout",
"_type": "request"
},
{
"_id": "req_81923e58364a44c68105d5e5ceda1e49",
"authentication": {},
"body": {},
"created": 1532979361488,
"description": "Returns the user object that is stored on the database",
"headers": [
{
"id": "pair_f6b5e9348f0c447e89e64b839c513596",
"name": "Accept",
"value": "application/json"
}
],
"isPrivate": false,
"metaSortKey": -1532102241433,
"method": "GET",
"modified": 1534243823906,
"name": "User info",
"parameters": [],
"parentId": "fld_58a8b627ebff4ad08cff5f88714731e8",
"settingDisableRenderRequestBody": false,
"settingEncodeUrl": true,
"settingMaxTimelineDataSize": 1000,
"settingRebuildPath": true,
"settingSendCookies": true,
"settingStoreCookies": true,
"url": "{{ hostname }}{{ path }}users/default",
"_type": "request"
},
{
"_id": "req_1acd2b96d7794ddcbba7ec96e36c288e",
"authentication": {},
"body": {
"mimeType": "application/json",
"text": "{\n\t\"role\": \"ADMIN\"\n}"
},
"created": 1533818239245,
"description": "This call updates either user's password or role. No other attribute will be used to update the user",
"headers": [
{
"id": "pair_f6b5e9348f0c447e89e64b839c513596",
"name": "Accept",
"value": "application/json"
},
{
"id": "pair_1b6e7f1daa994a7bb876257119f68bda",
"name": "Content-Type",
"value": "application/json"
}
],
"isPrivate": false,
"metaSortKey": -1532004053379.75,
"method": "PUT",
"modified": 1534244184229,
"name": "Edit user info",
"parameters": [],
"parentId": "fld_58a8b627ebff4ad08cff5f88714731e8",
"settingDisableRenderRequestBody": false,
"settingEncodeUrl": true,
"settingMaxTimelineDataSize": 1000,
"settingRebuildPath": true,
"settingSendCookies": true,
"settingStoreCookies": true,
"url": "{{ hostname }}{{ path }}users/sampleAdmin",
"_type": "request"
},
{
"_id": "req_6cba1f223b8b405f80407efeed16d8e9",
"authentication": {},
"body": {},
"created": 1532444178125,
"description": "Obtains a list of templates and statistics by giving a language pair as query params",
"headers": [
{
"id": "pair_5a535a3131c946d78c49941f60b76192",
"name": "Accept",
"value": "application/json"
}
],
"isPrivate": false,
"metaSortKey": -1532444178125,
"method": "GET",
"modified": 1534241080122,
"name": "All templates by language pair",
"parameters": [],
"parentId": "fld_22c64e3d399141dfa0526b5ec1d54f46",
"settingDisableRenderRequestBody": false,
"settingEncodeUrl": true,
"settingMaxTimelineDataSize": 1000,
"settingRebuildPath": true,
"settingSendCookies": true,
"settingStoreCookies": true,
"url": "{{ hostname }}{{ path }}templates?langB=es&langA=en",
"_type": "request"
},
{
"_id": "req_caf5a57c3e244c729074aba92b1e4663",
"authentication": {},
"body": {},
"created": 1532446988273,
"description": "Returns the annotations associated to a template and some statistics about them:\n* Number of annotations\n* Number of correct/wrong annotations\n* Number of usages on Wikipedia of the template (requires SPARQL endpoint working properly)\n",
"headers": [],
"isPrivate": false,
"metaSortKey": -1532273209766.5,
"method": "GET",
"modified": 1534241174324,
"name": "Template info",
"parameters": [],
"parentId": "fld_22c64e3d399141dfa0526b5ec1d54f46",
"settingDisableRenderRequestBody": false,
"settingEncodeUrl": true,
"settingMaxTimelineDataSize": 1000,
"settingRebuildPath": true,
"settingSendCookies": true,
"settingStoreCookies": true,
"url": "{{ hostname }}{{ path }}templates/es/Ficha_de_entidad_subnacional",
"_type": "request"
},
{
"_id": "req_4632d9af665b47d595cbc3e89ce1ec4e",
"authentication": {},
"body": {},
"created": 1534095417388,
"description": "Obtain a list of language pairs available on the system",
"headers": [],
"isPrivate": false,
"metaSortKey": -1534095417388,
"method": "GET",
"modified": 1534241077835,
"name": "Lang pairs",
"parameters": [],
"parentId": "fld_22c64e3d399141dfa0526b5ec1d54f46",
"settingDisableRenderRequestBody": false,
"settingEncodeUrl": true,
"settingMaxTimelineDataSize": 1000,
"settingRebuildPath": true,
"settingSendCookies": true,
"settingStoreCookies": true,
"url": "{{ hostname }}{{ path }}templates/langPairs",
"_type": "request"
}
]
}