{
    "openapi": "3.0.0",
    "info": {
        "title": "百科题库 - API文档",
        "version": "1.0.0",
        "description": "生活百科题库大全接口，部分结果返回详细解释。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/baiketiku\/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": "string",
                                            "example": "C",
                                            "description": "正确答案"
                                        },
                                        "answerA": {
                                            "type": "string",
                                            "example": "1-2天",
                                            "description": "答案A"
                                        },
                                        "answerB": {
                                            "type": "string",
                                            "example": "3-7天",
                                            "description": "答案B"
                                        },
                                        "answerC": {
                                            "type": "string",
                                            "example": "14天",
                                            "description": "答案C"
                                        },
                                        "answerD": {
                                            "type": "string",
                                            "example": "28天",
                                            "description": "答案D"
                                        },
                                        "analytic": {
                                            "type": "string",
                                            "example": "新型冠状病毒感染性肺炎属于呼吸道传播性疾病...",
                                            "description": "分析结果"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "title": "新冠肺炎的最长潜伏期一般是多久？",
                                        "answer": "C",
                                        "answerA": "1-2天",
                                        "answerB": "3-7天",
                                        "answerC": "14天",
                                        "answerD": "28天",
                                        "analytic": "新型冠状病毒感染性肺炎属于呼吸道传播性疾病，该病一般最常见的传播途径有飞沫传播，气溶胶传播，粪口传播及眼部粘膜传播，潜伏期一般为3-5天，最长不超过14天左右，也有因人而异，超过以上天数。或许以无症状感染者，不发病。该病确诊有赖于核酸病毒检测，同时做好多饮水，勤洗手，出门戴口罩，避免人群聚集，导致交叉感染。"
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "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": "string",
                                            "example": "C",
                                            "description": "正确答案"
                                        },
                                        "answerA": {
                                            "type": "string",
                                            "example": "1-2天",
                                            "description": "答案A"
                                        },
                                        "answerB": {
                                            "type": "string",
                                            "example": "3-7天",
                                            "description": "答案B"
                                        },
                                        "answerC": {
                                            "type": "string",
                                            "example": "14天",
                                            "description": "答案C"
                                        },
                                        "answerD": {
                                            "type": "string",
                                            "example": "28天",
                                            "description": "答案D"
                                        },
                                        "analytic": {
                                            "type": "string",
                                            "example": "新型冠状病毒感染性肺炎属于呼吸道传播性疾病...",
                                            "description": "分析结果"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "title": "新冠肺炎的最长潜伏期一般是多久？",
                                        "answer": "C",
                                        "answerA": "1-2天",
                                        "answerB": "3-7天",
                                        "answerC": "14天",
                                        "answerD": "28天",
                                        "analytic": "新型冠状病毒感染性肺炎属于呼吸道传播性疾病，该病一般最常见的传播途径有飞沫传播，气溶胶传播，粪口传播及眼部粘膜传播，潜伏期一般为3-5天，最长不超过14天左右，也有因人而异，超过以上天数。或许以无症状感染者，不发病。该病确诊有赖于核酸病毒检测，同时做好多饮水，勤洗手，出门戴口罩，避免人群聚集，导致交叉感染。"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}