aboutsummaryrefslogtreecommitdiff
path: root/api/tests.sh
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-03-10 14:00:40 +0100
committerlonkaars <l.leblansch@gmail.com>2021-03-10 14:00:40 +0100
commitba0e25a47082ada94565da07b2451ff00d0e2857 (patch)
tree0fa43c75dbac5ed986282729f846e2c2f44ac9d0 /api/tests.sh
parent7a3e0e1670ef84ac9ca94514f20d92ed2bd8e468 (diff)
/user/games done
Diffstat (limited to 'api/tests.sh')
-rwxr-xr-xapi/tests.sh19
1 files changed, 14 insertions, 5 deletions
diff --git a/api/tests.sh b/api/tests.sh
index 5281acf..8ee9d68 100755
--- a/api/tests.sh
+++ b/api/tests.sh
@@ -91,12 +91,21 @@
# sleep 10
# random_game_2
-search () {
- curl \
+# search () {
+# curl \
+# -H "Content-Type: application/json" \
+# -d "{ \"query\": \"$1\" }" \
+# localhost:2080/api/social/search
+# }
+
+# search loekaars
+
+games () {
+ curl -X POST \
-H "Content-Type: application/json" \
- -d "{ \"query\": \"$1\" }" \
- localhost:2080/api/social/search
+ -d "{ \"id\": \"4577c119-c768-4ad5-afec-b53a5c19baf4\" }" \
+ localhost:2080/api/user/games
}
-search loekaars
+games