forked from swagger-api/swagger-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pdh.json
835 lines (834 loc) · 24.8 KB
/
pdh.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
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
{
"openapi": "3.0.0",
"servers": [
{
"url": "https://pacificdata.org/data/api/3",
"description": "Production"
},
{
"url": "https://uatweb.spc.links.com.au/data/api/3",
"description": "UAT"
},
{
"url": "https://dev.spc.links.com.au/data/api/3",
"description": "Dev"
}
],
"info": {
"title": "Pacific Data Hub - Data Catalogue API",
"description": "This API provides live access to the Pacific Data Hub Data Catalogue. Further documentation on the API is available from http://docs.ckan.org/en/latest/ Confirm the version of the API available from the catalogue by requesting https://pacificdata.org/data/api/3/action/status_show.",
"termsOfService": "https://pacificdata.org/terms-use",
"contact": {
"name": "Pacific Data Hub Data Catalogue",
"url": "http://pacificdata.org/data/",
"email": "[email protected]"
},
"license": {
"name": "Creative Commons by Attribution",
"url": "http://www.opendefinition.org/licenses/cc-by"
},
"version": "1.0"
},
"tags": [
{
"name": "action",
"description": "CKAN's Action API is a powerful, RPC-style API that exposes all of CKAN's core features to API clients.",
"externalDocs": {
"description": "Find out more",
"url": "https://docs.ckan.org/en/2.9/api/"
}
}
],
"security": [
{
"githubAccessCode": [
"user",
"user:email",
"user:follow",
"public_repo",
"repo",
"repo_deployment",
"repo:status",
"delete_repo",
"notifications",
"gist",
"read:repo_hook",
"write:repo_hook",
"admin:repo_hook",
"read:org",
"write:org",
"admin:org",
"read:public_key",
"write:public_key",
"admin:public_key"
]
},
{
"internalApiKey": [
]
}
],
"paths": {
"/action/tag_list": {
"get": {
"summary": "Get a list of tags",
"description": "Returns the names of all indexed tags",
"parameters": [
{
"name": "offset",
"in": "query",
"description": "The offset (index) of the first tag to return",
"schema": {
"type": "integer",
"default": 0
}
},
{
"name": "limit",
"in": "query",
"description": "The number of tags to be returned per page",
"schema": {
"type": "integer",
"default": 100
}
}
],
"tags": [
"action"
],
"responses": {
"200": {
"description": "List of tags"
}
}
}
},
"/action/status_show": {
"get": {
"summary": "Get the site status",
"description": "Returns the site status",
"tags": [
"action"
],
"responses": {
"200": {
"description": "Returns the site status, version, installed extensions"
}
}
}
},
"/action/package_list": {
"get": {
"summary": "Get a list of all packages (datasets)",
"description": "Returns the names of all indexed packages (datasets)",
"parameters": [
{
"name": "offset",
"in": "query",
"description": "The offset (index) of the first package to return",
"schema": {
"type": "integer",
"default": 0
}
},
{
"name": "limit",
"in": "query",
"description": "The number of packages to be returned per page",
"schema": {
"type": "integer",
"default": 100
}
}
],
"tags": [
"action"
],
"responses": {
"200": {
"description": "List of packages"
}
}
}
},
"/action/package_search": {
"get": {
"summary": "Find packages (datasets) matching query terms",
"description": "Searches for packages (datasets) matching the specified query terms",
"parameters": [
{
"name": "q",
"in": "query",
"description": "A query string",
"schema": {
"type": "string",
"default": "\"Vital statistics\""
}
}
],
"tags": [
"action"
],
"responses": {
"200": {
"description": "List of packages"
}
}
}
},
"/action/package_show": {
"get": {
"summary": "Get metadata about one specific package (dataset)",
"description": "Returns metadata about the package (dataset) corresponding to the specified unique name",
"parameters": [
{
"name": "id",
"in": "query",
"description": "The package name",
"schema": {
"type": "string",
"default": "vital-statistics"
}
}
],
"tags": [
"action"
],
"responses": {
"200": {
"description": "A package metadata object"
}
}
}
},
"/action/package_activity_list": {
"get": {
"summary": "Get the activity stream of a package (dataset)",
"description": "Returns a package's activity stream",
"parameters": [
{
"name": "id",
"in": "query",
"description": "The id or name of the package",
"schema": {
"type": "string",
"default": "vital-statistics"
}
},
{
"name": "offset",
"in": "query",
"description": "Where to start getting activity items from",
"schema": {
"type": "integer",
"default": 0
}
},
{
"name": "limit",
"in": "query",
"description": "The maximum number of activities to return",
"schema": {
"type": "integer",
"default": 31
}
}
],
"tags": [
"action"
],
"responses": {
"200": {
"description": "List of activities"
}
}
}
},
"/action/package_activity_list_html": {
"get": {
"summary": "Get the activity stream of a package (dataset), HTML format",
"description": "The activity stream is rendered as a snippet of HTML meant to be included in an HTML pag, i.e it doesn't have any header or footer.",
"parameters": [
{
"name": "id",
"in": "query",
"description": "The id or name of the package",
"schema": {
"type": "string",
"default": "grizzly-bear-population-units"
}
},
{
"name": "offset",
"in": "query",
"description": "Where to start getting activity items from",
"schema": {
"type": "integer",
"default": 0
}
},
{
"name": "limit",
"in": "query",
"description": "The maximum number of activities to return",
"schema": {
"type": "integer",
"default": 31
}
}
],
"tags": [
"action"
],
"responses": {
"200": {
"description": "List of activities rendered as HTML snippet"
}
}
}
},
"/action/package_autocomplete": {
"get": {
"summary": "Find packages (datasets) matching a query",
"description": "Return a list of datasets that match a string",
"parameters": [
{
"name": "q",
"in": "query",
"description": "The string to query",
"schema": {
"type": "string",
"default": "\"Vital statistics\""
}
},
{
"name": "limit",
"in": "query",
"description": "The maximum number of resource formats to return",
"schema": {
"type": "integer",
"default": 10
}
}
],
"tags": [
"action"
],
"responses": {
"200": {
"description": "List of datasets that match a string"
}
}
}
},
"/action/package_relationships_list": {
"get": {
"summary": "Get package (dataset) relationships",
"description": "Return a dataset's relationships",
"parameters": [
{
"name": "id",
"in": "query",
"description": "The id or name of the first package",
"schema": {
"type": "string",
"default": "vital-statistics"
}
},
{
"name": "id2",
"in": "query",
"description": "The id or name of the second package",
"schema": {
"type": "string",
"default": "important-fossil-areas"
}
},
{
"name": "rel",
"in": "query",
"description": "relationship as string",
"schema": {
"type": "string"
}
}
],
"tags": [
"action"
],
"responses": {
"200": {
"description": "List of dataset relationships"
}
}
}
},
"/action/package_revision_list": {
"get": {
"summary": "Get list of revisions for a package (dataset)",
"description": "Return a dataset's revision as a list of dictionaries",
"parameters": [
{
"name": "id",
"in": "query",
"description": "The id or name of the dataset",
"schema": {
"type": "string",
"default": "vital-statistics"
}
}
],
"tags": [
"action"
],
"responses": {
"200": {
"description": "List of dataset revisions"
}
}
}
},
"/action/organization_activity_list": {
"get": {
"summary": "Get the activity stream of an organization",
"description": "Return an organization's activity stream",
"parameters": [
{
"name": "id",
"in": "query",
"description": "The id or name of the organization",
"schema": {
"type": "string",
"default": "spc"
}
}
],
"tags": [
"action"
],
"responses": {
"200": {
"description": "List of an organization's activities"
}
}
}
},
"/action/organization_activity_list_html": {
"get": {
"summary": "Get the activity stream of an organization, HTML format",
"description": "Return an organization's activity stream as HTML",
"parameters": [
{
"name": "id",
"in": "query",
"description": "The id or name of the organization",
"schema": {
"type": "string",
"default": "spc"
}
}
],
"tags": [
"action"
],
"responses": {
"200": {
"description": "List of an organization's activities in HTML"
}
}
}
},
"/action/organization_follower_count": {
"get": {
"summary": "Get number of followers of an organization",
"description": "Return the number of followers of an organization",
"parameters": [
{
"name": "id",
"in": "query",
"description": "The id or name of the organization",
"schema": {
"type": "string",
"default": "spc"
}
}
],
"tags": [
"action"
],
"responses": {
"200": {
"description": "Count of organization followers"
}
}
}
},
"/action/organization_follower_list": {
"get": {
"summary": "Get users following an organization",
"description": "Return a list of users that are following a given organization",
"parameters": [
{
"name": "id",
"in": "query",
"description": "The id or name of the organization",
"schema": {
"type": "string",
"default": "spc"
}
}
],
"tags": [
"action"
],
"responses": {
"200": {
"description": "List of organization followers"
}
}
}
},
"/action/organization_list_for_user": {
"get": {
"summary": "Get organizations that a user has a given permission for",
"description": "Return the organizations that the user has a given permission for",
"parameters": [
{
"name": "permission",
"in": "query",
"description": "The permission the user has against the returned organization",
"schema": {
"type": "string",
"default": "\"edit_group\""
}
}
],
"tags": [
"action"
],
"responses": {
"200": {
"description": "List of organizations for given permission"
}
}
}
},
"/action/organization_revision_list": {
"get": {
"summary": "Get organization revisions",
"description": "Return an organization's revisions",
"parameters": [
{
"name": "id",
"in": "query",
"description": "The name or id of the organization",
"schema": {
"type": "string",
"default": "spc"
}
}
],
"tags": [
"action"
],
"responses": {
"200": {
"description": "List of an organization's revisions"
}
}
}
},
"/action/organization_show": {
"get": {
"summary": "Get details of a specific organization",
"description": "Return the details of an organization",
"parameters": [
{
"name": "id",
"in": "query",
"description": "The id or name of the organization",
"schema": {
"type": "string",
"default": "spc"
}
},
{
"name": "include_datasets",
"in": "query",
"description": "include a list of the organization's datasets",
"schema": {
"type": "boolean",
"default": true
}
}
],
"tags": [
"action"
],
"responses": {
"200": {
"description": "List organization details"
}
}
}
},
"/action/organization_list": {
"get": {
"summary": "Get names of all organizations",
"description": "Returns the names of all indexed organizations",
"parameters": [
{
"name": "offset",
"in": "query",
"description": "The offset (index) of the first organizations to return",
"schema": {
"type": "integer",
"default": 0
}
},
{
"name": "limit",
"in": "query",
"description": "The number of organizations to be returned per page",
"schema": {
"type": "integer",
"default": 100
}
}
],
"tags": [
"action"
],
"responses": {
"200": {
"description": "List of organizations"
}
}
}
},
"/action/organization_autocomplete": {
"get": {
"summary": "Get names of organizations that match a query string",
"description": "Return a list of organization names that contain a string",
"parameters": [
{
"name": "q",
"in": "query",
"description": "The string to search for",
"schema": {
"type": "string",
"default": "spc"
}
},
{
"name": "limit",
"in": "query",
"description": "The maximum number of organizations to return (optional)",
"schema": {
"type": "integer",
"default": 20
}
}
],
"tags": [
"action"
],
"responses": {
"200": {
"description": "List of organizations"
}
}
}
},
"/action/resource_search": {
"get": {
"summary": "Find resources",
"description": "Returns a dictionary with two fields ``count`` and ``results``. The ``count`` field contains the total number of Resources found without the limit or query parameters having an effect. The ``results`` field is a list of dictized Resource objects. The query parameter is a required field. It is a string in the form ``{field}:{term}`` or a list of strings, each of the same form. Within each string, ``{field}`` is a field or extra field on the Resource domain object.",
"parameters": [
{
"name": "query",
"in": "query",
"description": "The search criteria string or list of strings of the form ``{field}:{term1}``",
"schema": {
"type": "string",
"default": "format:csv"
}
},
{
"name": "fields",
"in": "query",
"description": "Depreciated",
"schema": {
"type": "string"
}
},
{
"name": "order_by",
"in": "query",
"description": "A field on the resource model that orders the results",
"schema": {
"type": "string"
}
},
{
"name": "offset",
"in": "query",
"description": "Apply an offset to the query",
"schema": {
"type": "integer",
"default": 0
}
},
{
"name": "limit",
"in": "query",
"description": "Apply a limit to the query",
"schema": {
"type": "integer",
"default": 0
}
}
],
"tags": [
"action"
],
"responses": {
"200": {
"description": "Search for resources"
}
}
}
},
"/action/resource_show": {
"get": {
"summary": "Get metadata for a specific resource",
"description": "Return the metadata of a resource",
"parameters": [
{
"name": "id",
"in": "query",
"description": "The id of the resource",
"schema": {
"type": "string",
"default": "5410816c-d1c1-4f5e-a923-41668b97efb2"
}
},
{
"name": "include_tracking",
"in": "query",
"description": "Add tracking information to dataset",
"schema": {
"type": "boolean",
"default": false
}
}
],
"tags": [
"action"
],
"responses": {
"200": {
"description": "Return metadata of a resource"
}
}
}
},
"/action/related_list": {
"get": {
"summary": "Gets items related to a package (dataset)",
"description": "Returns a dataset's related items.",
"parameters": [
{
"name": "id",
"in": "query",
"description": "id or name of the dataset (optional)",
"schema": {
"type": "string"
}
},
{
"name": "dataset",
"in": "query",
"description": "Dataset dictionary of the dataset (optional)",
"schema": {
"type": "string"
}
},
{
"name": "type_filter",
"in": "query",
"description": "The type of related item to show (optional)",
"schema": {
"type": "string"
}
},
{
"name": "sort",
"in": "query",
"description": "The order to sort the related items in",
"schema": {
"type": "string"
}
},
{
"name": "featured",
"in": "query",
"description": "whether or not to restrict the results to only featured items",
"schema": {
"type": "string"
}
}
],
"tags": [
"action"
],
"responses": {
"200": {
"description": "Search for related items"
}
}
}
}
},
"components": {
"schemas": {
},
"securitySchemes": {
"githubAccessCode": {
"type": "oauth2",
"flows": {
"authorizationCode": {
"authorizationUrl": "https://github.com/login/oauth/authorize",
"tokenUrl": "https://github.com/login/oauth/access_token",
"scopes": {
"user": "Grants read/write access to profile info only. Note that this scope includes user:email and user:follow.",
"user:email": "Grants read access to a user's email addresses.",
"user:follow": "Grants access to follow or unfollow other users.",
"public_repo": "Grants read/write access to code, commit statuses, and deployment statuses for public repositories and organizations.",
"repo": "Grants read/write access to code, commit statuses, and deployment statuses for public and private repositories and organizations.",
"repo_deployment": "Grants access to deployment statuses for public and private repositories. This scope is only necessary to grant other users or services access to deployment statuses, without granting access to the code.",
"repo:status": "Grants read/write access to public and private repository commit statuses. This scope is only necessary to grant other users or services access to private repository commit statuses without granting access to the code.",
"delete_repo": "Grants access to delete adminable repositories.",
"notifications": "Grants read access to a user's notifications. repo also provides this access.",
"gist": "Grants write access to gists.",
"read:repo_hook": "Grants read and ping access to hooks in public or private repositories.",
"write:repo_hook": "Grants read, write, and ping access to hooks in public or private repositories.",
"admin:repo_hook": "Grants read, write, ping, and delete access to hooks in public or private repositories.",
"read:org": "Read-only access to organization, teams, and membership.",
"write:org": "Publicize and unpublicize organization membership.",
"admin:org": "Fully manage organization, teams, and memberships.",
"read:public_key": "List and view details for public keys.",
"write:public_key": "Create, list, and view details for public keys.",
"admin:public_key": "Fully manage public keys."
}
}
}
},
"internalApiKey": {
"type": "apiKey",
"in": "header",
"name": "ckan_api_key"
}
}
}
}