Abbreviations (Independent Publisher) (#2879)

* Revert "Merge branch 'microsoft:dev' into dev"

This reverts commit 096a7c3199, reversing
changes made to cb0948670f.

* Revert "Merge branch 'microsoft:dev' into dev"

This reverts commit cb0948670f, reversing
changes made to dc26e8a026.

* Revert "Revert "Merge branch 'microsoft:dev' into dev""

This reverts commit 01764d0a6d.

* Revert "Revert "Merge branch 'microsoft:dev' into dev""

This reverts commit a3f086ef0f.

* Add files via upload

* Revert "Add files via upload"

This reverts commit eeff7b7a02.

* Add files via upload

* Delete independent-publisher-connectors/FileIO directory

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Revert "Add files via upload"

This reverts commit 1d85506958.

* Add files via upload
This commit is contained in:
Troy Taylor 2023-10-25 07:26:07 -04:00 коммит произвёл GitHub
Родитель 021e00a6a9
Коммит 8698bc7a36
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 258 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,191 @@
{
"swagger": "2.0",
"info": {
"title": "Abbreviations",
"description": "The Abbreviations service from STANDS4 enables you to get classified acronyms and abbreviations content for a given term.",
"version": "1.0",
"contact": {
"name": "Troy Taylor",
"url": "https://www.hitachisolutions.com",
"email": "ttaylor@hitachisolutions.com"
}
},
"host": "www.stands4.com",
"basePath": "/services/v2/",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/abbr.php": {
"get": {
"responses": {
"200": {
"description": "default",
"schema": {
"type": "object",
"properties": {
"result": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The identifier.",
"title": "ID"
},
"term": {
"type": "string",
"description": "The term.",
"title": "Term"
},
"definition": {
"type": "string",
"description": "The definition.",
"title": "Definition"
},
"category": {
"type": "string",
"description": "The category.",
"title": "Category"
},
"categoryname": {
"type": "string",
"description": "The category name.",
"title": "Category Name"
},
"score": {
"type": "string",
"description": "The score.",
"title": "Score"
}
}
},
"title": "Result"
}
}
}
}
},
"summary": "Get acronym or abbreviation",
"description": "Retrieve a list of possible terms and their definitions.",
"operationId": "AbbrGet",
"parameters": [
{
"name": "term",
"in": "query",
"x-ms-summary": "Term",
"description": "The search term.",
"required": true,
"type": "string"
},
{
"name": "categoryid",
"in": "query",
"x-ms-summary": "Category ID",
"description": "The category identifier.",
"required": false,
"type": "string"
},
{
"name": "sortby",
"in": "query",
"x-ms-summary": "Sort By",
"description": "The sort by.",
"required": false,
"type": "string",
"default": "p",
"enum": [
"p",
"a",
"c"
],
"x-ms-enum-values": [
{
"displayName": "Popularity",
"value": "p"
},
{
"displayName": "Alphabetically",
"value": "a"
},
{
"displayName": "Category",
"value": "c"
}
]
},
{
"name": "searchtype",
"in": "query",
"x-ms-summary": "Search Type",
"description": "The search type.",
"required": false,
"type": "string",
"default": "e",
"enum": [
"e",
"r"
],
"x-ms-enum-values": [
{
"displayName": "Exact Match",
"value": "e"
},
{
"displayName": "Reverse Lookup",
"value": "r"
}
]
},
{
"name": "format",
"in": "query",
"x-ms-summary": "Format",
"description": "The format.",
"required": true,
"type": "string",
"default": "json",
"x-ms-visibility": "internal"
}
]
}
}
},
"definitions": {},
"parameters": {},
"responses": {},
"securityDefinitions": {
"API Key": {
"type": "apiKey",
"in": "query",
"name": "uid"
}
},
"security": [
{
"API Key": []
}
],
"tags": [],
"x-ms-connector-metadata": [
{
"propertyName": "Website",
"propertyValue": "https://www.abbreviations.com/"
},
{
"propertyName": "Privacy policy",
"propertyValue": "https://www.abbreviations.com/privacy.php"
},
{
"propertyName": "Categories",
"propertyValue": "Business Intelligence"
}
]
}

Просмотреть файл

@ -0,0 +1,50 @@
{
"properties": {
"connectionParameters": {
"api_key": {
"type": "securestring",
"uiDefinition": {
"displayName": "API User ID",
"description": "The API User ID for this API.",
"tooltip": "Provide your API User ID",
"constraints": {
"tabIndex": 2,
"clearText": false,
"required": "true"
}
}
},
"api_token": {
"type": "securestring",
"uiDefinition": {
"displayName": "API Token",
"description": "The API token for this API.",
"tooltip": "Provide your API token",
"constraints": {
"tabIndex": 2,
"clearText": false,
"required": "true"
}
}
}
},
"iconBrandColor": "#da3b01",
"capabilities": [],
"policyTemplateInstances": [
{
"templateId": "setqueryparameter",
"title": "Add token",
"parameters": {
"x-ms-apimTemplateParameter.name": "tokenid",
"x-ms-apimTemplateParameter.value": "@connectionParameters('api_token')",
"x-ms-apimTemplateParameter.existsAction": "override",
"x-ms-apimTemplate-operationName": [
"AbbrGet"
]
}
}
],
"publisher": "Troy Taylor",
"stackOwner": "STANDS4 LLC"
}
}

Просмотреть файл

@ -0,0 +1,17 @@
# Abbreviations
The Abbreviations service from STANDS4 enables you to get classified acronyms and abbreviations content for a given term.
## Publisher: Troy Taylor, Hitachi Solutions
## Prerequisites
There are no prerequisites needed for this service.
## Obtaining Credentials
You will need to sign up for API user ID and token on the [Abbreviations site](https://www.abbreviations.com/api.php).
## Supported Operations
### Get acronym or abbreviation
Retrieve a list of possible terms and their definitions.
## Known Issues and Limitations
There are no known issues at this time.