{
    "openapi": "3.0.0",
    "info": {
        "title": "近义词反义词 - API文档",
        "version": "1.0.0",
        "description": "查询一个词语的同义词和反义词，适合批量替换的场合。需注意可能某个类型的字段会返回空，因此实际应用时建议加上非空判断。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/jfwords\/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": {
                                        "fyc": {
                                            "type": "string",
                                            "example": "历尽艰辛",
                                            "description": "反义词"
                                        },
                                        "jyc": {
                                            "type": "string",
                                            "example": "风平浪静",
                                            "description": "近义词"
                                        },
                                        "words": {
                                            "type": "string",
                                            "example": "一帆风顺",
                                            "description": "查询词"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "fyc": "历尽艰辛",
                                        "jyc": "风平浪静",
                                        "word": "一帆风顺"
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "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": {
                                        "fyc": {
                                            "type": "string",
                                            "example": "历尽艰辛",
                                            "description": "反义词"
                                        },
                                        "jyc": {
                                            "type": "string",
                                            "example": "风平浪静",
                                            "description": "近义词"
                                        },
                                        "words": {
                                            "type": "string",
                                            "example": "一帆风顺",
                                            "description": "查询词"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "fyc": "历尽艰辛",
                                        "jyc": "风平浪静",
                                        "word": "一帆风顺"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}