{
    "openapi": "3.0.0",
    "info": {
        "title": "诗经大全 - API文档",
        "version": "1.0.0",
        "description": "《诗经》作为中国最早的诗歌总集，不仅承载着丰富的历史与文化价值，亦是汉语文学的基石。本接口支持按指定数量和关键词检索诗经内容。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/shijing\/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-10",
                        "required": false,
                        "schema": {
                            "type": "int",
                            "example": 10,
                            "description": "返回数量，取值1-10"
                        }
                    },
                    {
                        "name": "word",
                        "in": "query",
                        "description": "搜索诗词",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "蒹葭",
                            "description": "搜索诗词"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "name": {
                                            "type": "string",
                                            "example": "褰裳",
                                            "description": "诗词牌名"
                                        },
                                        "note": {
                                            "type": "string",
                                            "example": "褰(qian)：用手提起...",
                                            "description": "词备注"
                                        },
                                        "author": {
                                            "type": "string",
                                            "example": "国风·秦风",
                                            "description": "作者"
                                        },
                                        "content": {
                                            "type": "string",
                                            "example": "子惠思我，褰裳涉溱...",
                                            "description": "内容"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "list": [
                                            {
                                                "name": "褰裳",
                                                "note": "褰(qian)：用手提起。裳：下身的衣服。溱(zhen)：河名。也且(ju)：语气助词，没有实义。洧(wei)：河名。",
                                                "author": "国风·秦风",
                                                "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": 10,
                                        "description": "返回数量，取值1-10"
                                    },
                                    "word": {
                                        "type": "string",
                                        "example": "蒹葭",
                                        "description": "搜索诗词"
                                    }
                                },
                                "required": [
                                    "key"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "name": {
                                            "type": "string",
                                            "example": "褰裳",
                                            "description": "诗词牌名"
                                        },
                                        "note": {
                                            "type": "string",
                                            "example": "褰(qian)：用手提起...",
                                            "description": "词备注"
                                        },
                                        "author": {
                                            "type": "string",
                                            "example": "国风·秦风",
                                            "description": "作者"
                                        },
                                        "content": {
                                            "type": "string",
                                            "example": "子惠思我，褰裳涉溱...",
                                            "description": "内容"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "list": [
                                            {
                                                "name": "褰裳",
                                                "note": "褰(qian)：用手提起。裳：下身的衣服。溱(zhen)：河名。也且(ju)：语气助词，没有实义。洧(wei)：河名。",
                                                "author": "国风·秦风",
                                                "content": "子惠思我，褰裳涉溱。子不我思，岂无他人？狂童之狂也且。子惠思我，褰裳涉洧。子不我思，岂无他士？狂童之狂也且。"
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}