-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpostman.collection.json
1 lines (1 loc) · 14.2 KB
/
postman.collection.json
1
{"info":{"name":"social media","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json"},"item":[{"name":"user","item":[{"name":"user specific","item":[{"name":"create user","request":{"method":"POST","url":{"raw":"{{baseurl}}/user","host":["{{baseurl}}"],"path":["user"]},"header":[{"key":"apikey","value":"{{apikey}}"}],"body":{"mode":"raw","options":{"raw":{"language":"json"}},"raw":"{\n \"username\" : \"new user\",\n \"email\" : \"[email protected]\",\n \"password\" : \"strongpassword\"\n}"}}},{"name":"log in user 1","request":{"method":"POST","url":{"raw":"{{baseurl}}/user/login","query":[{"key":"apikey","value":"{{apikey}}","disabled":true}],"variable":[],"host":["{{baseurl}}"],"path":["user","login"]},"header":[{"key":"apikey","value":"{{apikey}}"}],"body":{"mode":"raw","options":{"raw":{"language":"json"}},"raw":"{\n \"email\" : \"[email protected]\",\n \"password\" : \"password2\"\n}"}}},{"name":"log out user","request":{"method":"POST","url":{"raw":"{{baseurl}}/user/logout","query":[{"key":"apikey","value":"{{apikey}}","disabled":true}],"variable":[],"host":["{{baseurl}}"],"path":["user","logout"]},"header":[{"key":"apikey","value":"{{apikey}}"}]}},{"name":"delete account","request":{"method":"DELETE","url":{"raw":"{{baseurl}}/user","query":[{"key":"apikey","value":"{{apikey}}","disabled":true}],"variable":[],"host":["{{baseurl}}"],"path":["user"]},"header":[{"key":"apikey","value":"{{apikey}}"}]}},{"name":"login user 2","request":{"method":"POST","url":{"raw":"{{baseurl}}/user/login","query":[{"key":"apikey","value":"{{apikey}}","disabled":true}],"variable":[],"host":["{{baseurl}}"],"path":["user","login"]},"header":[{"key":"apikey","value":"{{apikey}}"}],"body":{"mode":"raw","options":{"raw":{"language":"json"}},"raw":"{\n \"email\" : \"[email protected]\",\n \"password\" : \"password\"\n}"}}},{"name":"login user 3","request":{"method":"POST","url":{"raw":"{{baseurl}}/user/login","query":[{"key":"apikey","value":"{{apikey}}","disabled":true}],"variable":[],"host":["{{baseurl}}"],"path":["user","login"]},"header":[{"key":"apikey","value":"{{apikey}}"}],"body":{"mode":"raw","options":{"raw":{"language":"json"}},"raw":"{\n \"email\" : \"[email protected]\",\n \"password\" : \"password\"\n}"}}},{"name":"get user","request":{"method":"GET","url":{"raw":"{{baseurl}}/user/62e23cfe999f3b3c541704b4","host":["{{baseurl}}"],"path":["user","62e23cfe999f3b3c541704b4"]},"header":[{"key":"apikey","value":"{{apikey}}"}]}},{"name":" get all user ","request":{"method":"GET","url":{"raw":"{{baseurl}}/user/all?lt=2&page=2","query":[{"key":"apikey","value":"{{apikey}}","disabled":true},{"key":"lt","value":"2"},{"key":"page","value":"2"}],"variable":[],"host":["{{baseurl}}"],"path":["user","all"]},"header":[{"key":"apikey","value":"{{apikey}}"}]}}]},{"name":"profile photo","item":[{"name":"set profile pic","request":{"method":"PUT","url":{"raw":"{{baseurl}}/user/avatar","query":[{"key":"apikey","value":"{{apikey}}","disabled":true}],"variable":[],"host":["{{baseurl}}"],"path":["user","avatar"]},"header":[{"key":"apikey","value":"{{apikey}}"}],"body":{"mode":"formdata","formdata":[{"key":"avatar","src":"C:\\Users\\CODECLOUDS-ARITRA\\Downloads\\aritra.hiring.JPEG","type":"file"}]}}},{"name":"show profile pic","request":{"method":"GET","url":{"raw":"{{baseurl}}/user/62e23cfe999f3b3c541704b4/avatar","host":["{{baseurl}}"],"path":["user","62e23cfe999f3b3c541704b4","avatar"]},"header":[{"key":"apikey","value":"{{apikey}}"}]}},{"name":"remove profile pic","request":{"method":"DELETE","url":{"raw":"{{baseurl}}/user/avatar","query":[{"key":"apikey","value":"{{apikey}}","disabled":true}],"variable":[],"host":["{{baseurl}}"],"path":["user","avatar"]},"header":[{"key":"apikey","value":"{{apikey}}"}]}}]},{"name":"password","item":[{"name":"forget password","request":{"method":"PUT","url":{"raw":"{{baseurl}}/user/forgetpassword","query":[{"key":"apikey","value":"{{apikey}}","disabled":true}],"variable":[],"host":["{{baseurl}}"],"path":["user","forgetpassword"]},"header":[{"key":"apikey","value":"{{apikey}}"}],"body":{"mode":"raw","options":{"raw":{"language":"json"}},"raw":"{\n \"email\" : \"[email protected]\"\n}"}}},{"name":"reset password","request":{"method":"PUT","url":{"raw":"{{baseurl}}/user/resetpassword/c9d7ffcfbedd7dcda3cdb623b3060cbadd8ed21b","host":["{{baseurl}}"],"path":["user","resetpassword","c9d7ffcfbedd7dcda3cdb623b3060cbadd8ed21b"]},"header":[{"key":"apikey","value":"{{apikey}}"}],"body":{"mode":"raw","options":{"raw":{"language":"json"}},"raw":"{\n \"password\" : \"password2\",\n \"confirmPassword\" : \"password2\"\n}"}}}]}]},{"name":"posts","item":[{"name":"crud post","item":[{"name":"create post","request":{"method":"POST","url":{"raw":"{{baseurl}}/post/new","query":[{"key":"apikey","value":"{{apikey}}","disabled":true}],"variable":[],"host":["{{baseurl}}"],"path":["post","new"]},"header":[{"key":"apikey","value":"{{apikey}}"}],"body":{"mode":"formdata","formdata":[{"key":"tags[0]","value":"greed","type":"default"},{"key":"tags[1]","value":"","type":"default"},{"key":"description","value":"Once a fix was feeling very hungry . She wandered around in search of food. Finally having exhausted herself , she sat under a tree. She noticed a crow sitting on the tree. He had a small piece of meat in its beak. The Fox wanted to have the piece for herself at all costs . She thought of a good plan. Changing her tone she said Dear crow , your voice is so swee I would be so lucky if I get to hear a song in your sweet voice . The crow was delighted because of the unexpected praise he got. The moment he started singing , the piece fell from his mouth. The Fox ate it at once.Moral is Think before you act Don''t be fooled by false praise","type":"default"},{"key":"title","value":"The brown fox story 2","type":"default"},{"key":"media","src":"C:\\Users\\CODECLOUDS-ARITRA\\Downloads\\video.mp4","disabled":true,"type":"file"},{"key":"media","src":"C:\\Users\\CODECLOUDS-ARITRA\\Pictures\\Screenshots\\Screenshot (6).png","type":"file"}]}}},{"name":"update post","request":{"method":"PUT","url":{"raw":"{{baseurl}}/post/62d68493c66b1193baf90e00","query":[{"key":"apikey","value":"{{apikey}}","disabled":true}],"variable":[],"host":["{{baseurl}}"],"path":["post","62d68493c66b1193baf90e00"]},"header":[{"key":"apikey","value":"{{apikey}}"}],"body":{"mode":"formdata","formdata":[{"key":"title","value":"The brown fox story 2","type":"default"},{"key":"tags[0]","value":"walhalla","type":"default"},{"key":"description","value":"Once a fix was feeling very hungry . She wandered around in search of food. Finally having exhausted herself , she sat under a tree. She noticed a crow sitting on the tree. He had a small piece of meat in its beak. The Fox wanted to have the piece for herself at all costs . She thought of a good plan. Changing her tone she said Dear crow , your voice is so swee I would be so lucky if I get to hear a song in your sweet voice . The crow was delighted because of the unexpected praise he got. The moment he started singing , the piece fell from his mouth. The Fox ate it at once.Moral is Think before you act Don''t be fooled by false praise","type":"default"},{"key":"media","src":"C:\\Users\\CODECLOUDS-ARITRA\\Downloads\\lord-shiva-on-earth-hd-wallpaper-for-iphone.jpg","type":"file"}]}}},{"name":"get post","request":{"method":"GET","url":{"raw":"{{baseurl}}/post/62d684ccc66b2193baf90fe6","query":[{"key":"apikey","value":"{{apikey}}","disabled":true}],"variable":[],"host":["{{baseurl}}"],"path":["post","62d684ccc66b2193baf90fe6"]},"header":[{"key":"apikey","value":"{{apikey}}"}]}},{"name":"get all posts","request":{"method":"GET","url":{"raw":"{{baseurl}}/post?srt=mr&tags=love","query":[{"key":"keyword","value":"fox","disabled":true},{"key":"srt","value":"mr"},{"key":"lt","value":"2","disabled":true},{"key":"page","value":"2","disabled":true},{"key":"tags","value":"love"},{"key":"apikey","value":"{{apikey}}","disabled":true},{"key":"random","value":"1","disabled":true},{"key":"anotherone","value":"shjflks","disabled":true},{"key":"srt","value":"mp","disabled":true}],"variable":[],"host":["{{baseurl}}"],"path":["post"]},"header":[{"key":"apikey","value":"{{apikey}}"}]}},{"name":"delete post","request":{"method":"DELETE","url":{"raw":"{{baseurl}}/post/62de6ed80383fbabf17234be","query":[{"key":"apikey","value":"{{apikey}}","disabled":true},{"key":"thkah","value":"lkjfsj","disabled":true}],"variable":[],"host":["{{baseurl}}"],"path":["post","62de6ed80383fbabf17234be"]},"header":[{"key":"apikey","value":"{{apikey}}"}]}}]},{"name":"comment","item":[{"name":"reaction","item":[{"name":"add reaction","request":{"method":"POST","url":{"raw":"{{baseurl}}/post/62d684ccc66b1193baf90fe6/comment/62d6871cd6e0d463861dded0/reaction?apikey={{apikey}}","query":[{"key":"apikey","value":"{{apikey}}"}],"variable":[],"host":["{{baseurl}}"],"path":["post","62d684ccc66b1193baf90fe6","comment","62d6871cd6e0d463861dded0","reaction"]},"body":{"mode":"raw","options":{"raw":{"language":"json"}},"raw":"{\n \"reactionType\" : \"haha\"\n}"}}},{"name":"update reaction","request":{"method":"PATCH","url":{"raw":"{{baseurl}}/post/62d684ccc66b1193baf90fe6/comment/62d6871cd6e0d463861dded0/reaction?apikey={{apikey}}","query":[{"key":"apikey","value":"{{apikey}}"}],"variable":[],"host":["{{baseurl}}"],"path":["post","62d684ccc66b1193baf90fe6","comment","62d6871cd6e0d463861dded0","reaction"]},"body":{"mode":"raw","options":{"raw":{"language":"json"}},"raw":"{\n \"reactionType\" : \"care\"\n}"}}},{"name":"remove reaction","request":{"method":"DELETE","url":{"raw":"{{baseurl}}/post/62d684ccc66b1193baf90fe6/comment/62d6871cd6e0d463861dded0/reaction?apikey={{apikey}}","query":[{"key":"apikey","value":"{{apikey}}"}],"variable":[],"host":["{{baseurl}}"],"path":["post","62d684ccc66b1193baf90fe6","comment","62d6871cd6e0d463861dded0","reaction"]}}}]},{"name":"add comment","request":{"method":"POST","url":{"raw":"{{baseurl}}/post/62d684ccc66b1193baf90fe6/comment/new?apikey={{apikey}}","query":[{"key":"apikey","value":"{{apikey}}"}],"variable":[],"host":["{{baseurl}}"],"path":["post","62d684ccc66b1193baf90fe6","comment","new"]},"header":[{"key":"apikey","value":"{{apikey}}"}],"body":{"mode":"raw","options":{"raw":{"language":"json"}},"raw":"{\n \"text\" : \"some reply\",\n \"parentId\" : \"62df6d659e0a576e2404f5dc\"\n}"}}},{"name":"edit comment","request":{"method":"PUT","url":{"raw":"{{baseurl}}/post/62d684ccc66b1193baf90fe6/comment/62df6e339e0a576e2404f5e3","query":[{"key":"apikey","value":"{{apikey}}","disabled":true}],"variable":[],"host":["{{baseurl}}"],"path":["post","62d684ccc66b1193baf90fe6","comment","62df6e339e0a576e2404f5e3"]},"header":[{"key":"apikey","value":"{{apikey}}"}],"body":{"mode":"raw","options":{"raw":{"language":"json"}},"raw":"{\n \"text\" : \"updated comment\"\n}"}}},{"name":"remove comment","request":{"method":"DELETE","url":{"raw":"{{baseurl}}/post/62d684ccc66b1193baf90fe6/comment/62d68713d6e0d463861ddec8","query":[{"key":"apikey","value":"{{apikey}}","disabled":true}],"variable":[],"host":["{{baseurl}}"],"path":["post","62d684ccc66b1193baf90fe6","comment","62d68713d6e0d463861ddec8"]},"header":[{"key":"apikey","value":"{{apikey}}"}]}},{"name":"get comments","request":{"method":"GET","url":{"raw":"{{baseurl}}/post/62d684cccb119b63baf90fe6/comment/all?lt=1&srt=mr","query":[{"key":"apikey","value":"{{apikey}}","disabled":true},{"key":"lt","value":"1"},{"key":"page","value":"1","disabled":true},{"key":"srt","value":"mr"}],"variable":[],"host":["{{baseurl}}"],"path":["post","62d684cccb119b63baf90fe6","comment","all"]},"header":[{"key":"apikey","value":"{{apikey}}"}]}},{"name":"get comment","request":{"method":"GET","url":{"raw":"{{baseurl}}/post/62d684ccc6bb1193baf90fe6/comment/62d6871cd6e0d463861dded0","query":[{"key":"apikey","value":"{{apikey}}","disabled":true}],"variable":[],"host":["{{baseurl}}"],"path":["post","62d684ccc6bb1193baf90fe6","comment","62d6871cd6e0d463861dded0"]},"header":[{"key":"apikey","value":"{{apikey}}"}]}}]},{"name":"post reaction","item":[{"name":"add reaction","request":{"method":"POST","url":{"raw":"{{baseurl}}/post/62d94ef984e7c184d0a0cfc1/reaction?apikey={{apikey}}","query":[{"key":"apikey","value":"{{apikey}}"}],"variable":[],"host":["{{baseurl}}"],"path":["post","62d94ef984e7c184d0a0cfc1","reaction"]},"body":{"mode":"raw","options":{"raw":{"language":"json"}},"raw":"{\n \"reactionType\":\"lol\"\n}"}}},{"name":"update reaction","request":{"method":"PATCH","url":{"raw":"{{baseurl}}/post/62d94ef984e7c184d0a0cfc1/reaction?apikey={{apikey}}","query":[{"key":"apikey","value":"{{apikey}}"}],"variable":[],"host":["{{baseurl}}"],"path":["post","62d94ef984e7c184d0a0cfc1","reaction"]},"body":{"mode":"raw","options":{"raw":{"language":"json"}},"raw":"{\n \"reactionType\": \"care\"\n}"}}},{"name":"remove reaction","request":{"method":"DELETE","url":{"raw":"{{baseurl}}/post/62d68493c66b1193baf90e00/reaction?apikey={{apikey}}","query":[{"key":"apikey","value":"{{apikey}}"}],"variable":[],"host":["{{baseurl}}"],"path":["post","62d68493c66b1193baf90e00","reaction"]}}}]},{"name":"stream file","request":{"method":"GET","url":{"raw":"{{baseurl}}/post/62d79f978aa804de69a9ea39/media","query":[{"key":"apikey","value":"{{apikey}}","disabled":true}],"variable":[],"host":["{{baseurl}}"],"path":["post","62d79f978aa804de69a9ea39","media"]},"header":[{"key":"apikey","value":"{{apikey}}"}]}},{"name":"user specific posts","request":{"method":"GET","url":{"raw":"{{baseurl}}/user/62d683d17bc23f17bccb3162/posts?lt=2","query":[{"key":"apikey","value":"{{apikey}}","disabled":true},{"key":"lt","value":"2"}],"variable":[],"host":["{{baseurl}}"],"path":["user","62d683d17bc23f17bccb3162","posts"]},"header":[{"key":"apikey","value":"{{apikey}}"}]}},{"name":"default path","request":{"method":"GET","url":{"raw":"{{baseurl}}/documentaion","host":["{{baseurl}}"],"path":["documentaion"]},"header":[{"key":"apikey","value":"{{apikey}}"}]}}]},{"name":"fsfsf","request":{"method":"GET","url":{"raw":"http://localhost:1020/api/v1/documentaion","query":[{"key":"apikey","value":"4fcc807ead48669c976b","disabled":true}],"variable":[],"protocol":"http","host":["localhost:1020"],"path":["api","v1","documentaion"],"port":"1020"}}}],"auth":{"type":"bearer","bearer":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYyZTIzY2ZlOTk5ZjNiM2M1NDE3MDRiNCIsImlhdCI6MTY1OTA3MzI1MX0.3A2XV6SUPK2kBiarYAm9MJ7dY2W7tQYRkBkWS0JccJo","type":"string"}]}}