-
Notifications
You must be signed in to change notification settings - Fork 15
/
Canada-Holidays-API.v1.yaml
882 lines (882 loc) · 33.6 KB
/
Canada-Holidays-API.v1.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
openapi: 3.0.0
info:
title: Canada Holidays API
version: 1.10.0
description: 'This API lists all 32 public holidays for all 13 provinces and territories in Canada, including federal holidays.'
contact:
name: Paul Craig
url: 'https://canada-holidays.ca/api'
email: paul@pcraig.ca
license:
name: MIT
url: 'https://github.com/pcraig3/hols/blob/main/LICENSE'
servers:
- url: 'https://canada-holidays.ca'
paths:
/api/v1:
get:
summary: root
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: A welcome message
example: Hello / Bonjour!
_links:
type: object
properties:
self:
type: object
properties:
href:
type: string
example: 'https://canada-holidays.ca/api/v1/'
description: Root domain
holidays:
type: object
properties:
href:
type: string
example: 'https://canada-holidays.ca/api/v1/holidays'
description: Domain to get all holidays
provinces:
type: object
properties:
href:
type: string
example: 'https://canada-holidays.ca/api/v1/provinces'
description: Domain to get all provinces
spec:
type: object
properties:
href:
type: string
example: 'https://canada-holidays.ca/api/v1/spec'
examples:
/:
value:
message: Hello / Bonjour! Welcome to the Canada Holidays API / Bienvenue dans l’API canadienne des jours fériés
_links:
self:
href: 'https://canada-holidays.ca/api/v1/'
holidays:
href: 'https://canada-holidays.ca/api/v1/holidays'
provinces:
href: 'https://canada-holidays.ca/api/v1/provinces'
spec:
href: 'https://canada-holidays.ca/api/v1/spec'
operationId: Root
description: Returns a welcome message.
tags:
- info
/api/v1/holidays:
get:
summary: Get all holidays
responses:
'200':
description: OK
headers: {}
content:
application/json:
schema:
type: object
properties:
holidays:
type: array
items:
$ref: '#/components/schemas/Holiday'
examples:
/holidays:
value:
holidays:
- id: 1
date: '2023-01-01'
nameEn: New Year’s Day
nameFr: Jour de l’An
federal: 1
observedDate: '2023-01-02'
provinces:
- id: AB
nameEn: Alberta
nameFr: Alberta
sourceLink: 'https://www.alberta.ca/alberta-general-holidays.aspx#jumplinks-1'
sourceEn: General holidays in Alberta
- id: BC
nameEn: British Columbia
nameFr: Colombie-Britannique
sourceLink: 'https://www2.gov.bc.ca/gov/content/employment-business/employment-standards-advice/employment-standards/statutory-holidays#body'
sourceEn: Statutory Holidays in British Columbia
- id: MB
nameEn: Manitoba
nameFr: Manitoba
sourceLink: 'https://www.gov.mb.ca/labour/standards/doc,gen-holidays-after-april-30-07,factsheet.html#q12'
sourceEn: General holidays in Manitoba
- id: NB
nameEn: New Brunswick
nameFr: Nouveau-Brunswick
sourceLink: 'https://www2.gnb.ca/content/gnb/en/departments/elg/local_government/content/governance/content/days_of_rest_act/faq.html#2'
sourceEn: 10 prescribed days of rest
- id: NL
nameEn: Newfoundland and Labrador
nameFr: Terre-Neuve-et-Labrador
sourceLink: 'https://gist.github.com/pcraig3/81dff348ddf52777c9f918c3032531bd'
sourceEn: Public holidays in Newfoundland
- id: NT
nameEn: Northwest Territories
nameFr: Territoires du Nord-Ouest
sourceLink: 'https://www.ece.gov.nt.ca/en/services/employment-standards/frequently-asked-questions#Statutory%20Holidays'
sourceEn: 'Employment Standards, Northwest Territories'
- id: NS
nameEn: Nova Scotia
nameFr: Nouvelle-Écosse
sourceLink: 'https://novascotia.ca/lae/employmentrights/holidaychart.asp'
sourceEn: Paid holidays in Nova Scotia
- id: NU
nameEn: Nunavut
nameFr: Nunavut
sourceLink: 'https://nu-lsco.ca/faq-s?tmpl=component&faqid=11'
sourceEn: Nunavut General Holidays
- id: 'ON'
nameEn: Ontario
nameFr: Ontario
sourceLink: 'https://www.ontario.ca/document/your-guide-employment-standards-act-0/public-holidays'
sourceEn: Ontario Public holidays
- id: PE
nameEn: Prince Edward Island
nameFr: Île-du-Prince-Édouard
sourceLink: 'https://www.princeedwardisland.ca/en/information/economic-growth-tourism-and-culture/paid-holidays'
sourceEn: PEI Paid Holidays
- id: QC
nameEn: Quebec
nameFr: Québec
sourceLink: 'https://www2.gouv.qc.ca/entreprises/portail/quebec/ressourcesh?lang=fr&g=ressourcesh&sg=personnel&t=o&e=2318829344:3908165687'
sourceEn: 'Jours fériés, chômés et payés'
- id: SK
nameEn: Saskatchewan
nameFr: Saskatchewan
sourceLink: 'https://www.saskatchewan.ca/business/employment-standards/public-statutory-holidays/list-of-saskatchewan-public-holidays'
sourceEn: Saskatchewan Public Holidays
- id: YT
nameEn: Yukon
nameFr: Yukon
sourceLink: 'https://yukon.ca/en/doing-business/employer-responsibilities/find-yukon-statutory-holiday'
sourceEn: Yukon statutory holiday dates
- id: 2
date: '2023-02-20'
nameEn: Louis Riel Day
nameFr: Journée Louis Riel
federal: 0
observedDate: '2023-02-20'
provinces:
- id: MB
nameEn: Manitoba
nameFr: Manitoba
sourceLink: 'https://www.gov.mb.ca/labour/standards/doc,gen-holidays-after-april-30-07,factsheet.html#q12'
sourceEn: General holidays in Manitoba
operationId: Holidays
description: Returns Canadian public holidays. Each holiday lists the regions that observe it.
parameters:
- schema:
type: integer
default: 2024
minimum: 2015
maximum: 2031
in: query
description: A calendar year
name: year
allowEmptyValue: true
- schema:
type: string
enum:
- '1'
- '0'
- 'true'
- 'false'
in: query
name: federal
description: 'A boolean parameter. If true or 1, will return only federal holidays. If false or 0, will return no federal holidays.'
allowEmptyValue: true
- schema:
type: string
enum:
- '1'
- '0'
- 'true'
- 'false'
default: 'false'
in: query
name: optional
description: 'A boolean parameter. If false or 0 (default), will return only legislated holidays. If true or 1, will return optional holidays for that region (if available).'
allowEmptyValue: true
tags:
- holidays
/api/v1/provinces:
get:
summary: Get all provinces
tags:
- provinces
responses:
'200':
description: OK
headers: {}
content:
application/json:
schema:
type: object
properties:
provinces:
type: array
items:
$ref: '#/components/schemas/Province'
examples:
/provinces:
value:
provinces:
- id: AB
nameEn: Alberta
nameFr: Alberta
sourceLink: 'https://www.alberta.ca/alberta-general-holidays.aspx#jumplinks-1'
sourceEn: General holidays in Alberta
holidays:
- id: 1
date: '2023-01-01'
nameEn: New Year’s Day
nameFr: Jour de l’An
federal: 1
observedDate: '2023-01-02'
- id: 4
date: '2023-02-20'
nameEn: Family Day
nameFr: Fête de la famille
federal: 0
observedDate: '2023-02-20'
nextHoliday:
id: 1
date: '2023-01-01'
nameEn: New Year’s Day
nameFr: Jour de l’An
federal: 1
observedDate: '2023-01-02'
- id: BC
nameEn: British Columbia
nameFr: Colombie-Britannique
sourceLink: 'https://www2.gov.bc.ca/gov/content/employment-business/employment-standards-advice/employment-standards/statutory-holidays#body'
sourceEn: Statutory Holidays in British Columbia
holidays:
- id: 1
date: '2023-01-01'
nameEn: New Year’s Day
nameFr: Jour de l’An
federal: 1
observedDate: '2023-01-02'
- id: 4
date: '2023-02-20'
nameEn: Family Day
nameFr: Fête de la famille
federal: 0
observedDate: '2023-02-20'
nextHoliday:
id: 1
date: '2023-01-01'
nameEn: New Year’s Day
nameFr: Jour de l’An
federal: 1
observedDate: '2023-01-02'
operationId: Provinces
parameters:
- schema:
type: integer
default: 2024
minimum: 2015
maximum: 2031
in: query
description: A calendar year
name: year
allowEmptyValue: true
- schema:
type: string
enum:
- '1'
- '0'
- 'true'
- 'false'
default: 'false'
in: query
name: optional
description: 'A boolean parameter. If false or 0 (default), will return only legislated holidays. If true or 1, will return optional holidays for that region (if available).'
allowEmptyValue: true
description: Returns provinces and territories in Canada. Each province or territory lists its associated holidays.
'/api/v1/provinces/{provinceId}':
get:
summary: Get a province or territory by abbreviation
responses:
'200':
description: OK
headers: {}
content:
application/json:
schema:
type: object
properties:
province:
$ref: '#/components/schemas/Province'
examples:
/provinces/MB:
value:
province:
id: MB
nameEn: Manitoba
nameFr: Manitoba
sourceLink: 'https://www.gov.mb.ca/labour/standards/doc,gen-holidays-after-april-30-07,factsheet.html#q12'
sourceEn: General holidays in Manitoba
holidays:
- id: 1
date: '2023-01-01'
nameEn: New Year’s Day
nameFr: Jour de l’An
federal: 1
observedDate: '2023-01-02'
- id: 2
date: '2023-02-20'
nameEn: Louis Riel Day
nameFr: Journée Louis Riel
federal: 0
observedDate: '2023-02-20'
- id: 7
date: '2023-04-07'
nameEn: Good Friday
nameFr: Vendredi saint
federal: 1
observedDate: '2023-04-07'
- id: 11
date: '2023-05-22'
nameEn: Victoria Day
nameFr: Fête de la Reine
federal: 1
observedDate: '2023-05-22'
- id: 15
date: '2023-07-01'
nameEn: Canada Day
nameFr: Fête du Canada
federal: 1
observedDate: '2023-07-03'
- id: 26
date: '2023-09-04'
nameEn: Labour Day
nameFr: Fête du travail
federal: 1
observedDate: '2023-09-04'
- id: 29
date: '2023-10-09'
nameEn: Thanksgiving
nameFr: Action de grâce
federal: 1
observedDate: '2023-10-09'
- id: 31
date: '2023-12-25'
nameEn: Christmas Day
nameFr: Noël
federal: 1
observedDate: '2023-12-25'
nextHoliday:
id: 1
date: '2023-01-01'
nameEn: New Year’s Day
nameFr: Jour de l’An
federal: 1
observedDate: '2023-01-02'
'400':
description: Bad Request
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/Error'
examples:
/provinces/100:
value:
error:
status: 400
message: 'Error: request.params.provinceId should be equal to one of the allowed values: AB, BC, MB, NB, NL, NS, NT, NU, ON, PE, QC, SK, YT'
timestamp: '2020-04-28T04:02:38.813Z'
operationId: Province
description: Returns a Canadian province or territory with its associated holidays. Returns a 404 response for invalid abbreviations.
parameters:
- schema:
type: integer
default: 2024
minimum: 2015
maximum: 2031
in: query
description: A calendar year
name: year
allowEmptyValue: true
- schema:
type: string
default: 'false'
enum:
- '1'
- '0'
- 'true'
- 'false'
in: query
name: optional
description: 'A boolean parameter. If false or 0 (default), will return only legislated holidays. If true or 1, will return optional holidays for that region (if available).'
allowEmptyValue: true
tags:
- provinces
parameters:
- schema:
type: string
enum:
- AB
- BC
- MB
- NB
- NL
- NS
- NT
- NU
- 'ON'
- PE
- QC
- SK
- YT
example: MB
name: provinceId
in: path
required: true
description: A Canadian province abbreviation
'/api/v1/holidays/{holidayId}':
parameters:
- schema:
type: integer
example: 2
minimum: 1
maximum: 33
name: holidayId
in: path
required: true
description: Primary key for a holiday
get:
summary: Get a holiday by id
responses:
'200':
description: OK
headers: {}
content:
application/json:
schema:
type: object
properties:
holiday:
$ref: '#/components/schemas/Holiday'
examples:
/holidays/33:
value:
holiday:
id: 33
date: '2023-12-26'
nameEn: Boxing Day
nameFr: Lendemain de Noël
federal: 1
observedDate: '2023-12-26'
provinces:
- id: NL
nameEn: Newfoundland and Labrador
nameFr: Terre-Neuve-et-Labrador
sourceLink: 'https://gist.github.com/pcraig3/81dff348ddf52777c9f918c3032531bd'
sourceEn: Public holidays in Newfoundland
- id: 'ON'
nameEn: Ontario
nameFr: Ontario
sourceLink: 'https://www.ontario.ca/document/your-guide-employment-standards-act-0/public-holidays'
sourceEn: Ontario Public holidays
/holidays/33?optional=true:
value:
holiday:
id: 33
date: '2024-12-26'
nameEn: Boxing Day
nameFr: Lendemain de Noël
federal: 1
observedDate: '2024-12-26'
provinces:
- id: NL
nameEn: Newfoundland and Labrador
nameFr: Terre-Neuve-et-Labrador
sourceLink: 'https://gist.github.com/pcraig3/81dff348ddf52777c9f918c3032531bd'
sourceEn: Public holidays in Newfoundland
- id: 'ON'
nameEn: Ontario
nameFr: Ontario
sourceLink: 'https://www.ontario.ca/document/your-guide-employment-standards-act-0/public-holidays'
sourceEn: Ontario Public holidays
- id: AB
nameEn: Alberta
nameFr: Alberta
sourceLink: 'https://www.alberta.ca/alberta-general-holidays.aspx#jumplinks-1'
sourceEn: General holidays in Alberta
optional: 1
- id: BC
nameEn: British Columbia
nameFr: Colombie-Britannique
sourceLink: 'https://www2.gov.bc.ca/gov/content/employment-business/employment-standards-advice/employment-standards/statutory-holidays#body'
sourceEn: Statutory Holidays in British Columbia
optional: 1
- id: MB
nameEn: Manitoba
nameFr: Manitoba
sourceLink: 'https://www.gov.mb.ca/labour/standards/doc,gen-holidays-after-april-30-07,factsheet.html#q12'
sourceEn: General holidays in Manitoba
optional: 1
- id: NB
nameEn: New Brunswick
nameFr: Nouveau-Brunswick
sourceLink: 'https://www2.gnb.ca/content/gnb/en/departments/elg/local_government/content/governance/content/days_of_rest_act/faq.html#2'
sourceEn: 10 prescribed days of rest
optional: 1
- id: NS
nameEn: Nova Scotia
nameFr: Nouvelle-Écosse
sourceLink: 'https://novascotia.ca/lae/employmentrights/holidaychart.asp'
sourceEn: Paid holidays in Nova Scotia
optional: 1
'400':
description: Bad Request
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/Error'
examples:
/holidays/100:
value:
error:
status: 400
message: 'Error: request.params.holidayId should be <= 31'
timestamp: '2020-04-28T03:59:56.605Z'
operationId: Holiday
description: Returns one Canadian statutory holiday by integer id. Returns a 404 response for invalid ids.
parameters:
- schema:
type: integer
default: 2024
minimum: 2015
maximum: 2031
in: query
description: A calendar year
name: year
allowEmptyValue: true
- schema:
type: string
default: 'false'
enum:
- '1'
- '0'
- 'true'
- 'false'
in: query
name: optional
description: 'A boolean parameter. If false or 0 (default), will return provinces for which this is a legislated holiday. If true or 1, will return provinces which optionally celebrate this holiday.'
allowEmptyValue: true
tags:
- holidays
/api/v1/spec:
get:
summary: Get JSON schema
tags:
- info
responses:
'200':
description: OK
headers:
content-type:
schema:
type: string
description: text/yaml; charset=UTF-8
operationId: Spec
description: Gets the schema for the JSON API as a yaml file.
components:
schemas:
Holiday:
title: Holiday
type: object
description: 'A Canadian holiday. Includes a name, the literal date of the holiday, the observed date of the holiday (ie, accommodating for weekends), and a list of regions that observe this holiday.'
x-examples:
/holidays/33?optional=true:
holiday:
id: 33
date: '2024-12-26'
nameEn: Boxing Day
nameFr: Lendemain de Noël
federal: 1
observedDate: '2024-12-26'
provinces:
- id: NL
nameEn: Newfoundland and Labrador
nameFr: Terre-Neuve-et-Labrador
sourceLink: 'https://gist.github.com/pcraig3/81dff348ddf52777c9f918c3032531bd'
sourceEn: Public holidays in Newfoundland
- id: 'ON'
nameEn: Ontario
nameFr: Ontario
sourceLink: 'https://www.ontario.ca/document/your-guide-employment-standards-act-0/public-holidays'
sourceEn: Ontario Public holidays
- id: AB
nameEn: Alberta
nameFr: Alberta
sourceLink: 'https://www.alberta.ca/alberta-general-holidays.aspx#jumplinks-1'
sourceEn: General holidays in Alberta
optional: 1
- id: BC
nameEn: British Columbia
nameFr: Colombie-Britannique
sourceLink: 'https://www2.gov.bc.ca/gov/content/employment-business/employment-standards-advice/employment-standards/statutory-holidays#body'
sourceEn: Statutory Holidays in British Columbia
optional: 1
- id: MB
nameEn: Manitoba
nameFr: Manitoba
sourceLink: 'https://www.gov.mb.ca/labour/standards/doc,gen-holidays-after-april-30-07,factsheet.html#q12'
sourceEn: General holidays in Manitoba
optional: 1
- id: NB
nameEn: New Brunswick
nameFr: Nouveau-Brunswick
sourceLink: 'https://www2.gnb.ca/content/gnb/en/departments/elg/local_government/content/governance/content/days_of_rest_act/faq.html#2'
sourceEn: 10 prescribed days of rest
optional: 1
- id: NS
nameEn: Nova Scotia
nameFr: Nouvelle-Écosse
sourceLink: 'https://novascotia.ca/lae/employmentrights/holidaychart.asp'
sourceEn: Paid holidays in Nova Scotia
optional: 1
properties:
id:
type: integer
description: Primary key for a holiday
example: 2
minimum: 1
maximum: 33
date:
type: string
description: 'ISO date: the literal date of the holiday'
format: date
example: '2020-12-26'
nameEn:
type: string
description: English name
example: Louis Riel Day
nameFr:
type: string
description: French name
example: Journée Louis Riel
federal:
type: integer
description: Whether this holiday is observed by federally-regulated industries.
enum:
- 1
- 0
format: binary
observedDate:
type: string
description: 'ISO date: when this holiday is observed'
format: date
example: '2020-12-28'
provinces:
type: array
items:
$ref: '#/components/schemas/Province'
optional:
type: integer
format: binary
enum:
- 1
description: 'Whether this is a province-wide statutory holiday, or one that is optional for employers.'
required:
- id
- date
- nameEn
- nameFr
- federal
- observedDate
Province:
title: Province
type: object
x-examples:
/provinces/SK:
province:
id: SK
nameEn: Saskatchewan
nameFr: Saskatchewan
sourceLink: 'https://www.saskatchewan.ca/business/employment-standards/public-statutory-holidays/list-of-saskatchewan-public-holidays'
sourceEn: Saskatchewan Public Holidays
holidays:
- id: 1
date: '2023-01-01'
nameEn: New Year’s Day
nameFr: Jour de l’An
federal: 1
observedDate: '2023-01-02'
- id: 4
date: '2023-02-20'
nameEn: Family Day
nameFr: Fête de la famille
federal: 0
observedDate: '2023-02-20'
- id: 7
date: '2023-04-07'
nameEn: Good Friday
nameFr: Vendredi saint
federal: 1
observedDate: '2023-04-07'
- id: 11
date: '2023-05-22'
nameEn: Victoria Day
nameFr: Fête de la Reine
federal: 1
observedDate: '2023-05-22'
- id: 15
date: '2023-07-01'
nameEn: Canada Day
nameFr: Fête du Canada
federal: 1
observedDate: '2023-07-03'
- id: 21
date: '2023-08-07'
nameEn: Saskatchewan Day
nameFr: Jour de Saskatchewan
federal: 0
observedDate: '2023-08-07'
- id: 26
date: '2023-09-04'
nameEn: Labour Day
nameFr: Fête du travail
federal: 1
observedDate: '2023-09-04'
- id: 29
date: '2023-10-09'
nameEn: Thanksgiving
nameFr: Action de grâce
federal: 1
observedDate: '2023-10-09'
- id: 30
date: '2023-11-11'
nameEn: Remembrance Day
nameFr: Jour du Souvenir
federal: 1
observedDate: '2023-11-13'
- id: 31
date: '2023-12-25'
nameEn: Christmas Day
nameFr: Noël
federal: 1
observedDate: '2023-12-25'
nextHoliday:
id: 1
date: '2023-01-01'
nameEn: New Year’s Day
nameFr: Jour de l’An
federal: 1
observedDate: '2023-01-02'
description: 'A Canadian province or territory '
properties:
id:
type: string
enum:
- AB
- BC
- MB
- NB
- NL
- NS
- NT
- NU
- 'ON'
- PE
- QC
- SK
- YT
example: MB
description: Canadian province abbreviations
nextHoliday:
$ref: '#/components/schemas/Holiday'
holidays:
type: array
items:
$ref: '#/components/schemas/Holiday'
nameFr:
type: string
description: French name
example: Manitoba
nameEn:
type: string
description: English name
example: Manitoba
sourceLink:
type: string
example: 'https://www.gov.mb.ca/labour/standards/doc,gen-holidays-after-april-30-07,factsheet.html#q12'
format: uri
pattern: https+
description: URL to public holidays reference for this region
sourceEn:
type: string
description: Name of reference page with public holidays for this region
example: What are the general holidays in Manitoba?
optional:
type: integer
description: Whether this province optionally observes a given holiday.
format: binary
enum:
- 1
required:
- id
- nameFr
- nameEn
- sourceLink
- sourceEn
Error:
title: Error
type: object
x-examples:
/holidays/100:
error:
status: 400
message: 'Bad Request: request/params/holidayId must be <= 33'
timestamp: '2022-12-27T05:55:36.552Z'
properties:
status:
type: integer
example: 404
minimum: 100
maximum: 599
description: An HTTP status code
message:
type: string
example: 'Error: No holiday with id “100”'
description: An error message
timestamp:
type: string
format: date-time
example: '2020-04-27T05:41:10.710Z'
description: A UTC ISO timestamp
securitySchemes: {}
tags:
- name: info
description: Get welcome message and links
- name: holidays
description: Get holiday(s) with associated provinces
- name: provinces
description: Get province(s) with associated holidays