From 97b3cc52f0ad3c90cbd934dc91c180be2f756754 Mon Sep 17 00:00:00 2001 From: Yash Solanki Date: Mon, 16 Oct 2023 01:05:51 +0530 Subject: [PATCH] Fix endpoints for accessing latest checkin --- .../checkinswithstreams/index-checkinswithstreams.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/develop/node/node-crash-course/checkinswithstreams/index-checkinswithstreams.mdx b/docs/develop/node/node-crash-course/checkinswithstreams/index-checkinswithstreams.mdx index 51db284ff3..8db59ac1c2 100644 --- a/docs/develop/node/node-crash-course/checkinswithstreams/index-checkinswithstreams.mdx +++ b/docs/develop/node/node-crash-course/checkinswithstreams/index-checkinswithstreams.mdx @@ -129,7 +129,7 @@ const latestCheckin = await redisClient.xrevrange(checkinStreamKey, 'TODO'); Remember: When using ioredis, each parameter to a Redis command needs to be passed as a separate value. -Test your code by visiting `http://localhost:8081/checkins/latest` - you should see a JSON representation of a checkin. +Test your code by visiting `http://localhost:8081/api/checkins/latest` - you should see a JSON representation of a checkin. To make sure your code returns the latest checkin, you need to POST a checking using Postman. Start the Checkin Receiver component in a new terminal window: @@ -141,7 +141,7 @@ Then use Postman to POST a checkin. In Postman, open a new request, configure it ![Checkin Test with Postman](images/xrevrange_checkin_test.png) -Now when you refresh `http://localhost:8081/checkins/latest` in your browser, the values shown should match those that you supplied in Postman. +Now when you refresh `http://localhost:8081/api/checkins/latest` in your browser, the values shown should match those that you supplied in Postman. ## External Resources