diff options
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 |