{"info":{"_postman_id":"7013de1c-7e03-42c5-9167-a5567cc8ac42","name":"NewsCurator","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"35384124","collectionId":"7013de1c-7e03-42c5-9167-a5567cc8ac42","publishedId":"2sAYdhLAyB","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"7C3AED"},"publishDate":"2025-03-17T12:26:56.000Z"},"item":[{"name":"Authentication","item":[{"name":"Register","id":"3dd7ef93-6545-43d7-854a-7723c4fbb1bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"Lokitha\",\r\n    \"email\": \"lokitha@gmail.com\",\r\n    \"password\": \"1234\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/auth/register","description":"<p>Registers a new user. Expects a JSON body with user details (username, email, password). Returns a success message if the registration is successful.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","v1","auth","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"77cfb9b3-bdf6-4da3-92c4-240b74363101","name":"Register","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"Lokitha\",\r\n    \"email\": \"lokitha@gmail.com\",\r\n    \"password\": \"1234\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/auth/register"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"30"},{"key":"ETag","value":"W/\"1e-lHzIf3o0Mt42k+FlG0abxkrvmbo\""},{"key":"Date","value":"Thu, 27 Feb 2025 13:49:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"\"User registered successfully\""}],"_postman_id":"3dd7ef93-6545-43d7-854a-7723c4fbb1bf"},{"name":"Login","id":"ba53183d-af38-4292-b9b1-7c9c7b27ffca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"lokitha@gmail.com\",\r\n    \"password\": \"1234\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/auth/login","description":"<p>Authenticates a user. Expects a JSON body with email and password. Returns authentication tokens if successful.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","v1","auth","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"7f268e9f-3ea0-4802-8ec4-d814c8686ad9","name":"Login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"lokitha@gmail.com\",\r\n    \"password\": \"1234\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"439"},{"key":"ETag","value":"W/\"1b7-RFcwdCETZrvQBk/tkRtj8yiPmD4\""},{"key":"Date","value":"Thu, 27 Feb 2025 13:51:06 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6Imxva2l0aGFAZ21haWwuY29tIiwiaWF0IjoxNzQwNjY0MjY2LCJleHAiOjE3NDA2NjQzMjZ9.gJknM_drUEcR3e_XGDPIXDBTkt1YfFNxZ6QPlAQWu7Q\",\n    \"refreshToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6Imxva2l0aGFAZ21haWwuY29tIiwiaWF0IjoxNzQwNjY0MjY2LCJleHAiOjE3NDEyNjkwNjZ9.YwkCz3M8P_Myozz58yWRO6zavjj1LnQWX-mJM6Kby-0\",\n    \"user\": {\n        \"id\": 1,\n        \"username\": \"Lokitha\",\n        \"email\": \"lokitha@gmail.com\"\n    }\n}"}],"_postman_id":"ba53183d-af38-4292-b9b1-7c9c7b27ffca"},{"name":"Refresh Token","id":"93745172-7d1f-4dc4-855d-ecd3120d5022","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"http://localhost:3000/api/v1/auth/refresh-token","description":"<p>Refreshes the authentication token. Expects an authorization header with the refresh token. Returns a new authentication token if successful.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","v1","auth","refresh-token"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"cdb14f15-9719-4db1-b857-449bfae63979","name":"Refresh Token","originalRequest":{"method":"POST","header":[],"url":"http://localhost:3000/api/v1/auth/refresh-token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"187"},{"key":"ETag","value":"W/\"bb-B4R1sh17egbrjvXmxovvxAh7L0I\""},{"key":"Date","value":"Thu, 27 Feb 2025 13:51:38 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6Imxva2l0aGFAZ21haWwuY29tIiwiaWF0IjoxNzQwNjY0Mjk4LCJleHAiOjE3NDA2NjQzNTh9.MvO1Cz-7KKEKSV1-F9-gcrlBYLrXF_xw3U8A6q2hApM\"\n}"}],"_postman_id":"93745172-7d1f-4dc4-855d-ecd3120d5022"}],"id":"69b48adf-d40e-4727-bac8-ef8d56a9067a","_postman_id":"69b48adf-d40e-4727-bac8-ef8d56a9067a","description":""},{"name":"News","item":[{"name":"Save Bookmark News","id":"ef6a70ae-4479-4db0-a0fc-bea42bb942dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"source\": {\r\n        \"name\": \"TechCrunch\"\r\n    },\r\n    \"author\": \"John Doe\",\r\n    \"title\": \"Latest Tech News\",\r\n    \"description\": \"An overview of the latest developments in technology.\",\r\n    \"url\": \"https://techcrunch.com/latest-tech-news\",\r\n    \"urlToImage\": \"https://techcrunch.com/latest-tech-news/image.jpg\",\r\n    \"publishedAt\": \"2023-10-01T12:00:00Z\",\r\n    \"content\": \"The latest tech news includes...\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/v1/news/userId","description":"<p>Saves a news article as a bookmark for the specified user.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","v1","news","userId"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ef6a70ae-4479-4db0-a0fc-bea42bb942dd"},{"name":"Delete Bookmark News","id":"395d80d8-9e2e-40e3-afd9-de70980b526b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3000/api/v1/news/userId/newsId","description":"<p>Deletes a bookmarked news article for the specified user.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","v1","news","userId","newsId"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"395d80d8-9e2e-40e3-afd9-de70980b526b"},{"name":"Find News","id":"bf2e42e1-2ed2-4094-b857-4040f58796da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1/news/userId/pageNo","description":"<p>Retrieves a paginated list of news articles for the specified user.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","v1","news","userId","pageNo"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"bf2e42e1-2ed2-4094-b857-4040f58796da"},{"name":"Find News by Keyword","id":"44336675-e0ff-45c5-841b-b63c21983596","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1//news/keyword/keyword/userId/pageNo","description":"<p>Retrieves a paginated list of news articles filtered by a keyword for the specified user.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","v1","","news","keyword","keyword","userId","pageNo"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"44336675-e0ff-45c5-841b-b63c21983596"},{"name":"Find Bookmarked News","id":"854f0381-8492-4314-b5f8-b612e49991bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/v1//news/userId","description":"<p>Retrieves all bookmarked news articles for the specified user.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","v1","","news","userId"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"854f0381-8492-4314-b5f8-b612e49991bd"}],"id":"7230fcf2-a0ac-40e5-9025-d4b2939c72de","_postman_id":"7230fcf2-a0ac-40e5-9025-d4b2939c72de","description":""}]}