{
    "openapi": "3.0.0",
    "info": {
        "title": "简繁转换 - API文档",
        "version": "1.0.0",
        "description": "汉字简体和繁体互相查询转换，单次请求最多可支持1000个中文字符。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/charconvert\/index": {
            "get": {
                "summary": "简繁转换",
                "tags": [
                    "简繁转换"
                ],
                "description": "",
                "parameters": [
                    {
                        "name": "key",
                        "in": "query",
                        "description": "API密钥",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "description": "API密钥"
                        }
                    },
                    {
                        "name": "text",
                        "in": "query",
                        "description": "待转换的字符",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "example": "天行数据是一个专业的接口平台",
                            "description": "待转换的字符"
                        }
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "description": "需要转成的类型，繁体0[默认]，简体1",
                        "required": false,
                        "schema": {
                            "type": "int",
                            "example": 0,
                            "description": "需要转成的类型，繁体0[默认]，简体1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "intext": {
                                            "type": "string",
                                            "example": "天行数据是一个专业的接口平台",
                                            "description": "输入的字符"
                                        },
                                        "outtext": {
                                            "type": "string",
                                            "example": "天行數據是一個專業的接口平台",
                                            "description": "转成的字符"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "intext": "天行数据是一个专业的接口平台",
                                        "outtext": "天行數據是一個專業的接口平台"
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "简繁转换",
                "tags": [
                    "简繁转换"
                ],
                "description": "",
                "requestBody": {
                    "content": {
                        "application\/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "key": {
                                        "type": "string",
                                        "description": "API密钥"
                                    },
                                    "text": {
                                        "type": "string",
                                        "example": "天行数据是一个专业的接口平台",
                                        "description": "待转换的字符"
                                    },
                                    "type": {
                                        "type": "int",
                                        "example": 0,
                                        "description": "需要转成的类型，繁体0[默认]，简体1"
                                    }
                                },
                                "required": [
                                    "key",
                                    "text"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "intext": {
                                            "type": "string",
                                            "example": "天行数据是一个专业的接口平台",
                                            "description": "输入的字符"
                                        },
                                        "outtext": {
                                            "type": "string",
                                            "example": "天行數據是一個專業的接口平台",
                                            "description": "转成的字符"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "intext": "天行数据是一个专业的接口平台",
                                        "outtext": "天行數據是一個專業的接口平台"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}