{
    "openapi": "3.0.0",
    "info": {
        "title": "猜灯谜 - API文档",
        "version": "1.0.0",
        "description": "趣味猜灯谜接口"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/caizimi\/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": {
                                        "type": {
                                            "type": "string",
                                            "example": "打一动物",
                                            "description": "分类"
                                        },
                                        "answer": {
                                            "type": "string",
                                            "example": "梅花鹿",
                                            "description": "谜底"
                                        },
                                        "riddle": {
                                            "type": "string",
                                            "example": "头上长树杈，身上有白花，四腿跑得快，生长在山野。",
                                            "description": "谜语"
                                        },
                                        "disturb": {
                                            "type": "string",
                                            "example": "黄水牛山羊羚驴子马骆驼长颈犀大象奶娟珊鲁西",
                                            "description": "干扰项"
                                        },
                                        "description": {
                                            "type": "string",
                                            "example": "梅花鹿，有着像树枝的鹿角，跳跃能力很强，尤其善长攀登陡坡，那连续大跨度的跳跃，速度轻快敏捷。",
                                            "description": "详细描述"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "type": "打一动物",
                                        "answer": "梅花鹿",
                                        "riddle": "头上长树杈，身上有白花，四腿跑得快，生长在山野。",
                                        "disturb": "黄水牛山羊羚驴子马骆驼长颈犀大象奶娟珊鲁西",
                                        "description": "梅花鹿，有着像树枝的鹿角，跳跃能力很强，尤其善长攀登陡坡，那连续大跨度的跳跃，速度轻快敏捷。"
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "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": {
                                        "type": {
                                            "type": "string",
                                            "example": "打一动物",
                                            "description": "分类"
                                        },
                                        "answer": {
                                            "type": "string",
                                            "example": "梅花鹿",
                                            "description": "谜底"
                                        },
                                        "riddle": {
                                            "type": "string",
                                            "example": "头上长树杈，身上有白花，四腿跑得快，生长在山野。",
                                            "description": "谜语"
                                        },
                                        "disturb": {
                                            "type": "string",
                                            "example": "黄水牛山羊羚驴子马骆驼长颈犀大象奶娟珊鲁西",
                                            "description": "干扰项"
                                        },
                                        "description": {
                                            "type": "string",
                                            "example": "梅花鹿，有着像树枝的鹿角，跳跃能力很强，尤其善长攀登陡坡，那连续大跨度的跳跃，速度轻快敏捷。",
                                            "description": "详细描述"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "type": "打一动物",
                                        "answer": "梅花鹿",
                                        "riddle": "头上长树杈，身上有白花，四腿跑得快，生长在山野。",
                                        "disturb": "黄水牛山羊羚驴子马骆驼长颈犀大象奶娟珊鲁西",
                                        "description": "梅花鹿，有着像树枝的鹿角，跳跃能力很强，尤其善长攀登陡坡，那连续大跨度的跳跃，速度轻快敏捷。"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}