{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://www.apizie.tech"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/open-data:canada-holidays-ca/root":{"get":{"operationId":"open_data_canada_holidays_ca_root","summary":"root","description":"GET /api/v1","tags":["open-data"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/open-data:canada-holidays-ca/holidays":{"get":{"operationId":"open_data_canada_holidays_ca_holidays","summary":"Get all holidays","description":"GET /api/v1/holidays","tags":["open-data"],"parameters":[{"name":"year","in":"query","required":false,"description":"A calendar year","schema":{"type":"integer","default":2023,"description":"A calendar year"}},{"name":"federal","in":"query","required":false,"description":"A boolean parameter. If true or 1, will return only federal holidays. If false or 0, will return no federal holidays.","schema":{"type":"string","enum":["1","0","true","false"],"description":"A boolean parameter. If true or 1, will return only federal holidays. If false or 0, will return no federal holidays."}},{"name":"optional","in":"query","required":false,"description":"A boolean parameter. If false or 0 (default), will return only legislated holidays. If true or 1, will return optional holidays from…","schema":{"type":"string","enum":["1","0","true","false"],"default":"false","description":"A boolean parameter. If false or 0 (default), will return only legislated holidays. If true or 1, will return optional holidays from…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/open-data:canada-holidays-ca/holiday":{"get":{"operationId":"open_data_canada_holidays_ca_holiday","summary":"Get a holiday by id","description":"GET /api/v1/holidays/{holidayId}","tags":["open-data"],"parameters":[{"name":"holidayId","in":"query","required":true,"description":"Primary key for a holiday","schema":{"type":"integer","description":"Primary key for a holiday"}},{"name":"year","in":"query","required":false,"description":"A calendar year","schema":{"type":"integer","default":2023,"description":"A calendar year"}},{"name":"optional","in":"query","required":false,"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…","schema":{"type":"string","enum":["1","0","true","false"],"default":"false","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…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/open-data:canada-holidays-ca/provinces":{"get":{"operationId":"open_data_canada_holidays_ca_provinces","summary":"Get all provinces","description":"GET /api/v1/provinces","tags":["open-data"],"parameters":[{"name":"year","in":"query","required":false,"description":"A calendar year","schema":{"type":"integer","default":2023,"description":"A calendar year"}},{"name":"optional","in":"query","required":false,"description":"A boolean parameter. If false or 0 (default), will return only legislated holidays. If true or 1, will return optional holidays from…","schema":{"type":"string","enum":["1","0","true","false"],"default":"false","description":"A boolean parameter. If false or 0 (default), will return only legislated holidays. If true or 1, will return optional holidays from…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/open-data:canada-holidays-ca/province":{"get":{"operationId":"open_data_canada_holidays_ca_province","summary":"Get a province or territory by abbreviation","description":"GET /api/v1/provinces/{provinceId}","tags":["open-data"],"parameters":[{"name":"provinceId","in":"query","required":true,"description":"A Canadian province abbreviation","schema":{"type":"string","enum":["AB","BC","MB","NB","NL","NS","NT","NU","ON","PE","QC","SK","YT"],"description":"A Canadian province abbreviation"}},{"name":"year","in":"query","required":false,"description":"A calendar year","schema":{"type":"integer","default":2023,"description":"A calendar year"}},{"name":"optional","in":"query","required":false,"description":"A boolean parameter (AB and BC only). If false or 0 (default), will return only legislated holidays. If true or 1, will return optional…","schema":{"type":"string","enum":["1","0","true","false"],"default":"false","description":"A boolean parameter (AB and BC only). If false or 0 (default), will return only legislated holidays. If true or 1, will return optional…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/open-data:canada-holidays-ca/spec":{"get":{"operationId":"open_data_canada_holidays_ca_spec","summary":"Get JSON schema","description":"GET /api/v1/spec","tags":["open-data"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}