[SRD] Added postman collection

Added postman collection for quick reference of how to invoke the APIs
parent 9c91233d
{
"variables": [],
"info": {
"name": "Spring Webflux",
"_postman_id": "d9593401-54b0-bf5c-e87e-e088f27ec4b9",
"description": "",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item": [
{
"name": "GetAllTweets",
"request": {
"url": "http://localhost:8080/myTweets",
"method": "GET",
"header": [],
"body": {},
"description": ""
},
"response": []
},
{
"name": "Create Tweet",
"request": {
"url": "http://localhost:8080/createTweet",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"id\": \"3\",\n\t\"text\": \"Spring Reactive Example\"\n}"
},
"description": ""
},
"response": []
},
{
"name": "GetTweetById",
"request": {
"url": "http://localhost:8080/myTweets/1",
"method": "GET",
"header": [],
"body": {},
"description": "API to get the Tweet details by Tweet Id"
},
"response": []
},
{
"name": "UpdateTweetById",
"request": {
"url": "http://localhost:8080/myTweets/1",
"method": "PUT",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"text\": \"Updated the previous tweet\"\n}"
},
"description": "Update the existing Tweet By TweetId"
},
"response": []
},
{
"name": "DeleteTweetById",
"request": {
"url": "http://localhost:8080/myTweets/1",
"method": "DELETE",
"header": [],
"body": {},
"description": "Delete an existing Tweet by Tweet id"
},
"response": []
},
{
"name": "TweetsAsServerSentEvents",
"request": {
"url": "http://localhost:8080/stream/tweets",
"method": "GET",
"header": [],
"body": {},
"description": "Tweets are Sent to the client as Server Sent Events"
},
"response": []
}
]
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment