-
Notifications
You must be signed in to change notification settings - Fork 35
/
swagger.json
10159 lines (10158 loc) · 375 KB
/
swagger.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
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",
"info": {
"description": "<p>This Swagger Page is for the <a href=\"/developer/\">FOIA Request Portal</a>. Information about the <a href=\"/developer/agency-api/\">FOIA Agency API</a> can be found on the <a href=\"/developer/agency-api/\">API Specs page</a>.</p><h5>Authorization with API Key</h5><p>Use the Authorize button below to enter your <code>api_key</code> if you have one. You can<a href=\"/developer/#api-key-signup\"> signup for an API key</a> or use the following <code>api_key</code> for testing. <br><br> <code>N4aCuDuJO8Ucf1FTR2EzVPZqo8NsSl1c7YLYOk8N</code></p><h5>Agency Component Entity ID</h5><p>You can use the Entity ID for <b>Office of Information Policy</b> in the examples below:</p><code>8216158f-8089-431d-b866-dc334e8d4758</code>",
"title": "National FOIA Portal - JSON API",
"version": "Versioning not supported"
},
"host": "api.foia.gov",
"basePath": "/api",
"securityDefinitions": {
"APIKeyHeader": {
"type": "apiKey",
"in": "header",
"name": "X-API-Key"
}
},
"security": [{
"APIKeyHeader": []
}],
"schemes": ["https"],
"consumes": ["application\/vnd.api+json"],
"produces": ["application\/vnd.api+json"],
"paths": {
"/agency_components": {
"get": {
"summary": "Get a List of Agency Components",
"description": "<p>Request a list of Agency Components. The ID returned can be used to get more details about the Agency Component. Using parameters such as <code>include</code> and <code>fields</code> allow you to request complex data.</p><h4>For Example:</h4><p>A list of agency components with their parent agency.</p><code>https://api.foia.gov/api/agency_components?&include=agency&fields[agency]=name,abbreviation&fields[agency_component]=title,abbreviation,agency</code>",
"security": [{
"APIKeyHeader": []
}],
"parameters": [{
"name": "fields[agency_component]",
"required": false,
"in": "query",
"type": "string",
"description": "You can choose which fields to include by using comma separated values in this parameter.</p><h5>For Example:</h5><p>This endpoint will return only the title and description. <br> https://api.foia.gov/api/agency_components?fields[agency_component]=title,description&api_key=N4aCuDuJO8Ucf1FTR2EzVPZqo8NsSl1c7YLYOk8N</p><h5>Possible values:</h5><code>title, status, abbreviation, moderation_state, description, email, submission_address</code>"
},
{
"name": "fields[agency]",
"required": false,
"in": "query",
"type": "string",
"description": "You can choose which fields to include by using comma separated values in this parameter.</p><h5>For Example:</h5><p>This endpoint will return only the title and description. <br> https://api.foia.gov/api/agency_components?fields[agency_component]=title,description&api_key=N4aCuDuJO8Ucf1FTR2EzVPZqo8NsSl1c7YLYOk8N</p><h5>Possible values:</h5><code>title, status, abbreviation, moderation_state, description, email, submission_address</code>"
},
{
"name": "page[limit]",
"in": "query",
"type": "number",
"required": false,
"description": "You can use <code>page[limit]</code> to return a maximum number of results. <p><a href=\"https://www.drupal.org/docs/8/modules/jsonapi/pagination\" target=\"_blank\">Learn more about Pagination in the Drupal documentation</a>.</p>"
},
{
"name": "page[offset]",
"in": "query",
"type": "string",
"required": false,
"description": "<p>The offset is the result you want to start with. An offset of 3 and a <code>page[limit]</code> of 10 will list ten items starting from item 3. Each JSON response from the API will have built in pagination under <code>links</code>.</p><p><a href=\"https://www.drupal.org/docs/8/modules/jsonapi/pagination\" target=\"_blank\">Learn more about Pagination in the Drupal documentation</a>.</p>"
},
{
"name": "include",
"in": "query",
"type": "string",
"required": false,
"description": "Embed related entities in the JSON response under <code>relationships</code>. <p><a href=\"https://www.drupal.org/docs/8/modules/jsonapi/includes\" target=\"_blank\">Learn more in the documentation</a>.</p><p><h5>Possible values:</h5><code>agency, foia_officers, field_misc, public_liaisons, paper_receiver, request_form, service_centers</code></p>"
}
],
"tags": ["Agency Component"],
"responses": {
"200": {
"description": "Successful Operation",
"schema": {
"title": "paragraph:admin_app_via Schema",
"description": "Describes the payload for 'paragraph' entities of the 'admin_app_via' bundle.",
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/paragraph--admin_app_via/properties/data"
}
},
"meta": {
"description": "Non-standard meta-information that can not be represented as an attribute or relationship.",
"type": "object",
"additionalProperties": true
},
"links": {
"type": "object",
"additionalProperties": {
"description": "A link **MUST** be represented as either: a string containing the link's URL or a link object . ",
"type": "object",
"required": [
"href"
],
"properties": {
"href": {
"description": "A string containing the link's URL . ",
"type": "string",
"format": "uri - reference"
},
"meta": {
"description": "Non-standard meta-information that can not be represented as an attribute or relationship.",
"type": "object",
"additionalProperties": true
}
}
}
},
"jsonapi": {
"description": "An object describing the server's implementation",
"type": "object",
"properties": {
"version": {
"type": "string"
},
"meta": {
"description": "Non-standard meta-information that can not be represented as an attribute or relationship.",
"type": "object",
"additionalProperties": true
}
},
"additionalProperties": false
}
},
"additionalProperties": true
}
},
"400": {
"description": "Syntax error"
},
"403": {
"description": "Forbidden: The api_key is missing"
},
"404": {
"description": "Not Found"
}
}
}
},
"/agency_components/{entity}": {
"get": {
"summary": "Get Agency Component Details",
"description": "<p>Request details for an Agency Component by UUID.</p>",
"parameters": [{
"name": "entity",
"required": true,
"in": "path",
"type": "string",
"description": "The uuid of the node agency_component"
}],
"tags": ["Agency Component"],
"responses": {
"200": {
"description": "Successful Operation",
"schema": {
"$ref": "#/definitions/node--agency_component"
}
},
"400": {
"description": "Syntax error"
},
"403": {
"description": "Forbidden: The api_key is missing"
},
"404": {
"description": "Agency Component Not Found"
}
}
}
},
"/agency": {
"get": {
"summary": "List Taxonomy: Agency",
"description": "Endpoint for listing the agency taxonomy type. The ID returned can be used to get details on the term.",
"parameters": [
{
"name": "page[limit]",
"in": "query",
"type": "number",
"required": false,
"description": "You can use <code>page[limit]</code> to return a maximum number of results. <p><a href=\"https://www.drupal.org/docs/8/modules/jsonapi/pagination\" target=\"_blank\">Learn more about Pagination in the Drupal documentation</a>.</p>"
},
{
"name": "page[offset]",
"in": "query",
"type": "string",
"required": false,
"description": "<p>The offset is the result you want to start with. An offset of 3 and a <code>page[limit]</code> of 10 will list ten items starting from item 3. Each JSON response from the API will have built in pagination under <code>links</code>.</p><p><a href=\"https://www.drupal.org/docs/8/modules/jsonapi/pagination\" target=\"_blank\">Learn more about Pagination in the Drupal documentation</a>.</p>"
},
{
"name": "include",
"in": "query",
"type": "string",
"required": false,
"description": "Embed related entities in the JSON response under <code>relationships</code>. <p><a href=\"https://www.drupal.org/docs/8/modules/jsonapi/includes\" target=\"_blank\">Learn more in the documentation</a>.</p><p><h5>Possible values:</h5><code>revision_user, category</code></p>"
}
],
"tags": [
"Agency Taxonomy"
],
"responses": {
"200": {
"description": "successful operation",
"schema": {
"title": "taxonomy_term:agency Schema",
"description": "Describes the payload for 'taxonomy_term' entities of the 'agency' bundle.",
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/taxonomy_term--agency/properties/data"
}
},
"meta": {
"description": "Non-standard meta-information that can not be represented as an attribute or relationship.",
"type": "object",
"additionalProperties": true
},
"links": {
"type": "object",
"additionalProperties": {
"description": "A link **MUST** be represented as either: a string containing the link's URL or a link object . ",
"type": "object",
"required": [
"href"
],
"properties": {
"href": {
"description": "A string containing the link's URL . ",
"type": "string",
"format": "uri - reference"
},
"meta": {
"description": "Non-standard meta-information that can not be represented as an attribute or relationship.",
"type": "object",
"additionalProperties": true
}
}
}
},
"jsonapi": {
"description": "An object describing the server's implementation",
"type": "object",
"properties": {
"version": {
"type": "string"
},
"meta": {
"description": "Non-standard meta-information that can not be represented as an attribute or relationship.",
"type": "object",
"additionalProperties": true
}
},
"additionalProperties": false
}
},
"additionalProperties": true
}
}
}
}
},
"/agency/{entity}": {
"get": {
"summary": "Get Taxonomy Details: Agency",
"description": "Endpoint for the agency taxonomy type. The individual endpoint contains details on the Agency Taxonomy Type.",
"parameters": [{
"name": "entity",
"required": true,
"in": "path",
"type": "string",
"description": "The uuid of the taxonomy_term agency which can be found using the List Agency endpoint above. You can use the ID <code>0562281a-9b9f-4f43-89c3-d1661841d5a4</code> as an example."
}],
"tags": [
"Agency Taxonomy"
],
"responses": {
"200": {
"description": "successful operation",
"schema": {
"$ref": "#/definitions/taxonomy_term--agency"
}
}
}
}
},
"/agency_components/{entity}/request_form": {
"get": {
"summary": "Get Agency Component Request Form",
"description": "Get a Request Form for an Agency by UUID. A Request Form is necessary for submitting a FOIA Request using the webform/submit endpoint. <h5>For Example:</h5> <p>https://api.foia.gov/api/agency_components/8216158f-8089-431d-b866-dc334e8d4758/request_form</p><p>You will get back the UUID 3d10c8bd-b803-467d-a9a3-797cf8c760a7 for the NARA-WJCPL form.<p/>",
"parameters": [{
"name": "entity",
"required": true,
"in": "path",
"type": "string",
"description": "The uuid of the node agency_component"
}],
"tags": ["Agency Component"],
"responses": {
"200": {
"description": "Successful Operation"
},
"400": {
"description": "Syntax error"
},
"403": {
"description": "Forbidden: The api_key is missing"
},
"404": {
"description": "Not Found"
}
}
}
},
"/annual_foia_report": {
"get": {
"summary": "List Annual FOIA Reports",
"description": "Endpoint for listing Annual Reports. You must restrict the results returned when using this endpoint due to the high number of reports.<p>offset results.</p>",
"parameters": [{
"name": "page[limit]",
"in": "query",
"type": "number",
"required": true,
"minimum": 1,
"maximum": 10,
"description": "Limiting the result set to 10 reports is necessary due to the high number of Annual Reports. <p><a href=\"https://www.drupal.org/docs/8/modules/jsonapi/pagination\" target=\"_blank\">Learn more about Pagination in the Drupal documentation</a>.</p>"
},
{
"name": "page[offset]",
"in": "query",
"type": "string",
"required": false,
"description": "<p>The offset is the result you want to start with. An offset of 3 and a <code>page[limit]</code> of 10 will list ten items starting from item 3. Each JSON response from the API will have built in pagination under <code>links</code>.</p><p><a href=\"https://www.drupal.org/docs/8/modules/jsonapi/pagination\" target=\"_blank\">Learn more about Pagination in the Drupal documentation</a>.</p>"
},
{
"name": "sort",
"in": "query",
"type": "array",
"required": false,
"description": "<p>You can sort results in alphabetical order by multiple fields such as <code>title</code> or by author <code>uid.name</code>.</p><p><a href=\"https://www.drupal.org/docs/8/modules/jsonapi/sorting\" target=\"_blank\">Learn more about sorting in the Drupal documentation</a>.</p>"
},
{
"name": "include",
"in": "query",
"type": "string",
"required": false,
"description": "Embed related entities in the JSON response under <code>relationships</code>. <p><a href=\"https://www.drupal.org/docs/8/modules/jsonapi/includes\" target=\"_blank\">Learn more in the documentation</a>.</p><p><h5>Possible values:</h5><code>field_admin_app_via, field_admin_app_vib, field_admin_app_vic1, field_admin_app_vic2, field_admin_app_vic3, field_admin_app_vic4, field_admin_app_vic5, field_admin_app_viie, field_agency, field_agency_components, field_fees_x, field_foia_pers_costs_ix, field_foia_requests_va, field_foia_requests_vb1, field_foia_requests_vb2, field_foia_requests_vb3, field_foia_xiia, field_foia_xiib, field_foia_xiic, field_foia_xiid1, field_foia_xiid2, field_foia_xiie1, field_foia_xiie2, field_pending_requests_vii_d_, field_proc_req_viia, field_proc_req_viib, field_proc_req_viic1, field_proc_req_viic2, field_proc_req_viic3, field_report_files, field_req_viiia, field_req_viiib, field_statute_iv, field_sub_xia, field_sub_xib</code></p>"
}
],
"tags": [
"Annual FOIA Report Data"
],
"responses": {
"200": {
"description": "successful operation",
"schema": {
"title": "node:annual_foia_report_data Schema",
"description": "Annual total data report given by an agency.",
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/node--annual_foia_report_data/properties/data"
}
},
"meta": {
"description": "Non-standard meta-information that can not be represented as an attribute or relationship.",
"type": "object",
"additionalProperties": true
},
"links": {
"type": "object",
"additionalProperties": {
"description": "A link **MUST** be represented as either: a string containing the link's URL or a link object . ",
"type": "object",
"required": [
"href"
],
"properties": {
"href": {
"description": "A string containing the link's URL . ",
"type": "string",
"format": "uri - reference"
},
"meta": {
"description": "Non-standard meta-information that can not be represented as an attribute or relationship.",
"type": "object",
"additionalProperties": true
}
}
}
},
"jsonapi": {
"description": "An object describing the server's implementation",
"type": "object",
"properties": {
"version": {
"type": "string"
},
"meta": {
"description": "Non-standard meta-information that can not be represented as an attribute or relationship.",
"type": "object",
"additionalProperties": true
}
},
"additionalProperties": false
}
},
"additionalProperties": true
}
}
}
}
},
"/annual_foia_report/fiscal_years": {
"get": {
"summary": "Get Annual Report: Fiscal Years",
"description": "Request Fiscal Years for Annual Reports.",
"security": [{
"APIKeyHeader": []
}],
"parameters": [],
"tags": ["Annual FOIA Report Data"],
"responses": {
"200": {
"description": "Successful Operation"
},
"400": {
"description": "Syntax error"
},
"403": {
"description": "Forbidden: The api_key is missing"
},
"404": {
"description": "Not Found"
}
}
}
},
"/quarterly_foia_report": {
"get": {
"summary": "List Quarterly FOIA Reports",
"description": "Endpoint for the quarterly_foia_report_data resource type.",
"parameters": [{
"name": "page[limit]",
"in": "query",
"type": "number",
"required": true,
"minimum": 1,
"maximum": 10,
"description": "Limiting the result set to 10 reports is necessary due to the high number of Annual Reports. <p><a href=\"https://www.drupal.org/docs/8/modules/jsonapi/pagination\" target=\"_blank\">Learn more about Pagination in the Drupal documentation</a>.</p>"
},
{
"name": "page[offset]",
"in": "query",
"type": "string",
"required": false,
"description": "<p>The offset is the result you want to start with. An offset of 3 and a <code>page[limit]</code> of 10 will list ten items starting from item 3. Each JSON response from the API will have built in pagination under <code>links</code>.</p><p><a href=\"https://www.drupal.org/docs/8/modules/jsonapi/pagination\" target=\"_blank\">Learn more about Pagination in the Drupal documentation</a>.</p>"
},
{
"name": "sort",
"in": "query",
"type": "array",
"required": false,
"description": "<p>You can sort results in alphabetical order by multiple fields such as <code>title</code> or by author <code>uid.name</code>.</p><p><a href=\"https://www.drupal.org/docs/8/modules/jsonapi/sorting\" target=\"_blank\">Learn more about sorting in the Drupal documentation</a>.</p>"
},
{
"name": "include",
"in": "query",
"type": "string",
"required": false,
"description": "Embed related entities in the JSON response under <code>relationships</code>. <p><a href=\"https://www.drupal.org/docs/8/modules/jsonapi/includes\" target=\"_blank\">Learn more in the documentation</a>.</p><p><h5>Possible values:</h5><code>field_agency, field_agency_components, field_quarterly_component_data</code></p>"
}
],
"tags": [
"Quarterly FOIA Report Data"
],
"responses": {
"200": {
"description": "Successful Operation",
"schema": {
"title": "node:quarterly_foia_report_data Schema",
"description": "Quarterly total data report given by an agency.",
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/node--quarterly_foia_report_data/properties/data"
}
},
"meta": {
"description": "Non-standard meta-information that can not be represented as an attribute or relationship.",
"type": "object",
"additionalProperties": true
},
"links": {
"type": "object",
"additionalProperties": {
"description": "A link **MUST** be represented as either: a string containing the link's URL or a link object . ",
"type": "object",
"required": [
"href"
],
"properties": {
"href": {
"description": "A string containing the link's URL . ",
"type": "string",
"format": "uri - reference"
},
"meta": {
"description": "Non-standard meta-information that can not be represented as an attribute or relationship.",
"type": "object",
"additionalProperties": true
}
}
}
},
"jsonapi": {
"description": "An object describing the server's implementation",
"type": "object",
"properties": {
"version": {
"type": "string"
},
"meta": {
"description": "Non-standard meta-information that can not be represented as an attribute or relationship.",
"type": "object",
"additionalProperties": true
}
},
"additionalProperties": false
}
},
"additionalProperties": true
}
}
}
}
},
"/quarterly_foia_report/fiscal_years": {
"get": {
"summary": "Get Quarterly Report: Fiscal Years",
"description": "Request Fiscal Years for Quarterly Reports.",
"security": [{
"APIKeyHeader": []
}],
"parameters": [],
"tags": ["Quarterly FOIA Report Data"],
"responses": {
"200": {
"description": "Successful Operation"
},
"400": {
"description": "Syntax error"
},
"403": {
"description": "Forbidden: The api_key is missing"
},
"404": {
"description": "Not Found"
}
}
}
},
"/annual-report-xml/{agency}/{year}": {
"get": {
"summary": "Individual Annual Reports in XML format are available via the Annual Report XML Endpoint.",
"description": "<p>Annual Report XML</p>",
"parameters": [{
"name": "agency",
"in": "path",
"type": "string",
"required": true,
"description": "<p>Agency Abbreviation such as <code>DOJ</code>.</p>"
},
{
"name": "year",
"in": "path",
"type": "number",
"required": true,
"description": "<p>The four digit year to return data from.</p>"
}
],
"tags": [
"Annual FOIA Report Data"
],
"produces": [
"application/xml"
],
"responses": {
"200": {
"description": "successful operation",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
},
"403": {
"description": "Forbidden: The api_key is missing"
}
}
}
},
"/node/cfo_meeting": {
"get": {
"summary": "List CFO Meetings",
"description": "Endpoint for listing node--cfo_meeting resource type. The ID returned can be used to get details for the CFO Meeting.",
"parameters": [{
"name": "page[limit]",
"in": "query",
"type": "number",
"required": false,
"description": "Limiting the result set to 10 reports is necessary due to the high number of Annual Reports. <p><a href=\"https://www.drupal.org/docs/8/modules/jsonapi/pagination\" target=\"_blank\">Learn more about Pagination in the Drupal documentation</a>.</p>"
},
{
"name": "page[offset]",
"in": "query",
"type": "string",
"required": false,
"description": "<p>The offset is the result you want to start with. An offset of 3 and a <code>page[limit]</code> of 10 will list ten items starting from item 3. Each JSON response from the API will have built in pagination under <code>links</code>.</p><p><a href=\"https://www.drupal.org/docs/8/modules/jsonapi/pagination\" target=\"_blank\">Learn more about Pagination in the Drupal documentation</a>.</p>"
},
{
"name": "sort",
"in": "query",
"type": "array",
"required": false,
"description": "<h5>For Example:</h5><p>You can sort results in alphabetical order by multiple fields such as <code>title</code>. You can also sort by other useful fields such as the author name <code>uid.name</code>.</p> <code>field_meeting_date, changed, created, moderation_state</code></p><p><a href=\"https://www.drupal.org/docs/8/modules/jsonapi/sorting\" target=\"_blank\">Learn more about sorting in the Drupal documentation</a>.</p>"
},
{
"name": "sort[sort-created][direction]",
"in": "query",
"type": "string",
"required": false,
"description": "You can change the sorting direction by using either <code>DESC</code> and <code>ASC</code>."
},
{
"name": "include",
"in": "query",
"type": "string",
"required": false,
"description": "Embed related entities in the JSON response under <code>relationships</code>. <p><a href=\"https://www.drupal.org/docs/8/modules/jsonapi/includes\" target=\"_blank\">Learn more in the documentation</a>.</p><p><h5>Possible values:</h5><code>node_type, revision_uid, uid, menu_link, field_meeting_agenda, field_meeting_documents, field_meeting_materials</code></p>"
}
],
"tags": [
"CFO Meeting"
],
"responses": {
"200": {
"description": "successful operation",
"schema": {
"title": "node:cfo_meeting Schema",
"description": "Meetings for the Chief FOIA Officers Council. Contains the date, body, heading, agenda, and links to meeting related documents and information.",
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/node--cfo_meeting/properties/data"
}
},
"meta": {
"description": "Non-standard meta-information that can not be represented as an attribute or relationship.",
"type": "object",
"additionalProperties": true
},
"links": {
"type": "object",
"additionalProperties": {
"description": "A link **MUST** be represented as either: a string containing the link's URL or a link object . ",
"type": "object",
"required": [
"href"
],
"properties": {
"href": {
"description": "A string containing the link's URL . ",
"type": "string",
"format": "uri - reference"
},
"meta": {
"description": "Non-standard meta-information that can not be represented as an attribute or relationship.",
"type": "object",
"additionalProperties": true
}
}
}
},
"jsonapi": {
"description": "An object describing the server's implementation",
"type": "object",
"properties": {
"version": {
"type": "string"
},
"meta": {
"description": "Non-standard meta-information that can not be represented as an attribute or relationship.",
"type": "object",
"additionalProperties": true
}
},
"additionalProperties": false
}
},
"additionalProperties": true
}
},
"403": {
"description": "Forbidden: The api_key is missing"
}
}
}
},
"/cfo_meeting/{entity}": {
"get": {
"summary": "Get CFO Meeting",
"description": "Individual endpoint for the node--cfo_meeting resource type. You can use the following entity ID as an example.<p><code>142af11a-14ae-4372-8eda-6aadcb3154a6</code></p>",
"parameters": [{
"name": "entity",
"required": true,
"in": "path",
"type": "string",
"description": "The uuid of the node cfo_meeting which can be found by using the List CFO Meetings above."
}],
"tags": [
"CFO Meeting"
],
"responses": {
"200": {
"description": "successful operation",
"schema": {
"type": "object",
"properties": {
"data": {
"description": "An array of objects each containing \\\"type\\\" and \\\"id\\\" members for to-many relationships.",
"type": "array",
"items": {
"description": "The \"type\" and \"id\" to non-empty members.",
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"title": "Resource type name",
"type": "string",
"enum": [
"paragraph--link_or_file"
]
},
"id": {
"title": "Resource ID",
"type": "string",
"format": "uuid"
},
"meta": {
"description": "Non-standard meta-information that can not be represented as an attribute or relationship.",
"type": "object",
"additionalProperties": true,
"properties": {
}
}
},
"additionalProperties": false
},
"uniqueItems": true
}
}
}
},
"400": {
"description": "Syntax error"
},
"403": {
"description": "Forbidden: The api_key is missing"
},
"404": {
"description": "Not Found"
}
}
}
},
"/cfo_meeting/{entity}/field_meeting_agenda": {
"get": {
"summary": "Get CFO Meeting Agenda Item",
"description": "Endpoint for the paragraph--agenda_item resource type through the <em class=\"placeholder\">field_meeting_agenda</em> relationship.",
"parameters": [{
"name": "entity",
"required": true,
"in": "path",
"type": "string",
"description": "The uuid of the node cfo_meeting"
}],
"tags": [
"CFO Meeting"
],
"responses": {
"200": {
"description": "Successful Operation",
"schema": {
"title": "paragraph:agenda_item Schema",
"description": "Describes the payload for 'paragraph' entities of the 'agenda_item' bundle.",
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/paragraph--agenda_item/properties/data"
}
},
"meta": {
"description": "Non-standard meta-information that can not be represented as an attribute or relationship.",
"type": "object",
"additionalProperties": true
},
"links": {
"type": "object",
"additionalProperties": {
"description": "A link **MUST** be represented as either: a string containing the link's URL or a link object . ",
"type": "object",
"required": [
"href"
],
"properties": {
"href": {
"description": "A string containing the link's URL . ",
"type": "string",
"format": "uri - reference"
},
"meta": {
"description": "Non-standard meta-information that can not be represented as an attribute or relationship.",
"type": "object",
"additionalProperties": true
}
}
}
},
"jsonapi": {
"description": "An object describing the server's implementation",
"type": "object",
"properties": {
"version": {
"type": "string"
},
"meta": {
"description": "Non-standard meta-information that can not be represented as an attribute or relationship.",
"type": "object",
"additionalProperties": true
}
},
"additionalProperties": false
}
},
"additionalProperties": true
}
},
"400": {
"description": "Syntax error"
},
"403": {
"description": "Forbidden: The api_key is missing"
},
"404": {
"description": "Not Found"
}
}
}
},
"/cfo_meeting/{entity}/field_meeting_documents": {
"get": {
"summary": "Get CFO Meeting Documents",
"description": "Endpoint for the paragraph--link_or_file resource type through the <em class=\"placeholder\">field_meeting_documents</em> resource object.",
"parameters": [{
"name": "entity",
"required": true,
"in": "path",
"type": "string",
"description": "The uuid of the node cfo_meeting."
}],
"tags": [
"CFO Meeting"
],
"responses": {
"200": {
"description": "Successful Operation",
"schema": {
"title": "paragraph:link_or_file Schema",
"description": "Describes the payload for 'paragraph' entities of the 'link_or_file' bundle.",
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/paragraph--link_or_file/properties/data"
}
},
"meta": {
"description": "Non-standard meta-information that can not be represented as an attribute or relationship.",
"type": "object",
"additionalProperties": true
},
"links": {
"type": "object",
"additionalProperties": {
"description": "A link **MUST** be represented as either: a string containing the link's URL or a link object . ",
"type": "object",
"required": [
"href"
],
"properties": {
"href": {
"description": "A string containing the link's URL . ",
"type": "string",
"format": "uri - reference"
},
"meta": {
"description": "Non-standard meta-information that can not be represented as an attribute or relationship.",
"type": "object",
"additionalProperties": true
}
}
}
},
"jsonapi": {
"description": "An object describing the server's implementation",
"type": "object",
"properties": {
"version": {
"type": "string"
},
"meta": {
"description": "Non-standard meta-information that can not be represented as an attribute or relationship.",
"type": "object",
"additionalProperties": true
}
},
"additionalProperties": false
}
},
"additionalProperties": true
}
},
"400": {
"description": "Syntax error"
},
"403": {
"description": "Forbidden: The api_key is missing"
},
"404": {
"description": "Not Found"
}
}
}
},
"/cfo_meeting/{entity}/field_meeting_materials": {
"get": {
"summary": "Get CFO Meeting Materials",
"description": "Endpoint for the paragraph--link_or_file resource type through the <em class=\"placeholder\">field_meeting_materials</em> relationship.",
"parameters": [{
"name": "entity",
"required": true,
"in": "path",
"type": "string",
"description": "The uuid of the node cfo_meeting"
}],
"tags": [
"CFO Meeting"
],
"responses": {
"200": {
"description": "Successful Operation",
"schema": {