{
    "openapi": "3.0.3",
    "info": {
        "title": "客官API - 免费的API接口服务平台",
        "version": "2.2.0"
    },
    "servers": [
        {
            "url": "https:\/\/api.keguan.org.cn"
        }
    ],
    "paths": {
        "\/api\/hash\/": {
            "get": {
                "operationId": "hash_get",
                "summary": "Hash摘要计算",
                "description": "用于计算常见摘要值，适合接口调试、签名比对和文本校验。支持 `md5`、`sha1`、`sha256`、`sha512`。",
                "tags": [
                    "开发工具"
                ],
                "externalDocs": {
                    "url": "https:\/\/api.keguan.org.cn\/apidoc\/?id=9"
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "参数错误"
                    },
                    "429": {
                        "description": "请求频率超限"
                    },
                    "503": {
                        "description": "维护或服务不可用"
                    }
                },
                "parameters": [
                    {
                        "name": "algo",
                        "in": "query",
                        "required": false,
                        "description": "默认 `sha256`；可选 `md5`、`sha1`、`sha256`、`sha512` | 摘要算法名称。传入其他算法会返回 `400`。",
                        "schema": {
                            "type": "string",
                            "example": "sha256",
                            "default": "sha256",
                            "enum": [
                                "md5",
                                "sha1",
                                "sha256",
                                "sha512"
                            ]
                        }
                    },
                    {
                        "name": "text",
                        "in": "query",
                        "required": false,
                        "description": "默认空字符串 | 要计算摘要的原始文本，允许为空。 ",
                        "schema": {
                            "type": "string",
                            "example": "abc"
                        }
                    }
                ],
                "x-api-version": "1.0"
            },
            "post": {
                "operationId": "hash_post",
                "summary": "Hash摘要计算",
                "description": "用于计算常见摘要值，适合接口调试、签名比对和文本校验。支持 `md5`、`sha1`、`sha256`、`sha512`。",
                "tags": [
                    "开发工具"
                ],
                "externalDocs": {
                    "url": "https:\/\/api.keguan.org.cn\/apidoc\/?id=9"
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "参数错误"
                    },
                    "429": {
                        "description": "请求频率超限"
                    },
                    "503": {
                        "description": "维护或服务不可用"
                    }
                },
                "requestBody": {
                    "required": false,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "algo": {
                                        "type": "string",
                                        "example": "sha256",
                                        "default": "sha256",
                                        "enum": [
                                            "md5",
                                            "sha1",
                                            "sha256",
                                            "sha512"
                                        ]
                                    },
                                    "text": {
                                        "type": "string",
                                        "example": "abc"
                                    }
                                }
                            }
                        },
                        "application\/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "algo": {
                                        "type": "string",
                                        "example": "sha256",
                                        "default": "sha256",
                                        "enum": [
                                            "md5",
                                            "sha1",
                                            "sha256",
                                            "sha512"
                                        ]
                                    },
                                    "text": {
                                        "type": "string",
                                        "example": "abc"
                                    }
                                }
                            }
                        }
                    }
                },
                "x-api-version": "1.0"
            }
        }
    }
}