-
Notifications
You must be signed in to change notification settings - Fork 1
/
command-requests.http
108 lines (78 loc) · 2.2 KB
/
command-requests.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
### Room Creation ###
### Create Chat Room with random UUID from CommandController
POST localhost:8080/rooms
Accept: application/json
Content-Type: application/json
{
"name": "Axon Chat Room - Random UUID"
}
### Create Chat Room with static UUID
POST localhost:8080/rooms
Accept: application/json
Content-Type: application/json
{
"roomId": "309378bc-c393-4820-98b6-b45cc68dc8be",
"name": "Axon Chat Room - Static UUID"
}
### Joining the ChatRoom ###
### "Steven" is joining the static ChatRoom
POST localhost:8080/rooms/309378bc-c393-4820-98b6-b45cc68dc8be/participants
Accept: application/json
Content-Type: application/json
{
"name": "Steven"
}
### "Milan" is joining the static ChatRoom
POST localhost:8080/rooms/309378bc-c393-4820-98b6-b45cc68dc8be/participants
Accept: application/json
Content-Type: application/json
{
"name": "Milan"
}
### "Yvonne" is joining the static ChatRoom
POST localhost:8080/rooms/309378bc-c393-4820-98b6-b45cc68dc8be/participants
Accept: application/json
Content-Type: application/json
{
"name": "Yvonne"
}
### "Allard" is joining the static ChatRoom
POST localhost:8080/rooms/309378bc-c393-4820-98b6-b45cc68dc8be/participants
Accept: application/json
Content-Type: application/json
{
"name": "Allard"
}
### Posting Messages ###
### "Steven" posts a message in the static ChatRoom
POST localhost:8080/rooms/309378bc-c393-4820-98b6-b45cc68dc8be/messages
Accept: application/json
Content-Type: application/json
{
"participant": "Steven",
"message": "I am happy to be your trainer!"
}
### "Milan" posts a message in the static ChatRoom
POST localhost:8080/rooms/309378bc-c393-4820-98b6-b45cc68dc8be/messages
Accept: application/json
Content-Type: application/json
{
"participant": "Milan",
"message": "I am happy to be your trainer!"
}
### Leaving the ChatRoom ###
### "Allard" leaves to the static ChatRoom
DELETE localhost:8080/rooms/309378bc-c393-4820-98b6-b45cc68dc8be/participants
Accept: application/json
Content-Type: application/json
{
"name": "Allard"
}
### "Steven" leaves to the static ChatRoom
DELETE localhost:8080/rooms/309378bc-c393-4820-98b6-b45cc68dc8be/participants
Accept: application/json
Content-Type: application/json
{
"name": "Steven"
}
###