From 786fc7ea1c333178239121e352ea8dbbff85f308 Mon Sep 17 00:00:00 2001 From: rodrigorodriguez Date: Fri, 27 Jan 2023 15:36:42 -0300 Subject: [PATCH] new(basic.gblib): Swagger specification draft. --- swagger.json | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 swagger.json diff --git a/swagger.json b/swagger.json new file mode 100644 index 00000000..0499bef4 --- /dev/null +++ b/swagger.json @@ -0,0 +1,71 @@ +{ + "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": "generalbots.ai", + "basePath": "/", + "schemes": [ + "https" + ], + "consumes": [], + "produces": [], + "paths": { + "/api/talkTo": { + "post": { + "summary": "Talk to the user.", + "description": "Talk to the user.", + "x-ms-no-generic-test": true, + "operationId": "talkTo", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "content", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TalkRequest" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "deprecated": false + } + } + }, + "definitions": { + "TalkRequest": { + "type": "object", + "properties": { + "pid": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "text": { + "type": "string" + } + } + } + } + } \ No newline at end of file