Closed ScottPaillant closed 7 years ago
@weerd we can talk tomorrow morning if the response format makes sense for you, or what you were thinking. You will either get back a waitingRoom
or Competition
property on the response and that will indicate that the user has already been assigned something. I am going to approve this for now. If you need updates tomorrow morning. I am on it!
Sure thing, sounds good :) We can chat further tomorrow if needed. I left an additional comment but it's not a merge blocker by any means. More of a recommendation and not necessarily something needed for now.
What's this PR do?
Created
/get user
api endpoint that can be passed anid
,campaign_id
, and acampaign_run_id
and returns a user with either the waiting room they are in or the competitionExample response when user is in waiting room:
Example response when user is in a competition:
How should this be manually tested?
Issue a GET request to api/v1/users with the parameters
id
,campaign_id
, andcampaign_run_id
and you should receive a user in JSON format with appropriate data.Any background context you want to provide?
See issue #399
What are the relevant tickets?
Fixes #399