{
    "openapi": "3.0.0",
    "info": {
        "title": "早安心语 - API文档",
        "version": "1.0.0",
        "description": "早上是阳光太阳东升的时间，一句励志的话给新的一天注入动力，不定期更新。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/zaoan\/index": {
            "get": {
                "summary": "早安心语查询",
                "tags": [
                    "早安心语"
                ],
                "description": "默认随机返回1条适合早晨的文案心语",
                "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": "默认随机返回1条适合早晨的文案心语",
                "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": "用努力去喂养梦想，愿跌倒不哭，明媚如初，早安。"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}