Holiday Years

The holiday years resource.

Basehttps://rest.carbon.ms/holidayYears
GET/holidayYears

List holiday yearss

Retrieve a paginated list of holiday yearss. Filter, order, and select columns with PostgREST query parameters.

Query parameters

selectstring

Comma-separated columns to return. Defaults to all.

orderstring

Column to sort by, e.g. `createdAt.desc`.

limitinteger

Maximum rows to return.

offsetinteger

Rows 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/holidayYears

Retrieve a holiday years

Fetch a single holiday years by filtering on `year`.

Query parameters

yearstring

Match 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"
}