Abbreviations (Independent Publisher) (#2879)
* Revert "Merge branch 'microsoft:dev' into dev" This reverts commit096a7c3199
, reversing changes made tocb0948670f
. * Revert "Merge branch 'microsoft:dev' into dev" This reverts commitcb0948670f
, reversing changes made todc26e8a026
. * Revert "Revert "Merge branch 'microsoft:dev' into dev"" This reverts commit01764d0a6d
. * Revert "Revert "Merge branch 'microsoft:dev' into dev"" This reverts commita3f086ef0f
. * Add files via upload * Revert "Add files via upload" This reverts commiteeff7b7a02
. * 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 commit1d85506958
. * Add files via upload
This commit is contained in:
Родитель
021e00a6a9
Коммит
8698bc7a36
|
@ -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.
|
Загрузка…
Ссылка в новой задаче