You've already forked wc-licensed-product
Align REST API with client documentation (v0.5.4)
Fixed HTTP status codes for API responses: - /validate now returns 404 for license_not_found (was 403) - Added status code mapping: 404 not found, 500 server errors, 403 others Added configurable rate limiting: - WC_LICENSE_RATE_LIMIT constant for requests per window - WC_LICENSE_RATE_WINDOW constant for window duration in seconds Fixed license_key validation: - Now enforces minimum 8 characters across all endpoints Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
17
CHANGELOG.md
17
CHANGELOG.md
@@ -7,6 +7,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [0.5.4] - 2026-01-26
|
||||
|
||||
### Fixed
|
||||
|
||||
- REST API `/validate` endpoint now returns HTTP 404 for `license_not_found` error (was 403)
|
||||
- License key validation now enforces minimum 8 characters per API documentation
|
||||
|
||||
### Added
|
||||
|
||||
- Configurable rate limiting via `WC_LICENSE_RATE_LIMIT` and `WC_LICENSE_RATE_WINDOW` constants
|
||||
- Rate limit now defaults to 30 requests per 60 second window (configurable)
|
||||
|
||||
### Changed
|
||||
|
||||
- Improved HTTP status code mapping: 404 for not found, 500 for server errors, 403 for all other errors
|
||||
- Rate limiting implementation now uses configurable constants instead of hardcoded values
|
||||
|
||||
## [0.5.3] - 2026-01-26
|
||||
|
||||
### Added
|
||||
|
||||
Reference in New Issue
Block a user