diff options
Diffstat (limited to 'api/tests.sh')
-rwxr-xr-x | api/tests.sh | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/api/tests.sh b/api/tests.sh index 391aa0f..2c73156 100755 --- a/api/tests.sh +++ b/api/tests.sh @@ -4,9 +4,21 @@ signup () { curl -X POST \ -H "Content-Type: application/json" \ -d '{ - "username": "test", - "email": "test@example.com", + "username": "gert", + "email": "gert@example.com", "password": "password123" }' \ localhost:5000/api/auth/signup } + +login () { + curl -X POST \ + -H "Content-Type: application/json" \ + -d '{ + "email": "gert@example.com", + "password": "password123" + }' \ + localhost:5000/api/auth/login +} + +login |