From 118634a20764de3c760efb060e02005780f192d4 Mon Sep 17 00:00:00 2001 From: Shubham Varshney <16763337+shubhamv108@users.noreply.github.com> Date: Fri, 8 Sep 2023 21:34:40 +0530 Subject: [PATCH] uf --- ServerSentEvents.postman_collection.json | 157 +++++++++++++++++++++++ 1 file changed, 157 insertions(+) create mode 100644 ServerSentEvents.postman_collection.json diff --git a/ServerSentEvents.postman_collection.json b/ServerSentEvents.postman_collection.json new file mode 100644 index 0000000..1239407 --- /dev/null +++ b/ServerSentEvents.postman_collection.json @@ -0,0 +1,157 @@ +{ + "info": { + "_postman_id": "c1204209-805e-45ac-a3e7-e95abb73ca3e", + "name": "ServerSentEvents", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", + "_exporter_id": "5074949" + }, + "item": [ + { + "name": "StreamFlux", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, + "request": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "text/event-stream", + "type": "text" + } + ], + "url": { + "raw": "http://localhost:8080/stream-flux", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8080", + "path": [ + "stream-flux" + ] + } + }, + "response": [] + }, + { + "name": "[POST] userevents", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "text/event-stream", + "type": "text", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"eventId\": \"cda2e742-915b-43cf-954a-b768cb0bbd62\",\n \"name\": \"test1\",\n \"type\": \"test\",\n \"value\": \"test\",\n \"timestamp\": \"2023-08-27T05:49:41.000Z\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://localhost:8080/sse/user/2/events", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8080", + "path": [ + "sse", + "user", + "2", + "events" + ] + } + }, + "response": [] + }, + { + "name": "[GET] userevents", + "protocolProfileBehavior": { + "disableBodyPruning": true, + "disabledSystemHeaders": { + "accept": true + } + }, + "request": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "text/event-stream", + "type": "text", + "disabled": true + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"eventId\": \"cda2e742-915b-43cf-954a-b768cb0bbd62\",\n \"name\": \"test1\",\n \"type\": \"test\",\n \"value\": \"test\",\n \"timestamp\": \"2023-08-26T23:35:35.000Z\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://localhost:8080/sse/user/2/events", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8080", + "path": [ + "sse", + "user", + "2", + "events" + ] + } + }, + "response": [] + }, + { + "name": "StreamSSE", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "http://localhost:8080/sse/stream-sse?userId=2×tamp=2023-08-27T05:49:40.000+00:00", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8080", + "path": [ + "sse", + "stream-sse" + ], + "query": [ + { + "key": "userId", + "value": "2" + }, + { + "key": "timestamp", + "value": "2023-08-27T05:49:40.000+00:00" + } + ] + } + }, + "response": [] + } + ] +} \ No newline at end of file