Skip to content

Commit a51771d

Browse files
committed
Added Postman requests.
1 parent 30d850a commit a51771d

File tree

1 file changed

+87
-0
lines changed

1 file changed

+87
-0
lines changed

sse-service.postman_collection.json

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
{
2+
"info": {
3+
"_postman_id": "d1b583a4-c5da-467d-87eb-fa47b5a744ee",
4+
"name": "SSE Service",
5+
"description": "Server-sent Events (SSE)",
6+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
7+
},
8+
"item": [
9+
{
10+
"name": "GET Server-sent events",
11+
"request": {
12+
"method": "GET",
13+
"header": [
14+
{
15+
"key": "Accept",
16+
"value": "text/event-stream"
17+
}
18+
],
19+
"body": {},
20+
"url": {
21+
"raw": "http://localhost:8080/sse-service/api/events",
22+
"protocol": "http",
23+
"host": [
24+
"localhost"
25+
],
26+
"port": "8080",
27+
"path": [
28+
"sse-service",
29+
"api",
30+
"events"
31+
]
32+
}
33+
},
34+
"response": []
35+
},
36+
{
37+
"name": "DELETE and close SSE",
38+
"request": {
39+
"method": "DELETE",
40+
"header": [],
41+
"body": {
42+
"mode": "raw",
43+
"raw": ""
44+
},
45+
"url": {
46+
"raw": "http://localhost:8080/sse-service/api/events",
47+
"protocol": "http",
48+
"host": [
49+
"localhost"
50+
],
51+
"port": "8080",
52+
"path": [
53+
"sse-service",
54+
"api",
55+
"events"
56+
]
57+
}
58+
},
59+
"response": []
60+
},
61+
{
62+
"name": "POST a message to Server-sent events",
63+
"request": {
64+
"method": "POST",
65+
"header": [],
66+
"body": {
67+
"mode": "raw",
68+
"raw": "Hello SSE events!"
69+
},
70+
"url": {
71+
"raw": "http://localhost:8080/sse-service/api/events",
72+
"protocol": "http",
73+
"host": [
74+
"localhost"
75+
],
76+
"port": "8080",
77+
"path": [
78+
"sse-service",
79+
"api",
80+
"events"
81+
]
82+
}
83+
},
84+
"response": []
85+
}
86+
]
87+
}

0 commit comments

Comments
 (0)