diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-02-12 18:56:52 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-02-12 18:56:52 +0100 |
commit | 5f391aadbcc818ab7fa13312fb2ee04ed02983c6 (patch) | |
tree | 59a50473839a26370b6d1a51cb430adb49b26536 /api/tests.sh | |
parent | b8f3a658253bb5991a3d034733b685cc7d543704 (diff) |
base /api/game/new
Diffstat (limited to 'api/tests.sh')
-rwxr-xr-x | api/tests.sh | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/api/tests.sh b/api/tests.sh index 002f85f..3882699 100755 --- a/api/tests.sh +++ b/api/tests.sh @@ -54,5 +54,23 @@ user_info () { # localhost:5000/api/auth/token # } -user_info +new_game () { + curl -X POST \ + -H "Content-Type: application/json" \ + -d '{ + "user_id": "4577c119-c768-4ad5-afec-b53a5c19baf4", + "settings": { + "ranked": true, + "timelimit": { + "minutes": 5, + "seconds": 30, + "enabled": true, + "shared": "false" + } + } + }' \ + localhost:5000/game/new +} + +new_game |