{
    "openapi": "3.0.0",
    "info": {
        "title": "猜成语 - API文档",
        "version": "1.0.0",
        "description": "根据提示猜成语、返回字头拼音缩写、来源、出处、例句等。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/caichengyu\/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": {
                                        "abbr": {
                                            "type": "string",
                                            "example": "BZBJ",
                                            "description": "字头拼音缩写"
                                        },
                                        "study": {
                                            "type": "string",
                                            "example": "他的残忍和狠毒，时而～地在老人面前显露出来。（曹禺《王昭君》第二幕）",
                                            "description": "例句"
                                        },
                                        "answer": {
                                            "type": "string",
                                            "example": "不知不觉",
                                            "description": "答案"
                                        },
                                        "pinyin": {
                                            "type": "string",
                                            "example": "bù zhī bù jué",
                                            "description": "完整拼音含音标"
                                        },
                                        "source": {
                                            "type": "string",
                                            "example": "明·赵弼《两教辨》：“遂使昏愚之徒，听其妖诞，舍正从邪，醉生梦死，不知不觉。尧舜三代以前，未闻有此教。",
                                            "description": "出处"
                                        },
                                        "question": {
                                            "type": "string",
                                            "example": "没有意识到，没有觉察到。现多指未加注意。",
                                            "description": "问题"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "abbr": "BZBJ",
                                        "study": "他的残忍和狠毒，时而～地在老人面前显露出来。（曹禺《王昭君》第二幕）",
                                        "answer": "不知不觉",
                                        "pinyin": "bù zhī bù jué",
                                        "source": "明·赵弼《两教辨》：“遂使昏愚之徒，听其妖诞，舍正从邪，醉生梦死，不知不觉。尧舜三代以前，未闻有此教。”",
                                        "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": {
                                        "abbr": {
                                            "type": "string",
                                            "example": "BZBJ",
                                            "description": "字头拼音缩写"
                                        },
                                        "study": {
                                            "type": "string",
                                            "example": "他的残忍和狠毒，时而～地在老人面前显露出来。（曹禺《王昭君》第二幕）",
                                            "description": "例句"
                                        },
                                        "answer": {
                                            "type": "string",
                                            "example": "不知不觉",
                                            "description": "答案"
                                        },
                                        "pinyin": {
                                            "type": "string",
                                            "example": "bù zhī bù jué",
                                            "description": "完整拼音含音标"
                                        },
                                        "source": {
                                            "type": "string",
                                            "example": "明·赵弼《两教辨》：“遂使昏愚之徒，听其妖诞，舍正从邪，醉生梦死，不知不觉。尧舜三代以前，未闻有此教。",
                                            "description": "出处"
                                        },
                                        "question": {
                                            "type": "string",
                                            "example": "没有意识到，没有觉察到。现多指未加注意。",
                                            "description": "问题"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "abbr": "BZBJ",
                                        "study": "他的残忍和狠毒，时而～地在老人面前显露出来。（曹禺《王昭君》第二幕）",
                                        "answer": "不知不觉",
                                        "pinyin": "bù zhī bù jué",
                                        "source": "明·赵弼《两教辨》：“遂使昏愚之徒，听其妖诞，舍正从邪，醉生梦死，不知不觉。尧舜三代以前，未闻有此教。”",
                                        "question": "没有意识到，没有觉察到。现多指未加注意。"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}