forked from microsoft/PowerPlatformConnectors
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Uk government bank holidays ipc (microsoft#906)
* Initial commit * UK Care Quality Comission Connector initial commit * CQC & Bank Holiday files updated after requests * CQC stackowner added * Revert "CQC stackowner added" This reverts commit 43e326c. * Revert "Revert "CQC stackowner added"" This reverts commit 4810eb0. * Delete CQC-Connector.swagger.json * Delete README.md * Delete apiProperties.json * Website removal requested * Forgot a comma 😊 Co-authored-by: Martyn Lesbirel <martynlesbirel@fourwindsbar.org.uk>
- Loading branch information
1 parent
6bbf889
commit 6f7eddf
Showing
3 changed files
with
125 additions
and
0 deletions.
There are no files selected for viewing
61 changes: 61 additions & 0 deletions
61
independent-publisher-connectors/U.K. Government Bank Holidays/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# U.K. Government Bank Holidays | ||
This connector presents the UK Goverment's Bank Holidays list in JSON format | ||
|
||
## Publisher: Martyn Lesbirel | ||
|
||
## Prerequisites: | ||
There are no prerequisities for this connector | ||
|
||
## Supported Operations | ||
There are no individual operations using the connector itself provides the list of Bank Holidays. | ||
|
||
## Obtaining Credentials | ||
Credentials are not requied for this conenctor. | ||
|
||
## Getting Started | ||
Just adding the connector to your flow provides access to the holidays. | ||
|
||
**Note** | ||
No compose is used on the output of the connector. For example to get the count of each kingdom's holidays a string varaiable can be initalised. The count is obtained by reffering to the connector output body. | ||
|
||
For example to count the Scotish Bank Holiday the instruction is | ||
|
||
`length(outputs('All_holidays_for_all_kingdoms')?['body']['scotland']['events'])` | ||
|
||
This can in turn be converted to an integer value if required. | ||
|
||
The very highest level of the response refers to all the kingdoms. | ||
|
||
``` | ||
{ | ||
"england-and-wales": {}, | ||
"scotland": {}, | ||
"northern-ireland": {} | ||
} | ||
``` | ||
|
||
When expanded each has the same format. | ||
|
||
``` | ||
"scotland": { | ||
"division": "scotland", | ||
"events": [] | ||
}, | ||
``` | ||
|
||
A division (kingdom) name and an event array. Each event is a Bank Holiday record and contains the following details. | ||
|
||
``` | ||
{ | ||
"title": "St Andrew’s Day", | ||
"date": "2019-12-02", | ||
"notes": "Substitute day", | ||
"bunting": true | ||
}, | ||
``` | ||
|
||
Each attribute should be self explanatory. | ||
|
||
|
||
## Known Issues and Limitations | ||
Beaware the list extends only a few years into the past and future if you are looking for Bank Holidays of say a decade ago this connector will not help. |
55 changes: 55 additions & 0 deletions
55
independent-publisher-connectors/U.K. Government Bank Holidays/UK-Bank-Holidays.swagger.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"title": "UK Bank Holidays", | ||
"description": "A JSON object containing the bank holidays of the four kingdoms of the United Kingdom supplied by H.M. Government", | ||
"version": "1.0", | ||
"contact": { | ||
"name": "Martyn Lesbirel", | ||
"email": "ipc-author-bh@outlook.com" | ||
} | ||
}, | ||
"host": "www.gov.uk", | ||
"schemes": [ | ||
"https" | ||
], | ||
"consumes": [], | ||
"produces": [], | ||
"paths": { | ||
"/bank-holidays.json": { | ||
"get": { | ||
"responses": { | ||
"default": { | ||
"description": "default", | ||
"schema": {} | ||
} | ||
}, | ||
"summary": "All holidays for all kingdoms", | ||
"description": "All bank holidays for all kingdoms as defined the Government", | ||
"operationId": "AllKingdomHolidays", | ||
"x-ms-visibility": "important", | ||
"parameters": [] | ||
} | ||
} | ||
}, | ||
"x-ms-connector-metadata": [ | ||
{ | ||
"propertyName": "WebSite", | ||
"propertyValue": "https://www.gov.uk/bank-holidays" | ||
}, | ||
{ | ||
"propertyName": "Privacy policy", | ||
"propertyValue": "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" | ||
}, | ||
{ | ||
"propertyName": "Categories", | ||
"propertyValue": "Data;Productivity" | ||
} | ||
], | ||
"definitions": {}, | ||
"parameters": {}, | ||
"responses": {}, | ||
"securityDefinitions": {}, | ||
"security": [], | ||
"tags": [] | ||
} |
9 changes: 9 additions & 0 deletions
9
independent-publisher-connectors/U.K. Government Bank Holidays/apiProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"properties": { | ||
"connectionParameters": {}, | ||
"iconBrandColor": "#000000", | ||
"capabilities": [], | ||
"publisher": "Martyn Lesbirel", | ||
"stackOwner": "United Kingdom Government" | ||
} | ||
} |