aboutsummaryrefslogtreecommitdiffstats
path: root/test/users.post.http
blob: f9de355f0ba606098ab8fd229281641fa4f1989a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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"
}