{
    "openapi": "3.0.0",
    "info": {
        "title": "生活小窍门 - API文档",
        "version": "1.0.0",
        "description": "随机返回一条日常生活小技巧、小窍门，字数在210字以内。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/qiaomen\/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": {
                                        "content": {
                                            "type": "string",
                                            "example": "煮蛋时，若在水中加入少许食盐，蛋壳就不易破裂。",
                                            "description": "内容"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "content": "煮蛋时，若在水中加入少许食盐，蛋壳就不易破裂。"
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "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": {
                                        "content": {
                                            "type": "string",
                                            "example": "煮蛋时，若在水中加入少许食盐，蛋壳就不易破裂。",
                                            "description": "内容"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "content": "煮蛋时，若在水中加入少许食盐，蛋壳就不易破裂。"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}