forked from microsoft/PowerPlatformConnectors
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapiDefinition.swagger.json
161 lines (161 loc) · 5.52 KB
/
apiDefinition.swagger.json
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
{
"swagger": "2.0",
"info": {
"title": "Abstract Holidays",
"contact": {
"name": "Fördős András",
"email": "fordosa90+ipc_abstrholi@gmail.com"
},
"description": "Abstract's Public Holidays is a fast, lightweight, modern solution that allows you to get the public, local, religious, and other holidays of a particular country.",
"version": "1.0"
},
"host": "holidays.abstractapi.com",
"basePath": "/",
"schemes": [
"https"
],
"consumes": [],
"produces": [],
"paths": {
"/v1/": {
"get": {
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the holiday.",
"title": "Name"
},
"name_local": {
"type": "string",
"description": "The local name of the holiday.",
"title": "Name local"
},
"language": {
"type": "string",
"description": "If the name_local is used, then this specifies the language in which it is in.",
"title": "Language"
},
"description": {
"type": "string",
"description": "A short description or additional details on the holiday, such as whether it is part of a long weekend.",
"title": "Description"
},
"country": {
"type": "string",
"description": "The country in which the holiday occurs, returned directly from the request.",
"title": "Country"
},
"location": {
"type": "string",
"description": "The location or region in which the holiday occurs, if the holiday is that specific.",
"title": "Location"
},
"type": {
"type": "string",
"description": "The type of holiday it is (e.g., public holiday, religious holiday, etc).",
"title": "Type"
},
"date": {
"type": "string",
"description": "The date on which the holiday occurs.",
"title": "Date"
},
"date_year": {
"type": "string",
"description": "The year in which the holiday occurs.",
"title": "Date year"
},
"date_month": {
"type": "string",
"description": "The month in which the holiday occurs.",
"title": "Date month"
},
"date_day": {
"type": "string",
"description": "The day in which the holiday occurs.",
"title": "Date day"
},
"week_day": {
"type": "string",
"description": "The day of the week on which the holiday occurs (Monday, Tuesday, Wednesday, etc.)",
"title": "Week day"
}
}
}
}
}
},
"summary": "List holidays",
"operationId": "ListHolidays",
"description": "List the public holidays for a specific country.",
"parameters": [
{
"name": "country",
"in": "query",
"required": true,
"type": "string",
"x-ms-summary": "Country",
"description": "The country\u2019s two letter ISO 3166-1 alpha-2 code (e.g., 'SE' for Sweden)."
},
{
"name": "year",
"in": "query",
"required": false,
"type": "string",
"description": "The year to get the holiday(s) from. Note that this is optional on paid plans and required on free plans.",
"x-ms-summary": "Year"
},
{
"name": "month",
"in": "query",
"required": false,
"type": "string",
"x-ms-summary": "Month",
"description": "The month to get the holiday(s) from, in the format of 1-12 (e.g., 1 is January, etc). Note that this is optional on paid plans and required on free plans."
},
{
"name": "day",
"in": "query",
"required": false,
"type": "string",
"description": "The day to get the holiday(s) from, in the format of 1-31. Note that this is optional on paid plans and required on free plans.",
"x-ms-summary": "Day"
}
]
}
}
},
"definitions": {},
"parameters": {},
"responses": {},
"securityDefinitions": {
"api_key": {
"type": "apiKey",
"in": "query",
"name": "api_key"
}
},
"security": [],
"tags": [],
"x-ms-connector-metadata": [
{
"propertyName": "Website",
"propertyValue": "https://docs.abstractapi.com/holidays"
},
{
"propertyName": "Privacy policy",
"propertyValue": "https://www.abstractapi.com/legal/dpa"
},
{
"propertyName": "Categories",
"propertyValue": "Data;Business Intelligence"
}
]
}