Skip to content

Commit

Permalink
Shields.io (Independent Publisher) (microsoft#1330)
Browse files Browse the repository at this point in the history
* certify-connector

HubSpot CRM, CMS, and Marketing connectors

* certify-connector

Xero Accounting and Payroll connectors

* Revert "certify-connector"

This reverts commit 5fb06db.

* Revert "certify-connector"

This reverts commit 160b208.

* certify-connector

* certify-connector

* certify-connector

* Update apiDefinition.swagger.json

Fixed description

* Update apiDefinition.swagger.json

Cut to below 500

* Update apiDefinition.swagger.json

Cut to below 500.

* Delete icon.png

* Delete settings.json

* Update apiDefinition.swagger.json

* Delete independent-publisher-connectors/HubSpot CMS directory

* Delete independent-publisher-connectors/HubSpot CRM directory

* Delete independent-publisher-connectors/HubSpot Marketing directory

* Delete independent-publisher-connectors/Xero Accounting directory

* Delete independent-publisher-connectors/Xero Payroll - UK directory

* Delete independent-publisher-connectors/Xero Projects directory

* Include iconBrandColor #da3b01 for IP

* Include iconBrandColor #da3b01 in best practices

* Rename README.template.md to readme.md

* Add templates for IP

* Fix typo

* Add files via upload

* Delete Google Cloud Translation directory

* Add files via upload

* Update apiDefinition.swagger.json
  • Loading branch information
troystaylor authored and hildenjohannes committed Mar 28, 2022
1 parent efdfd06 commit a025f16
Show file tree
Hide file tree
Showing 3 changed files with 196 additions and 0 deletions.
168 changes: 168 additions & 0 deletions independent-publisher-connectors/ShieldsIO/apiDefinition.swagger.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
{
"swagger": "2.0",
"info": {
"title": "Shields.io",
"description": "Shields.io is a service for concise, consistent, and legible badges in SVG and raster format, which can easily be included in GitHub readmes or any other web page. The service supports dozens of continuous integration services, package registries, distributions, app stores, social networks, code coverage services, and code analysis services.",
"version": "1.0",
"contact": {
"name": "Troy Taylor",
"url": "https://www.hitachisolutions.com",
"email": "ttaylor@hitachisolutions.com"
}
},
"host": "img.shields.io",
"basePath": "/",
"schemes": [
"https"
],
"consumes": [],
"produces": [],
"paths": {
"/static/v1": {
"get": {
"responses": {
"200": {
"description": "default",
"schema": {
"type": "object",
"properties": {}
}
}
},
"summary": "Create a static badge",
"description": "Create a static badge using defined parameters.",
"operationId": "BadgeCreate",
"parameters": [
{
"name": "label",
"in": "query",
"required": false,
"type": "string",
"description": "Override the default left-hand-side text.",
"x-ms-summary": "Label"
},
{
"name": "labelColor",
"in": "query",
"required": false,
"type": "string",
"description": "Set the color of the logo (hex, rgb, rgba, hsl, hsla and css named colors supported). Supported for named logos but not for custom logos.",
"x-ms-summary": "Label Color"
},
{
"name": "message",
"in": "query",
"required": false,
"type": "string",
"description": "Override the default right-hand-side text",
"x-ms-summary": "Message"
},
{
"name": "color",
"in": "query",
"required": false,
"type": "string",
"description": "Set background of the right part (hex, rgb, rgba, hsl, hsla and css named colors supported). The legacy name \"colorB\" is also supported.",
"x-ms-summary": "Color"
},
{
"name": "style",
"in": "query",
"required": false,
"type": "string",
"description": "The style of the badge. Flat is the default.",
"x-ms-summary": "Style"
},
{
"name": "logo",
"in": "query",
"required": false,
"type": "string",
"description": "Used for either a named logo or a custom logo image (> 14px high). Insert one of the named logos from (bitcoin, dependabot, gitlab, npm, paypal, serverfault, stackexchange, superuser, telegram, travis) or simple-icons. For custom logos, there is a limit on the total size of request headers we can accept (8192 bytes). From a practical perspective, this means the base64-encoded image text is limited to somewhere slightly under 8192 bytes depending on the rest of the request header.",
"x-ms-summary": "Logo"
},
{
"name": "logoColor",
"in": "query",
"required": false,
"type": "string",
"description": "Set the color of the logo (hex, rgb, rgba, hsl, hsla and css named colors supported). Supported for named logos but not for custom logos.",
"x-ms-summary": "Logo Color"
},
{
"name": "logoWidth",
"in": "query",
"required": false,
"type": "integer",
"description": "Set the horizontal space to give to the logo",
"x-ms-summary": "Logo Width"
},
{
"name": "link",
"in": "query",
"required": false,
"type": "string",
"description": "Specify what clicking on the left/right of a badge should do. Note that this only works when integrating your badge in an<object> HTML tag, but not an<img> tag or a markup language.",
"x-ms-summary": "Link"
},
{
"name": "cacheSeconds",
"in": "query",
"required": false,
"type": "integer",
"default": 3600,
"description": "Set the HTTP cache lifetime (rules are applied to infer a default value on a per-badge basis, any values specified below the default will be ignored). The legacy name \"maxAge\" is also supported.",
"x-ms-summary": "Cache Seconds"
}
]
}
},
"/{parameters}": {
"get": {
"responses": {
"200": {
"description": "default",
"schema": {
"type": "object",
"properties": {}
}
}
},
"summary": "Get a pre-configured badge",
"description": "Get a pre-configured badge. All badges are sorted by category at https://shields.io/",
"operationId": "BadgeGet",
"parameters": [
{
"name": "parameters",
"in": "path",
"x-ms-summary": "Parameters",
"description": "The badge parameters, e.g. github/last-commit/troystaylor/PowerPlatformConnectors. Please note that the first forward slash must be omitted from the example.",
"required": true,
"type": "string",
"x-ms-url-encoding": "single"
}
]
}
}
},
"definitions": {},
"parameters": {},
"responses": {},
"securityDefinitions": {},
"security": [],
"tags": [],
"x-ms-connector-metadata": [
{
"propertyName": "Website",
"propertyValue": "https://shields.io/"
},
{
"propertyName": "Privacy policy",
"propertyValue": "https://shields.io/"
},
{
"propertyName": "Categories",
"propertyValue": "Social Media;Website"
}
]
}
9 changes: 9 additions & 0 deletions independent-publisher-connectors/ShieldsIO/apiProperties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"properties": {
"connectionParameters": {},
"iconBrandColor": "#da3b01",
"capabilities": [],
"publisher": "Troy Taylor, Hitachi Solutions",
"stackOwner": "Shields.io"
}
}
19 changes: 19 additions & 0 deletions independent-publisher-connectors/ShieldsIO/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Shields.io
Shields.io is a service for concise, consistent, and legible badges in SVG and raster format, which can easily be included in GitHub readmes or any other web page. The service supports dozens of continuous integration services, package registries, distributions, app stores, social networks, code coverage services, and code analysis services.

## Publisher: Troy Taylor, Hitachi Solutions

## Prerequisites
There are no prequisites for this connector.

## Obtaining Credentials
There are no credentials needed for this connector.

## Supported Operations
### Create a static badge
Create a static badge using defined parameters.
### Get a pre-configured badge
Get a pre-configured badge. All badges are sorted by category at <https://shields.io/>

## Known Issues and Limitations
There are no known issues at this time.

0 comments on commit a025f16

Please sign in to comment.