-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreq.http
59 lines (38 loc) · 993 Bytes
/
req.http
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#-----------------------------------------------------------
# 0. Local Envs
@PORT=3000
@HOSTNAME=http://localhost
@HOST=http://localhost:{{PORT}}
@API={{HOST}}/api
#-----------------------------------------------------------
# 1. Members
### 1.1. Create a Member
POST {{API}}/members
content-type: application/json
{
"email": "philippefanaro@gmail.com",
"first_name": "Philippe",
"last_name": "Fanaro"
}
### 1.2. Select All Members
GET {{API}}/members
#-----------------------------------------------------------
# 2. Tournaments
### 2.1. Create a Tournament
POST {{API}}/tournaments
content-type: application/json
{
"name": "Chicago Open"
}
### 2.2. Select All Tournaments
GET {{API}}/tournaments
#-----------------------------------------------------------
# 3. Games
### 3.1. Create a Game
POST {{API}}/games
content-type: application/json
{
}
### 3.2. Select All Games
GET {{API}}/games
#-----------------------------------------------------------