AB-test API
Implements API for HLT-304.
Additional API documentation
Get API for conducting A/B tests for users, enabling client-side behavior management. For example, based on the cookie from the request, the API can determine which variant (e.g., button color) should be shown to a specific user.
curl --location 'http://localhost:3000/api/v2/ab/test_1' \
--header 'Cookie: AB-Test-Session=valid uuid v4;_casino_session= valid JWT token for SS user'
GET API_URL/api/v2/ab/:test_id
:test_id - represent identifier of conducted test, for example `jackpots`. test_id is also the ID of the AB-Tests collection in Directus;
Example Response
{
"path": “A”
}