We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement API endpoint (in file src/routers/api.py) which will react to POST /api/v1/games with JSON
{ ‘room_name’: <str>, ‘max_players’: <int>, `password`: <str?>, }
Where “max_players” is limited to values 2-6
If success, append a new room to the imported object "game_manager" (method add_new_game), then return JSON with a status code 200 (Ok):
{ ‘room_name’: <str>, ‘max_players’: <int>, ‘password’: <str?> }
If the room exists with a specific name, return JSON with a status code 403 (Forbidden):
{ ‘message’: “The room {room_name} already exists” }
The text was updated successfully, but these errors were encountered:
MaciejWojt
No branches or pull requests
Implement API endpoint (in file src/routers/api.py) which will react to POST /api/v1/games with JSON
Where “max_players” is limited to values 2-6
If success, append a new room to the imported object "game_manager" (method add_new_game), then return JSON with a status code 200 (Ok):
If the room exists with a specific name, return JSON with a status code 403 (Forbidden):
The text was updated successfully, but these errors were encountered: