本页面提供了关于用户管理的 API 文档,包括用户创建、查询、更新和删除等操作。

用户创建

使用 POST 请求 /zh/api_docs/user_management/create 路径创建新用户。

  • 请求参数:

    • username: 用户名,必填。
    • password: 密码,必填。
    • email: 邮箱,可选。
  • 示例请求:

    POST /zh/api_docs/user_management/create
    Content-Type: application/json
    
    {
      "username": "newuser",
      "password": "newpassword",
      "email": "newuser@example.com"
    }
    

用户查询

使用 GET 请求 /zh/api_docs/user_management/query 路径查询用户信息。

  • 请求参数:

    • username: 用户名,必填。
  • 示例请求:

    GET /zh/api_docs/user_management/query?username=newuser
    

用户更新

使用 PUT 请求 /zh/api_docs/user_management/update 路径更新用户信息。

  • 请求参数:

    • username: 用户名,必填。
    • new_password: 新密码,可选。
    • new_email: 新邮箱,可选。
  • 示例请求:

    PUT /zh/api_docs/user_management/update
    Content-Type: application/json
    
    {
      "username": "newuser",
      "new_password": "newpassword123",
      "new_email": "newuser123@example.com"
    }
    

用户删除

使用 DELETE 请求 /zh/api_docs/user_management/delete 路径删除用户。

  • 请求参数:

    • username: 用户名,必填。
  • 示例请求:

    DELETE /zh/api_docs/user_management/delete?username=newuser
    

更多信息,请访问我们的API 文档首页

用户管理 API