From df88da842a40280ba3beae3c3c619899b9c9bee7 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Fri, 22 Oct 2021 20:27:34 +0100 Subject: [PATCH] add subscribe example --- stream/examples.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/stream/examples.json b/stream/examples.json index 23f2df6..e2e8e7e 100644 --- a/stream/examples.json +++ b/stream/examples.json @@ -9,5 +9,17 @@ "message": {"id": "1", "type": "signup", "user": "john"} }, "response": {} + }], + "subscribe": [{ + "title": "Subscribe to a topic", + "description": "Subscribe to messages on a given topic from the stream", + "run_check": false, + "request": { + "topic": "events" + }, + "response": { + "topic": "events", + "message": {"id": "1", "type": "signup", "user": "john"} + } }] }