Holiday Years
The holiday years resource.
Basehttps://rest.carbon.ms/holidayYears
GET
/holidayYearsList holiday yearss
Retrieve a paginated list of holiday yearss. Filter, order, and select columns with PostgREST query parameters.
Query parameters
selectstringComma-separated columns to return. Defaults to all.
orderstringColumn to sort by, e.g. `createdAt.desc`.
limitintegerMaximum rows to return.
offsetintegerRows to skip, for pagination.
GEThttps://rest.carbon.ms/holidayYears
curl --request GET \
--url 'https://rest.carbon.ms/holidayYears?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'Response
[
{
"year": 0,
"companyId": "xyz789"
}
]GET
/holidayYearsRetrieve a holiday years
Fetch a single holiday years by filtering on `year`.
Query parameters
yearstringMatch on the holiday years's `year`, e.g. `eq.{id}`.
GEThttps://rest.carbon.ms/holidayYears
curl --request GET \
--url 'https://rest.carbon.ms/holidayYears?year=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'Response
{
"year": 0,
"companyId": "xyz789"
}