-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrequests.http
73 lines (54 loc) · 1.33 KB
/
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
### Get all users
GET http://localhost:8080/mvc/users
### Create new user
POST http://localhost:8080/mvc/users
Content-Type: application/json
{
"login": "dummy"
}
> {%
client.assert(response.status === 200);
client.global.set("userId", response.body.id);
%}
### Get single user
GET http://localhost:8080/mvc/users/{{userId}}
### Delete user
DELETE http://localhost:8080/mvc/users/{{userId}}
> {%
client.assert(response.status === 200);
client.global.clear("userId");
%}
### Users SSE
GET http://localhost:8080/sse/users/events
### Upper case SSE - start
POST http://localhost:8080/sse/upper-case?input=a
> {%
client.assert(response.status === 200);
client.global.set("uuid", response.body);
%}
### Upper case SSE - results
GET http://localhost:8080/sse/upper-case/{{uuid}}
### No streaming
GET http://localhost:8080/streaming/users
### SSE streaming
GET http://localhost:8080/streaming/users/sse
### NDJSON streaming
GET http://localhost:8080/streaming/users/ndjson
### Upper case echo - WebSocket
WEBSOCKET ws://localhost:8080/ws/upper-case-echo
===
marcin
=== wait-for-server
===
tomasz
=== wait-for-server
### Get all users - WebSocket
WEBSOCKET ws://localhost:8080/ws/users
### Get user by login - WebSocker
WEBSOCKET ws://localhost:8080/ws/user
===
chrosciu
=== wait-for-server
===
octocat
=== wait-for-server