Skip to main content
The /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
userId
string
required
The unique identifier for the user making the request. Used as the key namespace in Redis.

Responses

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):
User is allowed
Example:
curl "http://localhost:8080/check?userId=alice"
# HTTP 200
# User is allowed

Examples

curl "http://localhost:8080/check?userId=alice"

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.

Build docs developers (and LLMs) love