欢迎使用「api/user/create」接口,该接口用于创建新用户账户。以下是详细说明:

请求方法

  • HTTP方法POST
  • 路径/api/user/create
  • 请求头:需携带 Content-Type: application/json

请求参数

参数名 类型 必填 描述
username 字符串 用户唯一标识
password 字符串 加密后的密码
email 字符串 可选的邮箱地址

响应示例

{
  "status": "success",
  "message": "用户创建成功",
  "user_id": "U123456"
}

使用示例

curl -X POST https://example.com/api/user/create \
-H "Content-Type: application/json" \
-d '{"username":"testuser","password":"$2a$10$652d2b7c3e1a","email":"test@example.com"}'

注意事项

⚠️ 请确保:

  1. 密码已通过安全哈希算法处理
  2. 邮箱格式符合标准(如需)
  3. 遵守用户数据隐私政策
用户创建界面

如需进一步了解用户管理功能,请查看用户使用指南