{
    "openapi": "3.0.0",
    "info": {
        "title": "花语箴言 - API文档",
        "version": "1.0.0",
        "description": "花语是人们在一定的历史条件下逐渐约定俗成的，一种用花来表达人的某种感情与愿望的语言，具有一定的社会交流价值。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/huayu\/index": {
            "get": {
                "summary": "花语箴言",
                "tags": [
                    "花语箴言"
                ],
                "description": "通过花名查询对应的话语",
                "parameters": [
                    {
                        "name": "key",
                        "in": "query",
                        "description": "API密钥",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "description": "API密钥"
                        }
                    },
                    {
                        "name": "word",
                        "in": "query",
                        "description": "花的名字",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "example": "玫瑰花",
                            "description": "花的名字"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "cnflower": {
                                            "type": "string",
                                            "example": "玫瑰花",
                                            "description": "中文花名"
                                        },
                                        "enflower": {
                                            "type": "string",
                                            "example": "Maiden Blush Rose",
                                            "description": "英文花名"
                                        },
                                        "flowerlang": {
                                            "type": "string",
                                            "example": "你心知我心",
                                            "description": "花语"
                                        },
                                        "flowerprov": {
                                            "type": "string",
                                            "example": "自尊与面子是恋爱的障碍物。",
                                            "description": "花语箴言"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "cnflower": "玫瑰花",
                                        "enflower": "Maiden Blush Rose",
                                        "flowerlang": "你心知我心",
                                        "flowerprov": "自尊与面子是恋爱的障碍物。"
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "花语箴言",
                "tags": [
                    "花语箴言"
                ],
                "description": "通过花名查询对应的话语",
                "requestBody": {
                    "content": {
                        "application\/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "key": {
                                        "type": "string",
                                        "description": "API密钥"
                                    },
                                    "word": {
                                        "type": "string",
                                        "example": "玫瑰花",
                                        "description": "花的名字"
                                    }
                                },
                                "required": [
                                    "key",
                                    "word"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "cnflower": {
                                            "type": "string",
                                            "example": "玫瑰花",
                                            "description": "中文花名"
                                        },
                                        "enflower": {
                                            "type": "string",
                                            "example": "Maiden Blush Rose",
                                            "description": "英文花名"
                                        },
                                        "flowerlang": {
                                            "type": "string",
                                            "example": "你心知我心",
                                            "description": "花语"
                                        },
                                        "flowerprov": {
                                            "type": "string",
                                            "example": "自尊与面子是恋爱的障碍物。",
                                            "description": "花语箴言"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "cnflower": "玫瑰花",
                                        "enflower": "Maiden Blush Rose",
                                        "flowerlang": "你心知我心",
                                        "flowerprov": "自尊与面子是恋爱的障碍物。"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}