Skip to content

Commit

Permalink
Uk government bank holidays ipc (microsoft#906)
Browse files Browse the repository at this point in the history
* 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
martynlesbirel and Martyn Lesbirel authored Jul 19, 2021
1 parent 6bbf889 commit 6f7eddf
Show file tree
Hide file tree
Showing 3 changed files with 125 additions and 0 deletions.
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.
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": []
}
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"
}
}

0 comments on commit 6f7eddf

Please sign in to comment.