This commit is contained in:
hailin 2025-06-13 22:09:42 +08:00
parent 51b82e0338
commit ca6475609b
3 changed files with 19 additions and 0 deletions

7
verify_api_generate.sh Normal file
View File

@ -0,0 +1,7 @@
curl -X POST http://localhost:13579/api/license/generate \
-H "Content-Type: application/json" \
-d '{
"machine_id": "ABCDEF123456",
"expiry": "2026-12-31",
"features": ["gpu", "ocr"]
}'

6
verify_api_validate.sh Normal file
View File

@ -0,0 +1,6 @@
curl -X POST http://localhost:13579/api/license/activate \
-H "Content-Type: application/json" \
-d '{
"payload": "xxx",
"signature": "yyy"
}'

6
verify_api_verify.sh Normal file
View File

@ -0,0 +1,6 @@
curl -X POST http://localhost:13579/api/license/validate \
-H "Content-Type: application/json" \
-d '{
"payload": "xxx",
"signature": "yyy"
}'