{"info":{"_postman_id":"ab8de9e4-eac6-41ca-9815-994809bd2a53","name":"Blog API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"21411890","collectionId":"ab8de9e4-eac6-41ca-9815-994809bd2a53","publishedId":"2sBXc8q4Zu","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-02-07T17:02:13.000Z"},"item":[{"name":"Auth","item":[{"name":"Register","id":"cf7cebee-1cdf-459c-b638-8937e935ef2c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"adam\",\n    \"email\": \"test2@gmail.com\",\n    \"password\": \"polish416#\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/auth/register","urlObject":{"port":"3000","path":["api","auth","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"8e50c1af-1e6b-4971-acd7-5dd2b2f425c6","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"adam\",\n    \"email\": \"test2@gmail.com\",\n    \"password\": \"polish416#\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/auth/register"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"98"},{"key":"Date","value":"Sat, 07 Feb 2026 16:36:50 GMT"},{"key":"X-RateLimit-Reset","value":"1770483070"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"408"},{"key":"ETag","value":"W/\"198-CjEZ6/D/WFRqLpQCVCAy0u1+ONI\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"User registered successfully\",\n    \"data\": {\n        \"user\": {\n            \"id\": \"69876a2214bae6c2502b34ff\",\n            \"name\": \"adam\",\n            \"email\": \"test2@gmail.com\",\n            \"createdAt\": \"2026-02-07T16:36:50.997Z\"\n        },\n        \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OTg3NmEyMjE0YmFlNmMyNTAyYjM0ZmYiLCJlbWFpbCI6InRlc3QyQGdtYWlsLmNvbSIsImlhdCI6MTc3MDQ4MjIxMiwiZXhwIjoxNzcxMDg3MDEyfQ.MtAdBU5OX17tp7rEYvqmre3MGAEFvjYXooXb-ARMJJo\"\n    }\n}"}],"_postman_id":"cf7cebee-1cdf-459c-b638-8937e935ef2c"},{"name":"Login","id":"99471250-0bff-4f65-8067-a03f19ea041f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"test2@gmail.com\",\n    \"password\": \"polish416#\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/auth/login","urlObject":{"port":"3000","path":["api","auth","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"eaa34e0d-5175-476c-8782-f2bdd149a812","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"test2@gmail.com\",\n    \"password\": \"polish416#\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"91"},{"key":"Date","value":"Sat, 07 Feb 2026 16:41:55 GMT"},{"key":"X-RateLimit-Reset","value":"1770483070"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"396"},{"key":"ETag","value":"W/\"18c-KMBUgZrzEbja1PSGotz5TCw79lY\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Login successful\",\n    \"data\": {\n        \"user\": {\n            \"id\": \"69876a2214bae6c2502b34ff\",\n            \"name\": \"adam\",\n            \"email\": \"test2@gmail.com\",\n            \"createdAt\": \"2026-02-07T16:36:50.997Z\"\n        },\n        \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2OTg3NmEyMjE0YmFlNmMyNTAyYjM0ZmYiLCJlbWFpbCI6InRlc3QyQGdtYWlsLmNvbSIsImlhdCI6MTc3MDQ4MjUxNiwiZXhwIjoxNzcxMDg3MzE2fQ.6y8Alh1ds8P4I99ewg6UXU7AFPFlD4LfVUK1yXdMwUU\"\n    }\n}"}],"_postman_id":"99471250-0bff-4f65-8067-a03f19ea041f"}],"id":"228386ab-7dc6-40b0-8710-50c2530ac85b","_postman_id":"228386ab-7dc6-40b0-8710-50c2530ac85b","description":""},{"name":"Post","item":[{"name":"Create Post","id":"4a43c4a1-57b1-4bc0-b789-5d51a9a6af5c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"title\": \"Artifical Intelligence\",\n    \"content\": \"This is the content...\",\n    \"tags\": [\"cgi\", \"ai\"],\n    \"status\": \"draft\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/posts/","urlObject":{"port":"3000","path":["api","posts",""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"3b29f8c8-36a3-41e7-8998-c52d1a70dccd","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"title\": \"Redis\",\n    \"content\": \"Redis is an in-memory data structure store that can be used as a caching layer to significantly improve the performance of web applications.\",\n    \"tags\": [\"caching\", \"db\"],\n    \"status\": \"draft\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/posts/"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"87"},{"key":"Date","value":"Sat, 07 Feb 2026 16:44:34 GMT"},{"key":"X-RateLimit-Reset","value":"1770483070"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"531"},{"key":"ETag","value":"W/\"213-W1KDWQ1d9UKChzoBds0jVi1RXD8\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Post created successfully\",\n    \"data\": {\n        \"post\": {\n            \"title\": \"Redis\",\n            \"content\": \"Redis is an in-memory data structure store that can be used as a caching layer to significantly improve the performance of web applications.\",\n            \"author\": {\n                \"_id\": \"69876a2214bae6c2502b34ff\",\n                \"name\": \"adam\",\n                \"email\": \"test2@gmail.com\"\n            },\n            \"status\": \"draft\",\n            \"tags\": [\n                \"caching\",\n                \"db\"\n            ],\n            \"deletedAt\": null,\n            \"_id\": \"69876bf214bae6c2502b351e\",\n            \"createdAt\": \"2026-02-07T16:44:34.874Z\",\n            \"updatedAt\": \"2026-02-07T16:44:34.874Z\",\n            \"slug\": \"redis-1770482674878\",\n            \"__v\": 0\n        }\n    }\n}"}],"_postman_id":"4a43c4a1-57b1-4bc0-b789-5d51a9a6af5c"},{"name":"Update Post","id":"95c0d54d-ad8f-4e1a-b125-a67266b7b312","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"title\": \"Artifical Intelligence Updated\",\n    \"content\": \"This is the content updated...\",\n    \"tags\": [\"cgi\", \"ai\"],\n    \"status\": \"draft\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3000/api/posts/:postId","urlObject":{"port":"3000","path":["api","posts",":postId"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"6987371f5f608913ca471346","key":"postId"}]}},"response":[],"_postman_id":"95c0d54d-ad8f-4e1a-b125-a67266b7b312"},{"name":"Get Post By Slug Id","id":"c7e41e29-95e7-4d3c-b0a4-9b7b4ae015f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"c7e41e29-95e7-4d3c-b0a4-9b7b4ae015f6"},{"name":"Delete Post","id":"2cb41848-68ba-4b2d-9b6c-53ac693d6807","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"https://blog-technical-assessment.onrender.com/api/posts/:postId","urlObject":{"protocol":"https","path":["api","posts",":postId"],"host":["blog-technical-assessment","onrender","com"],"query":[],"variable":[{"type":"any","value":"6987371f5f608913ca471346","key":"postId"}]}},"response":[{"id":"2eab8bf7-552a-4dd3-b175-8951c4473064","name":"Success","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://blog-technical-assessment.onrender.com/api/posts/:postId","protocol":"https","host":["blog-technical-assessment","onrender","com"],"path":["api","posts",":postId"],"variable":[{"key":"postId","value":"6987371f5f608913ca471346"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Cross-Origin-Resource-Policy","value":"same-origin"},{"key":"Origin-Agent-Cluster","value":"?1"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"X-XSS-Protection","value":"0"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-RateLimit-Limit","value":"100"},{"key":"X-RateLimit-Remaining","value":"95"},{"key":"Date","value":"Sat, 07 Feb 2026 14:04:03 GMT"},{"key":"X-RateLimit-Reset","value":"1770473540"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"54"},{"key":"ETag","value":"W/\"36-h1dHx+ryosXJ0pmTdUm5ZUHD+PA\""},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Post deleted successfully\"\n}"}],"_postman_id":"2cb41848-68ba-4b2d-9b6c-53ac693d6807"},{"name":"Get All Posts","id":"f8235bdf-f9b4-42e4-a31b-31646fcc5532","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{access_token}}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"title\": \"Artifical Intelligence\",\n    \"content\": \"This is the content...\",\n    \"tags\": [\"cgi\", \"ai\"],\n    \"status\": \"draft\"\n}"},"url":"https://blog-technical-assessment.onrender.com/api/posts?status=","urlObject":{"protocol":"https","path":["api","posts"],"host":["blog-technical-assessment","onrender","com"],"query":[{"key":"status","value":""}],"variable":[]}},"response":[],"_postman_id":"f8235bdf-f9b4-42e4-a31b-31646fcc5532"}],"id":"1da4e937-a0ab-4af7-9daf-23cf265c5797","_postman_id":"1da4e937-a0ab-4af7-9daf-23cf265c5797","description":""},{"name":"Get Server Health","id":"3ccc5277-f07a-4e1f-b919-33858deec82c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"3ccc5277-f07a-4e1f-b919-33858deec82c"}]}