{
    "openapi": "3.0.0",
    "info": {
        "title": "励志古言 - API文档",
        "version": "1.0.0",
        "description": "中国有着悠久的历史文化，其中就包括流传至今的古代名人大家、经典古籍的传世语录、这些鼓励人们的话语，让我们的生活更加积极向上、让我们更加有奋斗的动力去追求美好的生活。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/lzmy\/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": {
                                        "saying": {
                                            "type": "string",
                                            "example": "差之毫厘，谬以千里。",
                                            "description": "谚语或名言"
                                        },
                                        "source": {
                                            "type": "string",
                                            "example": "宋·陆九渊",
                                            "description": "来源或作者"
                                        },
                                        "transl": {
                                            "type": "string",
                                            "example": "做任何事情，开始一定要认真地做好...",
                                            "description": "译文"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "saying": "差之毫厘，谬以千里。",
                                        "source": "宋·陆九渊",
                                        "transl": "做任何事情，开始一定要认真地做好，如果做差了一丝一毫，结果会发现相差很远。"
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "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": {
                                        "saying": {
                                            "type": "string",
                                            "example": "差之毫厘，谬以千里。",
                                            "description": "谚语或名言"
                                        },
                                        "source": {
                                            "type": "string",
                                            "example": "宋·陆九渊",
                                            "description": "来源或作者"
                                        },
                                        "transl": {
                                            "type": "string",
                                            "example": "做任何事情，开始一定要认真地做好...",
                                            "description": "译文"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "saying": "差之毫厘，谬以千里。",
                                        "source": "宋·陆九渊",
                                        "transl": "做任何事情，开始一定要认真地做好，如果做差了一丝一毫，结果会发现相差很远。"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}