{
    "openapi": "3.0.0",
    "info": {
        "title": "经典台词 - API文档",
        "version": "1.0.0",
        "description": "海内外经典影视台词，返回中英文字段及来源。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/dialogue\/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": {
                                        "type": {
                                            "type": "int",
                                            "example": 1,
                                            "description": "台词类型，0外语、1华语"
                                        },
                                        "source": {
                                            "type": "string",
                                            "example": "夏日的么么茶",
                                            "description": "来源影视剧"
                                        },
                                        "english": {
                                            "type": "string",
                                            "example": "Don’t be so nice to me. You are so nice to me. If one day you are not nice to me, I will be very sad.",
                                            "description": "英文"
                                        },
                                        "dialogue": {
                                            "type": "string",
                                            "example": "你不要对我这么好，你对我这么好、要是有一天你对我不好了，我会很伤心。",
                                            "description": "台词"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "type": 1,
                                        "source": "夏日的么么茶",
                                        "english": "Don’t be so nice to me. You are so nice to me. If one day you are not nice to me, I will be very sad.",
                                        "dialogue": "你不要对我这么好，你对我这么好、要是有一天你对我不好了，我会很伤心。"
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "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": {
                                        "type": {
                                            "type": "int",
                                            "example": 1,
                                            "description": "台词类型，0外语、1华语"
                                        },
                                        "source": {
                                            "type": "string",
                                            "example": "夏日的么么茶",
                                            "description": "来源影视剧"
                                        },
                                        "english": {
                                            "type": "string",
                                            "example": "Don’t be so nice to me. You are so nice to me. If one day you are not nice to me, I will be very sad.",
                                            "description": "英文"
                                        },
                                        "dialogue": {
                                            "type": "string",
                                            "example": "你不要对我这么好，你对我这么好、要是有一天你对我不好了，我会很伤心。",
                                            "description": "台词"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "type": 1,
                                        "source": "夏日的么么茶",
                                        "english": "Don’t be so nice to me. You are so nice to me. If one day you are not nice to me, I will be very sad.",
                                        "dialogue": "你不要对我这么好，你对我这么好、要是有一天你对我不好了，我会很伤心。"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}