{
    "openapi": "3.0.0",
    "info": {
        "title": "判断题 - API文档",
        "version": "1.0.0",
        "description": "日常生活常识判断题接口，判断对错和分析结果。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/decide\/index": {
            "get": {
                "summary": "判断题查询",
                "tags": [
                    "判断题"
                ],
                "description": "默认随机返回题库判断题带选项和正确答案",
                "parameters": [
                    {
                        "name": "key",
                        "in": "query",
                        "description": "API密钥",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "description": "API密钥"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "title": {
                                            "type": "string",
                                            "example": "程咬金是我国宋代的开国名将",
                                            "description": "标题"
                                        },
                                        "answer": {
                                            "type": "int",
                                            "example": 0,
                                            "description": "答案，0错误、1正确"
                                        },
                                        "analyse": {
                                            "type": "string",
                                            "example": "唐代",
                                            "description": "分析结果"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "title": "程咬金是我国宋代的开国名将",
                                        "answer": 0,
                                        "analyse": "唐代"
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "判断题查询",
                "tags": [
                    "判断题"
                ],
                "description": "默认随机返回题库判断题带选项和正确答案",
                "requestBody": {
                    "content": {
                        "application\/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "key": {
                                        "type": "string",
                                        "description": "API密钥"
                                    }
                                },
                                "required": [
                                    "key"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "title": {
                                            "type": "string",
                                            "example": "程咬金是我国宋代的开国名将",
                                            "description": "标题"
                                        },
                                        "answer": {
                                            "type": "int",
                                            "example": 0,
                                            "description": "答案，0错误、1正确"
                                        },
                                        "analyse": {
                                            "type": "string",
                                            "example": "唐代",
                                            "description": "分析结果"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "title": "程咬金是我国宋代的开国名将",
                                        "answer": 0,
                                        "analyse": "唐代"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}