@kui-shell/plugin-tutorials
Version:
IBM Cloud shell plugin for tutorials
43 lines (42 loc) • 1.12 kB
JSON
{
"name": "translation-demo",
"description": "Translates text using the try combinator",
"disabled": true,
"level": "Advanced",
"kind": "composition",
"api": {
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"payload"
],
"type": "object",
"properties": {
"payload": {
"type": "string",
"default": "bonjour",
"description": "The payload parameter is a string of text to translate"
}
},
"responses": {
"payload": {
"type": "string",
"description": "The translated text"
}
}
},
"choices": {
"Fun Translations": {
"instructions": "This example uses the Shakespeare API from Fun Translations. If you do not enter an API key, **the service rate limits usage** to 5 calls per day.",
"required": false,
"source": "http://funtranslations.com/api#shakespeare",
"registration": "http://funtranslations.com/register",
"input": [
{
"name": "ftApiKey",
"label": "API Key",
"required": false
}
]
}
}
}