-
Notifications
You must be signed in to change notification settings - Fork 20
/
swagger.yaml
3236 lines (3234 loc) · 102 KB
/
swagger.yaml
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
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
swagger: '2.0'
schemes:
- https
securityDefinitions:
Bearer:
type: apiKey
name: Authorization
in: header
info:
title: Idra - Open Data Federation Platform
version: '1.0'
description: 'Idra is a web application able to federate existing Open Data Management Systems (ODMS) based on different technologies; in this way Idra provides a unique access point to search and discover open data sets coming from the different federated ODMS. Idra uniforms representation of collected Open Data Set, thanks to the adoption of international standards (DCAT-AP) and provides a set of APIs to develop third party applications. Idra supports natively ODMS based on CKAN, DKAN and Socrata and provides a set of APIs to federate ODMSs not natively supported; these ODMSs have to implement and expose them. In addition, it is possible to federate a generic Web Portal, either by using the Web Scraping functionality or by uploading a dump of the datasets in DCAT-AP format. Moreover, Idra provides a SPARQL endpoint in order to perform queries on 5 stars RDF linked open data collected from federated ODMSs. Here the technical specification of Idra APIs is provided. These APIs are grouped into **Administration APIs**, **End User APIs** and **Federation APIs**.'
tags:
- name: Administration Api
description: 'Technical specification of Idra Administration APIs. These APIs provide functionalities for managing the federation performing CRUD operations on catalogues, managing configurations and logs.'
- name: End User Api
description: 'Technical specification of Idra End User APIs. These APIs provide functionalities for searching among federated datasets metadata, execute sparql queries and create Datalets from distribution.'
- name: Federation Api
description: 'Technical specification of the APIs that an ODMS catalogue should implement, in order to be federated by the Idra.'
host: idra-sandbox.eng.it
basePath: /Idra/
paths:
/api/v1/administration/version:
x-summary: Platform version
x-description: Provides information about Idra platform version and release timestamp.
get:
operationId: getVersion
tags:
- Administration Api
produces:
- application/json
responses:
'200':
description: Successful response.
schema:
type: object
properties:
idra_version:
description: >-
The current deployed version of the platform
type: string
default: 1.0
idra_release_timestamp:
description: >-
This field indicates when the
platform was released.
type: string
format: date-time
/api/v1/administration/catalogues:
x-summary: Catalogues Resources
x-description: ''
get:
description: Returns all the federated ODMS catalogues details.
operationId: getODMSCatalogues
tags:
- Administration Api
produces:
- application/json
security:
- Bearer: []
parameters:
- name: withImage
in: query
description: If true, returns the list of Catalogues with associated images. If false, returns the list of Catalogues without images.
type: boolean
default: false
responses:
'200':
description: It returns the list of federated ODMS catalogues.
schema:
type: array
items:
$ref: '#/definitions/ODMSCatalogue'
'500':
description: >-
If an error occurs during the execution of the request, HTTP 500
Internal Server Error status code is returned.
schema:
$ref: '#/definitions/ErrorResponse'
post:
description: >-
Adds a new ODMS catalogue to the federation. When adding a new catalogue, the
nodeID field is ignored because it will be generated.
operationId: addODMSCatalogue
tags:
- Administration Api
consumes:
- application/json
security:
- Bearer: []
parameters:
- in: body
name: body
required: true
schema:
$ref: '#/definitions/ODMSCatalogue'
responses:
'200':
description: If ODMS catalogue is successfully added.
'400':
description: >-
If the request is not a valid input, HTTP 400 Bad Request status
code is returned.
schema:
$ref: '#/definitions/ErrorResponse'
'401':
description: >-
If logged user is not the administrator or the user is not logged,
HTTP 401 Unauthorized status code is returned.
'500':
description: >-
If an error occurs during the execution of the request, HTTP 500
Internal Server Error status code is returned.
schema:
$ref: '#/definitions/ErrorResponse'
/api/v1/administration/catalogues/{nodeId}:
x-summary: Single Catalogue APIs
get:
description: Returns a specific federated ODMS catalogue by its nodeId.
operationId: getODMSCatalogue
tags:
- Administration Api
produces:
- application/json
security:
- Bearer: []
parameters:
- in: path
name: nodeId
description: The unique identifier of the ODMS catalogue.
required: true
type: string
- name: withImage
in: query
description: If true, returns the Catalogues with the associated image. If false, returns the Catalogues without the associated image.
type: boolean
default: false
responses:
'200':
description: It returns the specific federated ODMS catalogue
schema:
$ref: '#/definitions/ODMSCatalogue'
'404':
description: >-
If the ODMS catalogue does not exist, HTTP Status Code 404 Not Found is
returned.
schema:
$ref: '#/definitions/ErrorResponse'
'500':
description: >-
If an error occurs during the execution of the request, HTTP Status
Code 500 Internal Server Error is returned.
schema:
$ref: '#/definitions/ErrorResponse'
put:
description: Updates a specific federated ODMS catalogue by its nodeId.
operationId: updateODMSCatalogue
tags:
- Administration Api
consumes:
- application/json
security:
- Bearer: []
parameters:
- in: path
name: nodeId
description: The unique identifier of the ODMS catalogue.
required: true
type: string
- in: body
name: body
required: true
schema:
$ref: '#/definitions/ODMSCatalogue'
responses:
'200':
description: If ODMS catalogue is successfully updated
'400':
description: >-
If the request is not a valid input, HTTP 400 Bad Request status
code is returned.
schema:
$ref: '#/definitions/ErrorResponse'
'401':
description: >-
If the logged user is the administrator or the user is not logged,
HTTP Status Code 401 Unauthorized is returned.
'404':
description: >-
If the ODMS catalogue does not exist, HTTP Status Code 404 Not Found is
returned.
schema:
$ref: '#/definitions/ErrorResponse'
'500':
description: >-
If an error occurs during the execution of the request, HTTP Status
Code 500 Internal Server Error is returned.
schema:
$ref: '#/definitions/ErrorResponse'
delete:
description: Deletes a specific federated ODMS catalogue by its nodeId.
operationId: deleteODMSCatalogue
tags:
- Administration Api
produces:
- application/json
security:
- Bearer: []
parameters:
- in: path
name: nodeId
description: The unique identifier of the ODMS catalogue.
required: true
type: string
responses:
'200':
description: If ODMS catalogue is successfully deleted.
'401':
description: >-
If the logged user is the administrator or the user is not logged,
HTTP Status Code 401 Unauthorized is returned.
'404':
description: >-
If the ODMS catalogue does not exist, HTTP Status Code 404 Not Found is
returned.
schema:
$ref: '#/definitions/ErrorResponse'
'500':
description: >-
If an error occurs during the execution of the request, HTTP Status
Code 500 Internal Server Error is returned.
schema:
$ref: '#/definitions/ErrorResponse'
/api/v1/administration/catalogues/{nodeId}/activate:
x-summary: Activate Catalogue
x-description: This API is in charge of activating the Catalogue identified by the **nodeId** parameter
put:
operationId: activateODMSCatalogue
tags:
- Administration Api
consumes:
- application/json
security:
- Bearer: []
parameters:
- in: path
name: nodeId
description: The unique identifier of the ODMS catalogue.
required: true
type: string
responses:
'200':
description: If ODMS catalogue is successfully activated
'400':
description: >-
If the request is not a valid input, HTTP 400 Bad Request status
code is returned.
schema:
$ref: '#/definitions/ErrorResponse'
'401':
description: >-
If the logged user is the administrator or the user is not logged,
HTTP Status Code 401 Unauthorized is returned.
'404':
description: >-
If the ODMS catalogue does not exist, HTTP Status Code 404 Not Found is
returned.
schema:
$ref: '#/definitions/ErrorResponse'
'500':
description: >-
If an error occurs during the execution of the request, HTTP Status
Code 500 Internal Server Error is returned.
schema:
$ref: '#/definitions/ErrorResponse'
/api/v1/administration/catalogues/{nodeId}/deactivate:
x-summary: Deactivate Catalogue
x-description: This API is in charge of deactivating the Catalogue identified by the **nodeId** parameter. The query parameter **keepDatasets** if is false all of the datasets associated with the Catalogue will be deleted, otherwise if true the datasets will not be deleted.
put:
operationId: deactivateODMSCatalogue
tags:
- Administration Api
consumes:
- application/json
security:
- Bearer: []
parameters:
- in: path
name: nodeId
description: The unique identifier of the ODMS catalogue.
required: true
type: string
- name: keepDatasets
in: query
type: boolean
default: false
responses:
'200':
description: If ODMS catalogue is successfully deactivated
'400':
description: >-
If the request is not a valid input, HTTP 400 Bad Request status
code is returned.
schema:
$ref: '#/definitions/ErrorResponse'
'401':
description: >-
If the logged user is the administrator or the user is not logged,
HTTP Status Code 401 Unauthorized is returned.
'404':
description: >-
If the ODMS catalogue does not exist, HTTP Status Code 404 Not Found is
returned.
schema:
$ref: '#/definitions/ErrorResponse'
'500':
description: >-
If an error occurs during the execution of the request, HTTP Status
Code 500 Internal Server Error is returned.
schema:
$ref: '#/definitions/ErrorResponse'
/api/v1/administration/catalogues/{nodeId}/synchronize:
x-summary: Synchronize Catalogue
x-description: This API is in charge of forcing the synchronization of the Catalogue identified by the **nodeId** parameter.
post:
operationId: startODMSCatalogueSynch
tags:
- Administration Api
consumes:
- application/json
security:
- Bearer: []
parameters:
- in: path
name: nodeId
description: The unique identifier of the ODMS catalogue.
required: true
type: string
responses:
'200':
description: If the synchronization of the Catalogue has started
'400':
description: >-
If the request is not a valid input, HTTP 400 Bad Request status
code is returned.
schema:
$ref: '#/definitions/ErrorResponse'
'401':
description: >-
If the logged user is the administrator or the user is not logged,
HTTP Status Code 401 Unauthorized is returned.
'404':
description: >-
If the ODMS catalogue does not exist, HTTP Status Code 404 Not Found is
returned.
schema:
$ref: '#/definitions/ErrorResponse'
'500':
description: >-
If an error occurs during the execution of the request, HTTP Status
Code 500 Internal Server Error is returned.
schema:
$ref: '#/definitions/ErrorResponse'
/api/v1/administration/catalogues/{nodeId}/messages:
x-summary: Catalogue Messages
get:
description: Returns all the messages of a specific federated ODMS catalogue.
operationId: getODMSCatalogueMessages
tags:
- Administration Api
produces:
- application/json
security:
- Bearer: []
parameters:
- in: path
name: nodeId
description: The unique identifier of the ODMS catalogue.
required: true
type: string
responses:
'200':
description: It returns the specific federated ODMS catalogue messages
schema:
type: array
items:
$ref: '#/definitions/ODMSCatalogueMessage'
'401':
description: >-
If the logged user is the administrator or the user is not logged,
HTTP Status Code 401 Unauthorized is returned.
'404':
description: >-
If the ODMS catalogue does not exist, HTTP Status Code 404 Not Found is
returned.
schema:
$ref: '#/definitions/ErrorResponse'
'500':
description: >-
If an error occurs during the execution of the request, HTTP Status
Code 500 Internal Server Error is returned.
schema:
$ref: '#/definitions/ErrorResponse'
delete:
description: Deletes all the messages of a specific federated ODMS catalogue.
operationId: deleteODMSCatalogueMessages
tags:
- Administration Api
produces:
- application/json
security:
- Bearer: []
parameters:
- in: path
name: nodeId
description: The unique identifier of the ODMS catalogue.
required: true
type: string
responses:
'200':
description: If ODMS catalogue messages are successfully deleted.
'401':
description: >-
If the logged user is the administrator or the user is not logged,
HTTP Status Code 401 Unauthorized is returned.
'404':
description: >-
If the ODMS catalogue does not exist, HTTP Status Code 404 Not Found is
returned.
schema:
$ref: '#/definitions/ErrorResponse'
'500':
description: >-
If an error occurs during the execution of the request, HTTP Status
Code 500 Internal Server Error is returned.
schema:
$ref: '#/definitions/ErrorResponse'
/api/v1/administration/catalogues/{nodeId}/messages/{messageId}:
x-summary: Catalogue Single Message
get:
description: 'Returns a specific message of a federated ODMS catalogue, by its messageId.'
operationId: getODMSCatalogueMessage
tags:
- Administration Api
produces:
- application/json
security:
- Bearer: []
parameters:
- in: path
name: nodeId
description: The unique identifier of the ODMS catalogue.
required: true
type: string
- in: path
name: messageId
description: The unique identifier of the ODMS catalogue message.
required: true
type: string
responses:
'200':
description: It returns the message of the specific ODMS catalogue.
schema:
$ref: '#/definitions/ODMSCatalogueMessage'
'401':
description: >-
If the logged user is the administrator or the user is not logged,
HTTP Status Code 401 Unauthorized is returned.
'404':
description: >-
If the ODMS catalogue does not exist, HTTP Status Code 404 Not Found is
returned.
schema:
$ref: '#/definitions/ErrorResponse'
'500':
description: >-
If an error occurs during the execution of the request, HTTP Status
Code 500 Internal Server Error is returned.
schema:
$ref: '#/definitions/ErrorResponse'
delete:
description: 'Deletes a specific message of a federated ODMS catalogue, by its messageId.'
operationId: deleteODMSCatalogueMessage
tags:
- Administration Api
produces:
- application/json
security:
- Bearer: []
parameters:
- in: path
name: nodeId
description: The unique identifier of the ODMS catalogue.
required: true
type: string
- in: path
name: messageId
description: The unique identifier of the ODMS catalogue message.
required: true
type: string
responses:
'200':
description: If ODMS catalogue message is successfully deleted.
'400':
description: >-
If the request is not a valid input, HTTP 400 Bad Request status
code is returned.
schema:
$ref: '#/definitions/ErrorResponse'
'401':
description: >-
If the logged user is the administrator or the user is not logged,
HTTP Status Code 401 Unauthorized is returned.
'404':
description: >-
If the ODMS catalogue does not exist, HTTP Status Code 404 Not Found is
returned.
schema:
$ref: '#/definitions/ErrorResponse'
'500':
description: >-
If an error occurs during the execution of the request, HTTP Status
Code 500 Internal Server Error is returned.
schema:
$ref: '#/definitions/ErrorResponse'
/api/v1/administration/configuration:
x-summary: Configuration Management
get:
description: Returns the configuration set of Open Data Federation.
operationId: getSettings
tags:
- Administration Api
produces:
- application/json
security:
- Bearer: []
responses:
'200':
description: If configuration of Open Data Federation is successfully saved.
schema:
$ref: '#/definitions/Configuration'
'401':
description: >-
If logged user is not the administrator or the user is not logged,
HTTP 401 Unauthorized status code is returned.
schema:
$ref: '#/definitions/ErrorResponse'
'500':
description: >-
If an error occurs during the execution of the request, HTTP 500
Internal Server Error status code is returned.
schema:
$ref: '#/definitions/ErrorResponse'
post:
description: It sets up the configuration of Open Data Federation.
operationId: setSettings
tags:
- Administration Api
consumes:
- application/json
security:
- Bearer: []
parameters:
- in: body
name: body
required: true
schema:
$ref: '#/definitions/Configuration'
responses:
'200':
description: If configuration of Open Data Federation is successfully saved.
'400':
description: >-
If the request is not a valid input, HTTP 400 Bad Request status
code is returned.
schema:
$ref: '#/definitions/ErrorResponse'
'401':
description: >-
If logged user is not the administrator or the user is not logged,
HTTP 401 Unauthorized status code is returned.
'500':
description: >-
If an error occurs during the execution of the request, HTTP 500
Internal Server Error status code is returned.
schema:
$ref: '#/definitions/ErrorResponse'
/api/v1/administration/prefixes:
x-summary: RDF's Prefixes Management
post:
description: Adds a new RDF prefix.
operationId: addPrefix
tags:
- Administration Api
consumes:
- application/json
security:
- Bearer: []
parameters:
- in: body
name: request
required: true
schema:
$ref: '#/definitions/RdfPrefix'
responses:
'200':
description: If RDF prefix is successfully created.
'400':
description: >-
If the request is not a valid input, HTTP 400 Bad Request status
code is returned.
schema:
$ref: '#/definitions/ErrorResponse'
'401':
description: >-
If the logged user is the administrator or the user is not logged,
HTTP Status Code 401 Unauthorized is returned.
'500':
description: >-
If an error occurs during the execution of the request, HTTP Status
Code 500 Internal Server Error is returned.
schema:
$ref: '#/definitions/ErrorResponse'
get:
description: Returns all the RDF prefixes
operationId: getPrefixes
tags:
- Administration Api
produces:
- application/json
responses:
'200':
description: It returns the list of RDF prefixes
schema:
type: array
items:
$ref: '#/definitions/RdfPrefix'
'500':
description: >-
If an error occurs during the execution of the request, HTTP 500
Internal Server Error status code is returned.
schema:
$ref: '#/definitions/ErrorResponse'
/api/v1/administration/prefixes/{prefixId}:
x-summary: Single Prefix Management
get:
description: Returns a specific RDF prefix.
operationId: getPrefix
tags:
- Administration Api
produces:
- application/json
security:
- Bearer: []
parameters:
- in: path
name: prefixId
description: The unique identifier of the RDF prefix.
required: true
type: string
responses:
'200':
description: The specific RDF prefix
schema:
$ref: '#/definitions/RdfPrefix'
'401':
description: >-
If the logged user is the administrator or the user is not logged,
HTTP Status Code 401 Unauthorized is returned.
'404':
description: >-
If the RDF prefix does not exist, HTTP Status Code 404 Not Found is
returned.
schema:
$ref: '#/definitions/ErrorResponse'
'500':
description: >-
If an error occurs during the execution of the request, HTTP 500
Internal Server Error status code is returned.
schema:
$ref: '#/definitions/ErrorResponse'
delete:
description: Deletes a specific RDF prefix.
operationId: deletePrefix
tags:
- Administration Api
produces:
- application/json
security:
- Bearer: []
parameters:
- in: path
name: prefixId
description: The unique identifier of the RDF prefix.
required: true
type: string
responses:
'200':
description: If RDF prefix is successfully deleted.
'401':
description: >-
If the logged user is the administrator or the user is not logged,
HTTP Status Code 401 Unauthorized is returned.
'404':
description: >-
If the RDF prefix does not exist, HTTP Status Code 404 Not Found is
returned.
schema:
$ref: '#/definitions/ErrorResponse'
'500':
description: >-
If an error occurs during the execution of the request, HTTP Status
Code 500 Internal Server Error is returned.
schema:
$ref: '#/definitions/ErrorResponse'
put:
description: Updates a specific RDF prefix.
operationId: updatePrefix
tags:
- Administration Api
consumes:
- application/json
security:
- Bearer: []
parameters:
- in: body
name: request
required: true
schema:
$ref: '#/definitions/RdfPrefix'
- in: path
name: prefixId
description: The unique identifier of the RDF prefix.
required: true
type: string
responses:
'200':
description: If RDF prefix is successfully updated.
'400':
description: >-
If the request is not a valid input, HTTP 400 Bad Request status
code is returned.
schema:
$ref: '#/definitions/ErrorResponse'
'401':
description: >-
If the logged user is the administrator or the user is not logged,
HTTP Status Code 401 Unauthorized is returned.
'404':
description: >-
If the RDF prefix does not exist, HTTP Status Code 404 Not Found is
returned.
schema:
$ref: '#/definitions/ErrorResponse'
'500':
description: >-
If an error occurs during the execution of the request, HTTP Status
Code 500 Internal Server Error is returned.
schema:
$ref: '#/definitions/ErrorResponse'
/api/v1/administration/login:
x-summary: Login
x-description: Performs the user login against the input credentials or through oauth2 authorization flow
post:
operationId: loginPost
tags:
- Administration Api
consumes:
- application/json
parameters:
- in: body
name: request
required: true
description: >-
Only 'username' and 'password' fields should be provided, additional
User fields will be ignored.
schema:
$ref: '#/definitions/User'
responses:
'200':
description: 'If login succeded, the access token is returned.'
schema:
type: string
'400':
description: >-
If the request is not a valid input, HTTP 400 Bad Request status
code is returned.
schema:
$ref: '#/definitions/ErrorResponse'
'500':
description: >-
If an error occurs during the execution of the request, HTTP Status
Code 500 Internal Server Error is returned.
schema:
$ref: '#/definitions/ErrorResponse'
/api/v1/administration/logout:
x-summary: Logout
x-description: Performs the user logout
post:
operationId: logout
tags:
- Administration Api
consumes:
- application/json
security:
- Bearer: []
parameters:
- in: body
name: request
required: true
description: >-
Only 'username'field should be provided, additional User fields will
be ignored.
schema:
$ref: '#/definitions/User'
responses:
'200':
description: If logout succeded.
'400':
description: >-
If the request is not a valid input, HTTP 400 Bad Request status
code is returned.
schema:
$ref: '#/definitions/ErrorResponse'
'401':
description: >-
If the logged user is the administrator or the user is not logged,
HTTP Status Code 401 Unauthorized is returned.
'500':
description: >-
If an error occurs during the execution of the request, HTTP Status
Code 500 Internal Server Error is returned.
schema:
$ref: '#/definitions/ErrorResponse'
/api/v1/administration/updatePassword:
x-summary: Password Update
x-description: Updates password of a specific user
put:
operationId: updatePassword
tags:
- Administration Api
consumes:
- application/json
security:
- Bearer: []
parameters:
- in: body
name: request
required: true
description: >-
Only 'password' field should be provided, additional User fields
will be ignored.
schema:
$ref: '#/definitions/User'
responses:
'200':
description: If password update succeded.
'400':
description: >-
If the request is not a valid input, HTTP 400 Bad Request status
code is returned.
schema:
$ref: '#/definitions/ErrorResponse'
'500':
description: >-
If an error occurs during the execution of the request, HTTP Status
Code 500 Internal Server Error is returned.
schema:
$ref: '#/definitions/ErrorResponse'
/api/v1/administration/verifyToken:
x-summary: Token Verification
x-description: Performs the access token verification. This operation is used to
explicitly verify if the token is valid and not expired. The implicit
token verification, in order to grant access to the other API operations
is performed internally.
get:
security:
- Bearer: []
tags:
- Administration Api
responses:
'200':
description: If the access token is valid.
'401':
description: >-
If the logged user is the administrator or the user is not logged,
HTTP Status Code 401 Unauthorized is returned.
'500':
description: >-
If an error occurs during the execution of the request, HTTP 500
Internal Server Error status code is returned.
/api/v1/administration/countries:
x-summary: Get Countries
x-description: Returns all the countries from which searches are performed and the
timestamp of the oldest search.
get:
operationId: getAllCountries
tags:
- Administration Api
produces:
- application/json
security:
- Bearer: []
responses:
'200':
description: It returns the list of countries name
schema:
type: object
properties:
countries:
type: array
description: All the countries from which searches are performed
items:
type: string
minDate:
type: string
description: >-
The timestamp of the oldest search, in UTC ISO-8601 format.
E.g. ''yyyy-MM-ddTHH:mm:ssZ''
format: date-time
'401':
description: >-
If the logged user is the administrator or the user is not logged,
HTTP Status Code 401 Unauthorized is returned.
'500':
description: >-
If an error occurs during the execution of the request, HTTP 500
Internal Server Error status code is returned.
schema:
$ref: '#/definitions/ErrorResponse'
/api/v1/administration/cataloguesStatMinDate:
x-summary: Get oldest statistic date
x-description: Returns the oldest timestamp of a ODMS catalogue statistic
get:
operationId: getMinDateNodesStat
produces:
- application/json
tags:
- Administration Api
security:
- Bearer: []
responses:
'200':
description: >-
The oldest timestamp of a ODMS catalogue statistic, in UTC ISO-8601
format. E.g. ''yyyy-MM-ddTHH:mm:ssZ''
schema:
type: object
properties:
minDate:
type: string
format: date-time
'401':
description: >-
If the logged user is the administrator or the user is not logged,
HTTP Status Code 401 Unauthorized is returned.
'500':
description: >-
If an error occurs during the execution of the request, HTTP 500
Internal Server Error status code is returned.
schema:
$ref: '#/definitions/ErrorResponse'
/api/v1/administration/statistics/catalogues:
x-summary: Catalogue Statistics
x-description: Returns the catalogues statistics.
post:
operationId: getNodeStatistics
tags:
- Administration Api
produces:
- application/json
security:
- Bearer: []
parameters:
- in: body
name: request
required: true
description: The object containing information for catalogues statistics retrieval.
schema:
$ref: '#/definitions/StatisticsRequest'
responses:
'200':
description: The catalogues statistics.
'400':
description: >-
If the request is not a valid input, HTTP 400 Bad Request status
code is returned.
schema:
$ref: '#/definitions/ErrorResponse'
'500':
description: >-
If an error occurs during the execution of the request, HTTP Status
Code 500 Internal Server Error is returned.
schema:
$ref: '#/definitions/ErrorResponse'
/api/v1/administration/statistics/search:
x-summary: Search Statistics
x-description: Returns the search statistics.
post:
operationId: getSearchStatistics