{
  "openapi": "3.0.3",
  "info": {
    "title": "图灵机器人",
    "description": "兼容原图灵机器人会员接口，您只需创建自己的数据源便可调用，参数我们进行了最大程度的兼容",
    "termsOfService": "https://www.showapi.com/helpcenter/view#/4019/2",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://route.showapi.com"
    }
  ],
  "paths": {
    "/2623-2": {
      "x-pointCode": 2,
      "x-mode": "mapping",
      "x-read-timeout": 10,
      "x-connect-timeout": 10,
      "post": {
        "summary": "原版",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ShowapiResEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "showapi_res_body": {
                          "type": "object",
                          "properties": {},
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "2623_2_POST",
        "parameters": [
          {
            "name": "ds_id",
            "in": "query",
            "description": "您的数据源id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "userid",
            "in": "query",
            "description": "客户端id，用于图灵机器人区分客户端",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "info",
            "in": "query",
            "description": "要发送给图灵机器人的文本内容",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "reqType",
            "in": "query",
            "description": "请求类型",
            "required": false,
            "schema": {
              "type": "number"
            }
          }
        ]
      }
    },
    "/2623-1": {
      "x-pointCode": 1,
      "x-mode": "mapping",
      "x-read-timeout": 10,
      "x-connect-timeout": 10,
      "post": {
        "summary": "兼容版",
        "description": "对原来的图灵机器人会员接口兼容，您在图灵机器人官网购买资源包，并在数据源管理中创建数据源便可调用",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ShowapiResEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "showapi_res_body": {
                          "type": "object",
                          "properties": {
                            "ret_code": {
                              "type": "number",
                              "description": "0表示调用成功"
                            },
                            "text": {
                              "type": "string",
                              "description": "图灵机器人的回复"
                            },
                            "code": {
                              "type": "number",
                              "description": "图灵机器人的错误码"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "2623_1_POST",
        "parameters": [
          {
            "name": "ds_id",
            "in": "query",
            "description": "您的数据源id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "userid",
            "in": "query",
            "description": "客户端唯一识别码，用于机器人区分客户端。",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "info",
            "in": "query",
            "description": "您要发送的内容",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "AppKeyAuth": {
        "type": "apiKey",
        "in": "query",
        "name": "appKey",
        "description": "从 ShowAPI 控制台获取的 appKey，管理地址：https://www.showapi.com/console#/myApp"
      }
    },
    "schemas": {
      "ShowapiResEnvelope": {
        "type": "object",
        "description": "ShowAPI 统一返回包裹（业务数据位于 showapi_res_body）",
        "properties": {
          "showapi_res_code": {
            "type": "integer",
            "description": "API 返回的状态码"
          },
          "showapi_res_error": {
            "type": "string",
            "description": "API 返回的错误信息"
          },
          "showapi_res_id": {
            "type": "string",
            "description": "API 请求的唯一标识"
          },
          "showapi_fee_num": {
            "type": "integer",
            "description": "API 调用计费次数"
          }
        }
      }
    }
  },
  "security": [
    {
      "AppKeyAuth": []
    }
  ],
  "externalDocs": {
    "url": "https://www.showapi.com/apiGateway/view/2623?tab=book"
  },
  "x-apiCode": "2623",
  "x-is-own": false,
  "x-is-op": true
}