Skip to content

Commit 33289a7

Browse files
committed
fix: Update license validation endpoint and parameter - Change endpoint from /licenses/validate to /licenses/verify - Change parameter from license_key to key to match API specification
1 parent 5befab4 commit 33289a7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/licensechain/services/license_service.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ def revoke(license_id)
4242
def validate(license_key)
4343
Utils.validate_not_empty(license_key, 'license_key')
4444

45-
response = @client.post('/licenses/validate', { license_key: license_key })
45+
# Use /licenses/verify endpoint with 'key' parameter to match API
46+
response = @client.post('/licenses/verify', { key: license_key })
4647
response[:valid]
4748
end
4849

0 commit comments

Comments
 (0)