Extended Vacation Dates Assistant
Extended Vacation Dates Assistant · GPT 작업
Public Holidays API
API for retrieving public holidays for a specific year and country.
GET /PublicHolidays/{year}/{countryCode}Get public holidays for a specific year and country
원본 API 스키마
{
"openapi": "3.0.0",
"info": {
"title": "Public Holidays API",
"version": "1.0.0",
"description": "API for retrieving public holidays for a specific year and country."
},
"servers": [
{
"url": "https://date.nager.at/api/v3"
}
],
"paths": {
"/PublicHolidays/{year}/{countryCode}": {
"get": {
"operationId": "getPublicHolidays",
"summary": "Get public holidays for a specific year and country",
"parameters": [
{
"in": "path",
"name": "year",
"required": true,
"schema": {
"type": "string"
},
"description": "The year for which to retrieve public holidays."
},
{
"in": "path",
"name": "countryCode",
"required": true,
"schema": {
"type": "string"
},
"description": "The ISO country code for which to retrieve public holidays."
}
],
"responses": {
"200": {
"description": "A list of public holidays",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PublicHoliday"
}
}
}
}
},
"404": {
"description": "Not found"
}
}
}
}
},
"components": {
"schemas": {
"PublicHoliday": {
"type": "object",
"properties": {
"date": {
"type": "string",
"format": "date",
"description": "The date of the public holiday."
},
"localName": {
"type": "string",
"description": "The local name of the public holiday."
},
"name": {
"type": "string",
"description": "The English name of the public holiday."
},
"countryCode": {
"type": "string",
"description": "The ISO country code."
},
"fixed": {
"type": "boolean",
"description": "Indicates if the holiday is fixed or varies each year."
},
"global": {
"type": "boolean",
"description": "Indicates if the holiday is globally recognized."
},
"counties": {
"type": "array",
"items": {
"type": "string"
},
"description": "The counties within the country where the holiday is observed."
},
"launchYear": {
"type": "integer",
"format": "int32",
"description": "The year when the holiday was first observed."
},
"types": {
"type": "array",
"items": {
"type": "string"
},
"description": "The types of the holiday."
}
}
}
}
}
}