{
    "openapi": "3.0.0",
    "info": {
        "title": "分类名句 - API文档",
        "version": "1.0.0",
        "description": "按诗词所描述的Tag类型查询古诗词名句，例如描写季节（春夏秋冬）天、天气（雨雪风霜）、某一事物（花鸟山水）、情感（亲情、爱情、友情、爱国）、名著（西游记、水浒传、红楼梦、三国志）、节日（春节、元宵、端午、七夕、中秋、重阳）节等。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/flmj\/index": {
            "get": {
                "summary": "分类名句",
                "tags": [
                    "分类名句"
                ],
                "description": "",
                "parameters": [
                    {
                        "name": "key",
                        "in": "query",
                        "description": "API密钥",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "description": "API密钥"
                        }
                    },
                    {
                        "name": "num",
                        "in": "query",
                        "description": "返回数量1-20",
                        "required": false,
                        "schema": {
                            "type": "int",
                            "example": 5,
                            "description": "返回数量1-20"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "翻页",
                        "required": false,
                        "schema": {
                            "type": "int",
                            "example": 1,
                            "description": "翻页"
                        }
                    },
                    {
                        "name": "rand",
                        "in": "query",
                        "description": "随机",
                        "required": false,
                        "schema": {
                            "type": "int",
                            "example": 1,
                            "description": "随机"
                        }
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "description": "描写Tag类型，如“春天、写雨、中秋节”",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "example": "春天",
                            "description": "描写Tag类型，如“春天、写雨、中秋节”"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "source": {
                                            "type": "string",
                                            "example": "苏轼《惠崇春江晚景》",
                                            "description": "作者及来源"
                                        },
                                        "content": {
                                            "type": "string",
                                            "example": "竹外桃花三两枝，春江水暖鸭先知。",
                                            "description": "古诗句"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "source": "苏轼《惠崇春江晚景》",
                                        "content": "竹外桃花三两枝，春江水暖鸭先知。"
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "分类名句",
                "tags": [
                    "分类名句"
                ],
                "description": "",
                "requestBody": {
                    "content": {
                        "application\/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "key": {
                                        "type": "string",
                                        "description": "API密钥"
                                    },
                                    "num": {
                                        "type": "int",
                                        "example": 5,
                                        "description": "返回数量1-20"
                                    },
                                    "page": {
                                        "type": "int",
                                        "example": 1,
                                        "description": "翻页"
                                    },
                                    "rand": {
                                        "type": "int",
                                        "example": 1,
                                        "description": "随机"
                                    },
                                    "type": {
                                        "type": "string",
                                        "example": "春天",
                                        "description": "描写Tag类型，如“春天、写雨、中秋节”"
                                    }
                                },
                                "required": [
                                    "key",
                                    "type"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "source": {
                                            "type": "string",
                                            "example": "苏轼《惠崇春江晚景》",
                                            "description": "作者及来源"
                                        },
                                        "content": {
                                            "type": "string",
                                            "example": "竹外桃花三两枝，春江水暖鸭先知。",
                                            "description": "古诗句"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "source": "苏轼《惠崇春江晚景》",
                                        "content": "竹外桃花三两枝，春江水暖鸭先知。"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}