{
    "openapi": "3.0.0",
    "info": {
        "title": "本草纲目 - API文档",
        "version": "1.0.0",
        "description": "《本草纲目》由明代李时珍编纂，是中医药领域的权威经典，收录了丰富的药物信息、药方及配伍禁忌等宝贵知识。本接口支持模糊查询该著作的相关条目。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/bcgm\/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": "name",
                        "in": "query",
                        "description": "药品名称",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "example": "丹参",
                            "description": "药品名称"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "翻页",
                        "required": false,
                        "schema": {
                            "type": "int",
                            "example": 1,
                            "description": "翻页"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "name": {
                                            "type": "string",
                                            "example": "丹参",
                                            "description": "药品名称"
                                        },
                                        "content": {
                                            "type": "string",
                                            "example": "释名：赤参、山参、郗蝉草、木羊乳...",
                                            "description": "详细内容"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "list": [
                                            {
                                                "name": "丹参",
                                                "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"
                                    },
                                    "name": {
                                        "type": "string",
                                        "example": "丹参",
                                        "description": "药品名称"
                                    },
                                    "page": {
                                        "type": "int",
                                        "example": 1,
                                        "description": "翻页"
                                    }
                                },
                                "required": [
                                    "key",
                                    "name"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "name": {
                                            "type": "string",
                                            "example": "丹参",
                                            "description": "药品名称"
                                        },
                                        "content": {
                                            "type": "string",
                                            "example": "释名：赤参、山参、郗蝉草、木羊乳...",
                                            "description": "详细内容"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "list": [
                                            {
                                                "name": "丹参",
                                                "content": "释名：赤参、山参、郗蝉草、木羊乳、逐马、奔马草..."
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}