diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-03-12 15:24:25 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-03-12 15:24:25 +0100 |
commit | a69b5df8beddb4a9b492e29ba32747c368666239 (patch) | |
tree | e1d0a5b9a6cc9f5e3291759eb74539422a672050 /api/tests.sh | |
parent | 3d36847211e37c5aed0a7fdda5c2a00399fdc66e (diff) |
friend request api endpoints
Diffstat (limited to 'api/tests.sh')
-rwxr-xr-x | api/tests.sh | 34 |
1 files changed, 26 insertions, 8 deletions
diff --git a/api/tests.sh b/api/tests.sh index 8ee9d68..3e4dae2 100755 --- a/api/tests.sh +++ b/api/tests.sh @@ -100,12 +100,30 @@ # search loekaars -games () { - curl -X POST \ - -H "Content-Type: application/json" \ - -d "{ \"id\": \"4577c119-c768-4ad5-afec-b53a5c19baf4\" }" \ - localhost:2080/api/user/games -} - -games +# games () { +# curl -X POST \ +# -H "Content-Type: application/json" \ +# -d "{ \"id\": \"4577c119-c768-4ad5-afec-b53a5c19baf4\" }" \ +# localhost:2080/api/user/games +# } + +# games + +curl -X POST \ + -H "Content-Type: application/json" \ + --cookie "token= 40183c739ae198cee3718c81c72b1bbd56ff83d9fcdbb9badb9ecef3684f98cf8df391aa31a8c1c8cfa55d1161a847fd60040c5b28104892e20b2d7e6eaf1cfc79f3bb288b50718c015834f3c162e1d3c771afc23d53b316b20ab20922244c0ddec789d3427b6bbaba766dee34f77b792cce2a1cd8e65ae69b16289d285d93e3" \ + -d '{ + "id": "a651f66c-a769-40a7-a962-0a4e1bd38d42" + }' \ + localhost:2080/api/social/block + +sleep 10 + +curl -X POST \ + -H "Content-Type: application/json" \ + --cookie "token= 40183c739ae198cee3718c81c72b1bbd56ff83d9fcdbb9badb9ecef3684f98cf8df391aa31a8c1c8cfa55d1161a847fd60040c5b28104892e20b2d7e6eaf1cfc79f3bb288b50718c015834f3c162e1d3c771afc23d53b316b20ab20922244c0ddec789d3427b6bbaba766dee34f77b792cce2a1cd8e65ae69b16289d285d93e3" \ + -d '{ + "id": "a651f66c-a769-40a7-a962-0a4e1bd38d42" + }' \ + localhost:2080/api/social/request |