{
    "openapi": "3.0.3",
    "info": {
        "title": "客官API - 免费的API接口服务平台",
        "version": "2.2.0"
    },
    "servers": [
        {
            "url": "https:\/\/api.keguan.org.cn"
        }
    ],
    "paths": {
        "\/api\/base64\/": {
            "get": {
                "operationId": "base64_get",
                "summary": "Base64编码解码",
                "description": "用于标准 Base64 和 Base64URL 的编码与解码。",
                "tags": [
                    "开发工具"
                ],
                "externalDocs": {
                    "url": "https:\/\/api.keguan.org.cn\/apidoc\/?id=8"
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "参数错误"
                    },
                    "429": {
                        "description": "请求频率超限"
                    },
                    "503": {
                        "description": "维护或服务不可用"
                    }
                },
                "parameters": [
                    {
                        "name": "action",
                        "in": "query",
                        "required": false,
                        "description": "默认 `encode`；可选 `encode`、`decode` | 操作类型：编码或解码。传入其他值会返回 `400`。",
                        "schema": {
                            "type": "string",
                            "example": "encode",
                            "default": "encode",
                            "enum": [
                                "encode",
                                "decode"
                            ]
                        }
                    },
                    {
                        "name": "text",
                        "in": "query",
                        "required": true,
                        "description": "要编码或解码的内容。`decode` 时需要传入合法的 Base64 \/ Base64URL 字符串。",
                        "schema": {
                            "type": "string",
                            "example": "hello world"
                        }
                    },
                    {
                        "name": "variant",
                        "in": "query",
                        "required": false,
                        "description": "默认 `standard`；可选 `standard`、`url` | 编码变体。`standard` 为标准 Base64；`url` 为适合 URL 传输的 Base64URL。",
                        "schema": {
                            "type": "string",
                            "example": "url",
                            "default": "standard",
                            "enum": [
                                "standard",
                                "url"
                            ]
                        }
                    }
                ],
                "x-api-version": "1.0"
            },
            "post": {
                "operationId": "base64_post",
                "summary": "Base64编码解码",
                "description": "用于标准 Base64 和 Base64URL 的编码与解码。",
                "tags": [
                    "开发工具"
                ],
                "externalDocs": {
                    "url": "https:\/\/api.keguan.org.cn\/apidoc\/?id=8"
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "参数错误"
                    },
                    "429": {
                        "description": "请求频率超限"
                    },
                    "503": {
                        "description": "维护或服务不可用"
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "action": {
                                        "type": "string",
                                        "example": "encode",
                                        "default": "encode",
                                        "enum": [
                                            "encode",
                                            "decode"
                                        ]
                                    },
                                    "text": {
                                        "type": "string",
                                        "example": "hello world"
                                    },
                                    "variant": {
                                        "type": "string",
                                        "example": "url",
                                        "default": "standard",
                                        "enum": [
                                            "standard",
                                            "url"
                                        ]
                                    }
                                },
                                "required": [
                                    "text"
                                ]
                            }
                        },
                        "application\/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "action": {
                                        "type": "string",
                                        "example": "encode",
                                        "default": "encode",
                                        "enum": [
                                            "encode",
                                            "decode"
                                        ]
                                    },
                                    "text": {
                                        "type": "string",
                                        "example": "hello world"
                                    },
                                    "variant": {
                                        "type": "string",
                                        "example": "url",
                                        "default": "standard",
                                        "enum": [
                                            "standard",
                                            "url"
                                        ]
                                    }
                                },
                                "required": [
                                    "text"
                                ]
                            }
                        }
                    }
                },
                "x-api-version": "1.0"
            }
        }
    }
}