{
    "swagger": "2.0",
    "info": {
        "description": "This is message service server",
        "title": "message service API",
        "contact": {},
        "version": "1.0"
    },
    "host": "127.0.0.1:8080",
    "basePath": "/api/v1/message",
    "paths": {
        "/orgs/{org_id}/projects/{project_id}/bot": {
            "post": {
                "description": "chat with bot",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "message"
                ],
                "summary": "chat with bot",
                "parameters": [
                    {
                        "type": "string",
                        "description": "org ID",
                        "name": "org_id",
                        "in": "path",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "project ID",
                        "name": "project_id",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "request_body",
                        "name": "request_body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/dto.InteractRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/dto.InteractResponse"
                        }
                    }
                }
            }
        }
    },
    "definitions": {
        "dto.InteractRequest": {
            "type": "object",
            "properties": {
                "bot_type": {
                    "type": "string"
                },
                "cluster_id": {
                    "type": "string"
                },
                "database": {
                    "type": "string"
                },
                "question": {
                    "type": "string"
                },
                "session_id": {
                    "type": "string"
                }
            }
        },
        "dto.InteractResponse": {
            "type": "object",
            "properties": {
                "code": {
                    "type": "integer"
                },
                "prompt": {
                    "type": "string"
                },
                "question": {
                    "type": "string"
                },
                "response": {
                    "type": "string"
                },
                "session_id": {
                    "type": "string"
                }
            }
        }
    }
}