diff options
Diffstat (limited to 'test/users.post.http')
-rw-r--r-- | test/users.post.http | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/test/users.post.http b/test/users.post.http new file mode 100644 index 0000000..f9de355 --- /dev/null +++ b/test/users.post.http @@ -0,0 +1,45 @@ +# -*- restclient -*- + +# +# Create User for make Heroe +# + +# Register - Admin User +POST http://localhost:5000/api/v1/auth/signup +Content-Type: application/json + +{ + "username": "admin", + "email": "admin@example.com", + "password": "adminpass", + "admin": true +} + +# Register - Standar User +POST http://localhost:5000/api/v1/auth/signup +Content-Type: application/json + +{ + "username": "user", + "email": "user@example.com", + "password": "userpass", + "admin": false +} + +# Generate Token for User admin +POST http://localhost:5000/api/v1/auth/token +Content-Type: application/json + +{ + "email": "admin@example.com", + "password": "adminpass" +} + +# Generate Token for User Standar +POST http://localhost:5000/api/v1/auth/token +Content-Type: application/json + +{ + "email": "user@example.com", + "password": "userpass" +} |