{
    "openapi": "3.0.0",
    "info": {
        "title": "英语格言 - API文档",
        "version": "1.0.0",
        "description": "精选英语格言警句民谚励志等短句子，返回中英文对照。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/enmaxim\/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": {
                                        "en": {
                                            "type": "string",
                                            "example": "Better be blamed by our kith and kin,than be kissed by the enemy.",
                                            "description": "英语"
                                        },
                                        "zh": {
                                            "type": "string",
                                            "example": "宁可让亲人责备，切勿让敌人亲吻。",
                                            "description": "汉语"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "en": "Better be blamed by our kith and kin,than be kissed by the enemy.",
                                        "zh": "宁可让亲人责备，切勿让敌人亲吻。"
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "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": {
                                        "en": {
                                            "type": "string",
                                            "example": "Better be blamed by our kith and kin,than be kissed by the enemy.",
                                            "description": "英语"
                                        },
                                        "zh": {
                                            "type": "string",
                                            "example": "宁可让亲人责备，切勿让敌人亲吻。",
                                            "description": "汉语"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "en": "Better be blamed by our kith and kin,than be kissed by the enemy.",
                                        "zh": "宁可让亲人责备，切勿让敌人亲吻。"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}