3. UUID 生成器模块
3.1 生成 UUID
生成并持久化一个新的唯一标识符(UUID)。
端点: POST /uuid/getuuid
请求参数: 无
请求示例:
Bash
curl -X POST https://api.ndpreforged.com/uuid/getuuid
Python 请求示例:
Python
import requests
response = requests.post("https://api.ndpreforged.com/uuid/getuuid")
print(response.json())
# 成功响应: {"uuid": "abcd-ef12-3456-7890-abcd-ef12-3456-7890"}
成功响应 (200):
JSON
{
"uuid": "abcd-ef12-3456-7890-abcd-ef12-3456-7890"
}
错误响应 (500):
JSON
{
"uuid": "apierror"
}
UUID 格式: 8段4位字符,用 - 分隔