{
    "openapi": "3.0.0",
    "info": {
        "title": "小段子 - API文档",
        "version": "1.0.0",
        "description": "一个小段子，品味不一样的生活"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/mnpara\/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",
                                            "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",
                                            "description": "作者"
                                        },
                                        "content": {
                                            "type": "string",
                                            "example": "石头貌不起眼，却能恒久千年万载。鲜花美不胜收，却只不过一季芬芳......",
                                            "description": "内容"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "author": "",
                                        "content": "石头貌不起眼，却能恒久千年万载。鲜花美不胜收，却只不过一季芬芳。上帝不会让任何人与物完美无缺，生活也不会让任何事百分之百的圆满。没有人可以得到所有的幸福，生活中总会存在这样那样的缺憾。人有悲欢离合，正如月有阴晴圆缺，上帝给谁都不太多。"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}