对外接入说明
API 文档
给插件、桌面端与测试同学直接查阅:正式接口、授权模型、多语言示例与联调路径。
cURL
适合联调、写 Postman collection、或快速把请求复制给后端和测试同学复现。
# activate
curl -X POST "http://127.0.0.1:3000/api/license/activate" \
-H "Content-Type: application/json" \
-d '{
"projectKey": "browser-plugin",
"code": "A1B2C3D4E5F6G7H8",
"machineId": "machine-001"
}'
# status
curl -X POST "http://127.0.0.1:3000/api/license/status" \
-H "Content-Type: application/json" \
-d '{
"projectKey": "browser-plugin",
"code": "A1B2C3D4E5F6G7H8",
"machineId": "machine-001"
}'
# consume
curl -X POST "http://127.0.0.1:3000/api/license/consume" \
-H "Content-Type: application/json" \
-d '{
"projectKey": "browser-plugin",
"code": "A1B2C3D4E5F6G7H8",
"machineId": "machine-001",
"requestId": "req-001"
}'