The test task is designed to conduct experiments with token devices, store them, and display statistics.
• Endpoint: /experiment/{experiment-name}
• HTTP Method: GET
• Parameters:
• device-token: Unique device token
• Response:
• key: Name of the experiment (e.g., "button_color" or "price")
• value: The assigned value for the experiment (e.g., "#FF0000" or "10")
• Create a JSON format data experiment statistics, including the total number of devices participating and their distribution among the options.
• Key: button_color
• Options:
#FF0000 (33.3%)
#00FF00 (33.3%)
#0000FF (33.3%)
• Key: price
• Options:
10 (75%)
20 (10%)
50 (5%)
5 (10%)
-
Once a device receives a value for an experiment, it will always receive that value.
-
Experiments are only performed for new devices, and devices should not know about experiments created after their first request.
• ASP.NET Core Web API
• MySQL
• ADO.NET Entity Framework