{
    "openapi": "3.0.0",
    "info": {
        "title": "诗词问答 - API文档",
        "version": "1.0.0",
        "description": "中国古代最长的抒情诗是以下哪个作品？答案是《离骚》。随机返回古诗词中的知识点，返回数据字段中包含三个选项、正确答案以及问题解析。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/scwd\/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": {
                                        "answer": {
                                            "type": "string",
                                            "example": "B",
                                            "description": "正确答案"
                                        },
                                        "analytic": {
                                            "type": "string",
                                            "example": "《从军行》，是杨炯边塞诗的代表作...",
                                            "description": "答案解析"
                                        },
                                        "answer_a": {
                                            "type": "string",
                                            "example": "宋之问",
                                            "description": "答案A"
                                        },
                                        "answer_b": {
                                            "type": "string",
                                            "example": "杨炯",
                                            "description": "答案B"
                                        },
                                        "answer_c": {
                                            "type": "string",
                                            "example": "沈佺期",
                                            "description": "答案C"
                                        },
                                        "question": {
                                            "type": "string",
                                            "example": "初唐哪一位诗人写下“宁为百夫长...",
                                            "description": "问题"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "answer": "B",
                                        "analytic": "《从军行》，是杨炯边塞诗的代表作。原诗为：“烽火照西京，心中自不平。牙璋辞凤阙，铁骑绕龙城。雪暗凋旗画，风多杂鼓声。宁为百夫长，胜作一书生。”",
                                        "answer_a": "宋之问",
                                        "answer_b": "杨炯",
                                        "answer_c": "沈佺期",
                                        "question": "初唐哪一位诗人写下“宁为百夫长，胜作一书生”的豪言壮语，抒发了希望投笔从戎、保家卫国的壮志豪情？"
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "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": {
                                        "answer": {
                                            "type": "string",
                                            "example": "B",
                                            "description": "正确答案"
                                        },
                                        "analytic": {
                                            "type": "string",
                                            "example": "《从军行》，是杨炯边塞诗的代表作...",
                                            "description": "答案解析"
                                        },
                                        "answer_a": {
                                            "type": "string",
                                            "example": "宋之问",
                                            "description": "答案A"
                                        },
                                        "answer_b": {
                                            "type": "string",
                                            "example": "杨炯",
                                            "description": "答案B"
                                        },
                                        "answer_c": {
                                            "type": "string",
                                            "example": "沈佺期",
                                            "description": "答案C"
                                        },
                                        "question": {
                                            "type": "string",
                                            "example": "初唐哪一位诗人写下“宁为百夫长...",
                                            "description": "问题"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "answer": "B",
                                        "analytic": "《从军行》，是杨炯边塞诗的代表作。原诗为：“烽火照西京，心中自不平。牙璋辞凤阙，铁骑绕龙城。雪暗凋旗画，风多杂鼓声。宁为百夫长，胜作一书生。”",
                                        "answer_a": "宋之问",
                                        "answer_b": "杨炯",
                                        "answer_c": "沈佺期",
                                        "question": "初唐哪一位诗人写下“宁为百夫长，胜作一书生”的豪言壮语，抒发了希望投笔从戎、保家卫国的壮志豪情？"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}