/check endpoint is the single public API surface of RLaaS Users Service. Send a GET request with a userId query parameter and the service will either allow the request (200 OK) or reject it with an HTTP 429 and a plain-text message indicating how many seconds until the window resets.
Request
Method and path:GET /check
The unique identifier for the user making the request. Used as the key namespace in Redis.
Responses
- 200 OK
- 429 Too Many Requests
Request is within the rate limit. The filter passes the request through to the controller, which returns a plain-text confirmation.Response body (plain text):Example:
Examples
Error behavior
If
userId is null or missing from the query string, the filter passes a null userId to the algorithm. The current implementation does not validate the userId parameter — callers should ensure a non-null userId is always provided to avoid undefined behavior in key generation.