From ca6475609baf26d7ba743aa48d0a472b17d0f8c2 Mon Sep 17 00:00:00 2001 From: hailin Date: Fri, 13 Jun 2025 22:09:42 +0800 Subject: [PATCH] . --- verify_api_generate.sh | 7 +++++++ verify_api_validate.sh | 6 ++++++ verify_api_verify.sh | 6 ++++++ 3 files changed, 19 insertions(+) create mode 100644 verify_api_generate.sh create mode 100644 verify_api_validate.sh create mode 100644 verify_api_verify.sh diff --git a/verify_api_generate.sh b/verify_api_generate.sh new file mode 100644 index 0000000..b302386 --- /dev/null +++ b/verify_api_generate.sh @@ -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"] + }' \ No newline at end of file diff --git a/verify_api_validate.sh b/verify_api_validate.sh new file mode 100644 index 0000000..808485b --- /dev/null +++ b/verify_api_validate.sh @@ -0,0 +1,6 @@ +curl -X POST http://localhost:13579/api/license/activate \ + -H "Content-Type: application/json" \ + -d '{ + "payload": "xxx", + "signature": "yyy" + }' \ No newline at end of file diff --git a/verify_api_verify.sh b/verify_api_verify.sh new file mode 100644 index 0000000..f010c2b --- /dev/null +++ b/verify_api_verify.sh @@ -0,0 +1,6 @@ +curl -X POST http://localhost:13579/api/license/validate \ + -H "Content-Type: application/json" \ + -d '{ + "payload": "xxx", + "signature": "yyy" + }'