botserver/swagger.json

54 lines
1.2 KiB
JSON
Raw Normal View History

{
"swagger": "2.0",
"info": {
"version": "3.0.0",
"title": "General Bots API",
"description": "General Bots API definitions.",
"contact": {
"name": "Pragmatismo",
"url": "https://generalbots.ai",
"email": "info@pragmatismo.io"
},
"x-ms-api-annotation": {
"status": "Production"
}
},
"host": "",
"basePath": "/",
"schemes": [
"https"
],
"consumes": [],
"produces": [],
"paths": {
"/api/v2//dialog/talk": {
"post": {
"requestBody":{
"content": "text/plain"
},
"summary": "Talk to the user.",
"description": "Talk to the user.",
"x-ms-no-generic-test": true,
"operationId": "talk",
"responses": {
"200": {
"description": "OK"
}
}
}
}
},
"definitions": {
"TalkRequest": {
"type": "object",
"properties": {
"pid": {
"type": "string"
},
"text": {
"type": "string"
}
}
}
}
}