{
    "openapi": "3.0.0",
    "info": {
        "title": "民国句子 - API文档",
        "version": "1.0.0",
        "description": "历史上的民国是个古今碰撞的时代，既是国之乱世，也是文化盛世。民国名家经典句子或惊艳或婉约，本接口随机返回对应句子和作者。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/mgjuzi\/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": {
                                        "author": {
                                            "type": "string",
                                            "example": "季羡林",
                                            "description": "作者"
                                        },
                                        "content": {
                                            "type": "string",
                                            "example": "人生的道路上，每个人都是孤独的旅客。",
                                            "description": "内容"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "author": "季羡林",
                                        "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": {
                                        "author": {
                                            "type": "string",
                                            "example": "季羡林",
                                            "description": "作者"
                                        },
                                        "content": {
                                            "type": "string",
                                            "example": "人生的道路上，每个人都是孤独的旅客。",
                                            "description": "内容"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "author": "季羡林",
                                        "content": "人生的道路上，每个人都是孤独的旅客。"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}