@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api Feature Flags API
@version 1.0.0
@auth ApiKey token in query
@endpoints 2
@toc flags(2)

@endpoint GET /flags
@desc Evaluate Feature Flags (GET)
@required {token: str # Your project token, context: str # URL-encoded JSON object containing evaluation context with distinct_id (required) and optional device_id and custom_properties object}
@returns(200) {flags: map} # Success
@errors {400, 401, 403}

@endpoint GET /flags/definitions
@desc Get Feature Flag Definitions
@required {token: str # Your project token}
@returns(200) {flags: [map]} # Success
@errors {401, 403}

@end
