{"info":{"_postman_id":"557f1caa-bd14-4f76-959b-d1c3cbff1d54","name":"Responsive Blog API","description":"<html><head></head><body><p>My Collection for testing &amp; Documenting the API of a Responsive Blogpost.<br>Tech Stack:<br>The backend of the responsive Blog Platform is built using JavaScript and runs on MongoDB<br>Description:<br>The Blog platform allows a registered and logged in user to create, edit, and delete blog posts.<br>The integrated database (MongoDB) allows for storing and retrieving blog data, such as user's posts, read posts, and the ability to crate new posts with image headers or later update posts without header images.<br>Milestones:<br>• Authentication using JSON Web Tokens(JWT)<br>• Stores all blog posts<br>• Shows users list of all posts they’ve read so far<br>• Allows users to create, edit and delete their blog posts<br>• Responsive application<br>• Bonus: A markdown editor for users to create their blog posts<br>• Bonus: allow users to upload header images for their blog posts</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"37810737","collectionId":"557f1caa-bd14-4f76-959b-d1c3cbff1d54","publishedId":"2sAXjF8EYZ","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-08-24T02:50:38.000Z"},"item":[{"name":"http://localhost:5000/api/auth/register","id":"9e537f72-67c2-426e-bf34-b73eda630db7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"username\": \"testuser4\",\r\n  \"email\": \"test4@example.com\",\r\n  \"password\": \"password123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/auth/register","description":"<p><strong>Description</strong>: Registers a new user</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","auth","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1dc438f4-71e8-42f4-873c-0779f89544ba","name":"http://localhost:5000/api/auth/register","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"username\": \"testuser4\",\r\n  \"email\": \"test4@example.com\",\r\n  \"password\": \"password123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/auth/register"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"42"},{"key":"ETag","value":"W/\"2a-nMoFx54+czTntmSLXl3mqIsZV4A\""},{"key":"Date","value":"Sat, 24 Aug 2024 01:13:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User registered successfully\"\n}"}],"_postman_id":"9e537f72-67c2-426e-bf34-b73eda630db7"},{"name":"http://localhost:5000/api/auth/login","id":"e1e8f8b7-49f5-4648-bb50-e61f33aa8d39","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"test3@example.com\",\r\n  \"password\": \"password123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/auth/login","description":"<p>Logins in an existing user</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","auth","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"af633dda-2c02-45b2-9483-e838b21072d3","name":"http://localhost:5000/api/auth/login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"test3@example.com\",\r\n  \"password\": \"password123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"183"},{"key":"ETag","value":"W/\"b7-SQL5mUHsTCimFslc/mFv+cU4HUc\""},{"key":"Date","value":"Fri, 23 Aug 2024 11:13:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY2YzY5MDEyOWFkMWU3MzM2ODA3NDEwNyIsImlhdCI6MTcyNDQxMTU5NCwiZXhwIjoxNzI0NDE1MTk0fQ.VuAm7wQ3BqI-QGn1NOtFpPktQmvNHHUVhX__dYIU74A\"\n}"}],"_postman_id":"e1e8f8b7-49f5-4648-bb50-e61f33aa8d39"},{"name":"http://localhost:5000/api/auth/me","id":"a46af78a-07f6-4b93-be91-ff91f37077fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"test3@example.com\",\r\n  \"password\": \"password123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/auth/me","description":"<p>Retrieves the authenticated user's information.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","auth","me"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"64e24734-75eb-43a2-95c6-bcc1776c7ac6","name":"http://localhost:5000/api/auth/me","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"test3@example.com\",\r\n  \"password\": \"password123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/auth/me"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"217"},{"key":"ETag","value":"W/\"d9-uedcvg7tKAEZlvbQ3tnkv1r/eh8\""},{"key":"Date","value":"Sat, 24 Aug 2024 01:09:28 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"user\": {\n        \"_id\": \"66c690129ad1e73368074107\",\n        \"username\": \"testuser3\",\n        \"email\": \"test3@example.com\",\n        \"password\": \"$2b$10$KeY17VeirxWdQ3gWNNkRmeGZQy8hgT6d0r5czsdPMp/2B0pC9iIlO\",\n        \"readPosts\": [\n            \"66c69ed5e91eac9709e9e842\"\n        ],\n        \"__v\": 1\n    }\n}"},{"id":"66837b19-94cb-4050-83f6-766dc07f5128","name":"http://localhost:5000/api/auth/me","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"test3@example.com\",\r\n  \"password\": \"password123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/auth/me"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"217"},{"key":"ETag","value":"W/\"d9-uedcvg7tKAEZlvbQ3tnkv1r/eh8\""},{"key":"Date","value":"Sat, 24 Aug 2024 01:09:28 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"user\": {\n        \"_id\": \"66c690129ad1e73368074107\",\n        \"username\": \"testuser3\",\n        \"email\": \"test3@example.com\",\n        \"password\": \"$2b$10$KeY17VeirxWdQ3gWNNkRmeGZQy8hgT6d0r5czsdPMp/2B0pC9iIlO\",\n        \"readPosts\": [\n            \"66c69ed5e91eac9709e9e842\"\n        ],\n        \"__v\": 1\n    }\n}"}],"_postman_id":"a46af78a-07f6-4b93-be91-ff91f37077fe"},{"name":"http://localhost:5000/api/posts","id":"045f97d7-c5c0-4056-9293-73c76558db0f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"title\": \"A Post without a header image, update me later\",\r\n  \"content\": \"This is the fifth content of the first blog post API.\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/posts","description":"<p>Posts a new blogpost, without a header image</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","posts"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"3193aca8-5221-4c67-b8c2-45384aa9f4a4","name":"http://localhost:5000/api/posts","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"title\": \"My Docs run 3\",\r\n  \"content\": \"This is the third content of the first blog post API.\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/posts"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"273"},{"key":"ETag","value":"W/\"111-wAXeIWqNLNZtL0yHCff0Ncdjo10\""},{"key":"Date","value":"Thu, 22 Aug 2024 01:38:48 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Post created successfully\",\n    \"post\": {\n        \"title\": \"My Docs run 3\",\n        \"content\": \"This is the third content of the first blog post API.\",\n        \"headerImage\": null,\n        \"author\": \"66c690129ad1e73368074107\",\n        \"_id\": \"66c696a8066f103da7f0a9a0\",\n        \"createdAt\": \"2024-08-22T01:38:48.784Z\",\n        \"__v\": 0\n    }\n}"},{"id":"cc4e530e-40d8-4eb9-ba6d-71e8a68a7076","name":"http://localhost:5000/api/posts","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"title\": \"My Docs run 3\",\r\n  \"content\": \"This is the third content of the first blog post API.\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/posts"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"27"},{"key":"ETag","value":"W/\"1b-w4O8U+0Ll+sSArmfAX18RvhWpiQ\""},{"key":"Date","value":"Thu, 22 Aug 2024 01:40:28 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid token\"\n}"},{"id":"8ad968cd-2231-495b-9f10-96367a3c5fb5","name":"http://localhost:5000/api/posts","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"title\": \"My Docs run 3\",\r\n  \"content\": \"This is the third content of the first blog post API.\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/posts"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"46"},{"key":"ETag","value":"W/\"2e-UaRLMJHtDz0alYRNXDy/tjzCMdQ\""},{"key":"Date","value":"Thu, 22 Aug 2024 01:40:46 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Authentication token is required\"\n}"},{"id":"643f2c6f-f925-412a-974e-1a6eab9eb1f9","name":"http://localhost:5000/api/posts","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"title\": \"A Post without a header image, update me later\",\r\n  \"content\": \"This is the fifth content of the first blog post API.\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/posts"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"306"},{"key":"ETag","value":"W/\"132-cEtk2dqRXImWA2OD6nslwx97HPM\""},{"key":"Date","value":"Sat, 24 Aug 2024 01:14:45 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Post created successfully\",\n    \"post\": {\n        \"title\": \"A Post without a header image, update me later\",\n        \"content\": \"This is the fifth content of the first blog post API.\",\n        \"headerImage\": null,\n        \"author\": \"66c690129ad1e73368074107\",\n        \"_id\": \"66c93405cc4f327f871f766b\",\n        \"createdAt\": \"2024-08-24T01:14:45.219Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"045f97d7-c5c0-4056-9293-73c76558db0f"},{"name":"http://localhost:5000/api/posts","id":"4781e0b0-f7f6-4d35-82aa-6a978d05fa7b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"title","value":"with a header image","type":"text"},{"key":"content","value":"new post with a header image","type":"text"},{"key":"headerImage","type":"file","src":"/C:/Users/skmbu/OneDrive/Pictures/Screenshots/check_in.png"}]},"url":"http://localhost:5000/api/posts","description":"<p>Posts a new blogpost, with a header image</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","posts"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"36642fc5-6757-4aa6-bdcd-a79f8c404c1e","name":"http://localhost:5000/api/posts","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"title","value":"with a header image","type":"text"},{"key":"content","value":"new post with a header image","type":"text"},{"key":"headerImage","type":"file","src":"/C:/Users/skmbu/OneDrive/Pictures/Screenshots/check_in.png"}]},"url":"http://localhost:5000/api/posts"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"287"},{"key":"ETag","value":"W/\"11f-ku5Wrifs+Gu3zDwYaTYLGl5fTuY\""},{"key":"Date","value":"Sat, 24 Aug 2024 01:20:53 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Post created successfully\",\n    \"post\": {\n        \"title\": \"with a header image\",\n        \"content\": \"new post with a header image\",\n        \"headerImage\": \"/uploads/1724462453308-check_in.png\",\n        \"author\": \"66c690129ad1e73368074107\",\n        \"_id\": \"66c93575cc4f327f871f7671\",\n        \"createdAt\": \"2024-08-24T01:20:53.345Z\",\n        \"__v\": 0\n    }\n}"},{"id":"b9f0220a-ae14-476f-9344-e96f00500512","name":"http://localhost:5000/api/posts","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"title","value":"with a header image","type":"text"},{"key":"content","value":"new post with a header image","type":"text"},{"key":"headerImage","type":"file","src":"/C:/Users/skmbu/OneDrive/Pictures/Screenshots/check_in.png"}]},"url":"http://localhost:5000/api/posts"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"287"},{"key":"ETag","value":"W/\"11f-ku5Wrifs+Gu3zDwYaTYLGl5fTuY\""},{"key":"Date","value":"Sat, 24 Aug 2024 01:20:53 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Post created successfully\",\n    \"post\": {\n        \"title\": \"with a header image\",\n        \"content\": \"new post with a header image\",\n        \"headerImage\": \"/uploads/1724462453308-check_in.png\",\n        \"author\": \"66c690129ad1e73368074107\",\n        \"_id\": \"66c93575cc4f327f871f7671\",\n        \"createdAt\": \"2024-08-24T01:20:53.345Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"4781e0b0-f7f6-4d35-82aa-6a978d05fa7b"},{"name":"http://localhost:5000/api/posts/image/66c93405cc4f327f871f766b","id":"a2b9f596-2896-435a-b5f6-196244bac263","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"headerImage","type":"file","value":null}]},"url":"http://localhost:5000/api/posts/image/66c8763aee0c7a0e8b0a5d34","description":"<p>This endpoint updates an existing post( based on postId object from MongoDB), in this case postId: 66c93405cc4f327f871f766b that did not have a header image originally, with a header image.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","posts","image","66c8763aee0c7a0e8b0a5d34"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"9ff6b5c1-02ab-422f-a6f3-c88258d150e0","name":"http://localhost:5000/api/posts/66c8763aee0c7a0e8b0a5d34","originalRequest":{"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"headerImage","type":"file","value":null}]},"url":"http://localhost:5000/api/posts/image/66c8763aee0c7a0e8b0a5d34"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"293"},{"key":"ETag","value":"W/\"125-tYAXVWGclyIIejp1SO9II4POsgM\""},{"key":"Date","value":"Fri, 23 Aug 2024 12:07:37 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Image updated successfully\",\n    \"post\": {\n        \"_id\": \"66c8763aee0c7a0e8b0a5d34\",\n        \"title\": \"a new post\",\n        \"content\": \"Another test  without an image, to be updated\",\n        \"headerImage\": \"/uploads/1724414857696-CORS2.png\",\n        \"author\": \"66c690129ad1e73368074107\",\n        \"createdAt\": \"2024-08-23T11:44:58.064Z\",\n        \"__v\": 0\n    }\n}"},{"id":"7590888b-6522-4889-9e97-87b7bbcabcff","name":"http://localhost:5000/api/posts/66c8763aee0c7a0e8b0a5d34","originalRequest":{"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"headerImage","type":"file","src":"/C:/Users/skmbu/OneDrive/Pictures/Screenshots/source.png"}]},"url":"http://localhost:5000/api/posts/image/66c93405cc4f327f871f766b"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"338"},{"key":"ETag","value":"W/\"152-TeCa3kHm22B71DvkNLOiTjQhZBk\""},{"key":"Date","value":"Sat, 24 Aug 2024 01:24:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Image updated successfully\",\n    \"post\": {\n        \"_id\": \"66c93405cc4f327f871f766b\",\n        \"title\": \"A Post without a header image, update me later\",\n        \"content\": \"This is the fifth content of the first blog post API.\",\n        \"headerImage\": \"/uploads/1724462651815-source.png\",\n        \"author\": \"66c690129ad1e73368074107\",\n        \"createdAt\": \"2024-08-24T01:14:45.219Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"a2b9f596-2896-435a-b5f6-196244bac263"},{"name":"http://localhost:5000/api/posts/user/66c690129ad1e73368074107","id":"b8315449-090c-4114-953d-3f2cede4d12b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000/api/posts/user/66c690129ad1e73368074107","description":"<p>This endpoint gets the number of posts a user has made, in this case, user named by objectId: 66c690129ad1e73368074107</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","posts","user","66c690129ad1e73368074107"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"d50e9df3-2ccd-42ac-819f-8931e730a820","name":"http://localhost:5000/api/posts/user/66c690129ad1e73368074107","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/posts/user/66c690129ad1e73368074107"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"4267"},{"key":"ETag","value":"W/\"10ab-B5RR4WeS0s2plES3xKy575/Icfs\""},{"key":"Date","value":"Sat, 24 Aug 2024 01:49:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"posts\": [\n        {\n            \"_id\": \"66c69ed5e91eac9709e9e842\",\n            \"title\": \"My Docs run 3 del now 4\",\n            \"content\": \"This is the third to fourth content of the first blog post API.\",\n            \"headerImage\": null,\n            \"author\": {\n                \"_id\": \"66c690129ad1e73368074107\",\n                \"username\": \"testuser3\",\n                \"email\": \"test3@example.com\"\n            },\n            \"createdAt\": \"2024-08-22T02:13:42.004Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"66c6a088e91eac9709e9e856\",\n            \"title\": \"Markdown Blog Post\",\n            \"content\": \"# Heading\\n\\nThis is a blog post using markdown.\",\n            \"headerImage\": null,\n            \"author\": {\n                \"_id\": \"66c690129ad1e73368074107\",\n                \"username\": \"testuser3\",\n                \"email\": \"test3@example.com\"\n            },\n            \"createdAt\": \"2024-08-22T02:20:56.205Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"66c6a0c7e91eac9709e9e859\",\n            \"title\": \"Markdown Blog Post\",\n            \"content\": \"# Headingn\\nThis is a blog post using markdown.\",\n            \"headerImage\": null,\n            \"author\": {\n                \"_id\": \"66c690129ad1e73368074107\",\n                \"username\": \"testuser3\",\n                \"email\": \"test3@example.com\"\n            },\n            \"createdAt\": \"2024-08-22T02:21:59.471Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"66c6a109e91eac9709e9e85c\",\n            \"title\": \"Markdown Blog Post\",\n            \"content\": \"# Headingn\\nThis is a *blog post using markdown.\",\n            \"headerImage\": null,\n            \"author\": {\n                \"_id\": \"66c690129ad1e73368074107\",\n                \"username\": \"testuser3\",\n                \"email\": \"test3@example.com\"\n            },\n            \"createdAt\": \"2024-08-22T02:23:05.566Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"66c6a113e91eac9709e9e85f\",\n            \"title\": \"Markdown Blog Post\",\n            \"content\": \"# Headingn\\nThis is a *blog* post using markdown.\",\n            \"headerImage\": null,\n            \"author\": {\n                \"_id\": \"66c690129ad1e73368074107\",\n                \"username\": \"testuser3\",\n                \"email\": \"test3@example.com\"\n            },\n            \"createdAt\": \"2024-08-22T02:23:15.257Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"66c6a15de91eac9709e9e862\",\n            \"title\": \"Malformed Blog Post\",\n            \"content\": \"# This is a heading without proper closing\\n\\nSome content here.\",\n            \"headerImage\": null,\n            \"author\": {\n                \"_id\": \"66c690129ad1e73368074107\",\n                \"username\": \"testuser3\",\n                \"email\": \"test3@example.com\"\n            },\n            \"createdAt\": \"2024-08-22T02:24:29.033Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"66c8614bdde4c9f746eeed4b\",\n            \"title\": \"a new post\",\n            \"content\": \"A test of uploading image with a blogpost\",\n            \"headerImage\": \"/uploads/1724408139576-Screenshot 2024-04-11 234024.png\",\n            \"author\": {\n                \"_id\": \"66c690129ad1e73368074107\",\n                \"username\": \"testuser3\",\n                \"email\": \"test3@example.com\"\n            },\n            \"createdAt\": \"2024-08-23T10:15:39.616Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"66c8617fdde4c9f746eeed4e\",\n            \"title\": \"a new post\",\n            \"content\": \"A test of uploading image with a blogpost\",\n            \"headerImage\": \"/uploads/1724408191817-Screenshot 2024-04-11 234024.png\",\n            \"author\": {\n                \"_id\": \"66c690129ad1e73368074107\",\n                \"username\": \"testuser3\",\n                \"email\": \"test3@example.com\"\n            },\n            \"createdAt\": \"2024-08-23T10:16:31.823Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"66c872d3ee0c7a0e8b0a5d28\",\n            \"title\": \"a new post\",\n            \"content\": \"A test  without an image, to be updated\",\n            \"headerImage\": null,\n            \"author\": {\n                \"_id\": \"66c690129ad1e73368074107\",\n                \"username\": \"testuser3\",\n                \"email\": \"test3@example.com\"\n            },\n            \"createdAt\": \"2024-08-23T11:30:28.004Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"66c87365ee0c7a0e8b0a5d2e\",\n            \"title\": \"a new post\",\n            \"content\": \"A test  without an image, to be updated\",\n            \"headerImage\": \"/uploads/1724412773599-API documentation.png\",\n            \"author\": {\n                \"_id\": \"66c690129ad1e73368074107\",\n                \"username\": \"testuser3\",\n                \"email\": \"test3@example.com\"\n            },\n            \"createdAt\": \"2024-08-23T11:32:53.639Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"66c8763aee0c7a0e8b0a5d34\",\n            \"title\": \"a new post\",\n            \"content\": \"Another test  without an image, to be updated\",\n            \"headerImage\": \"/uploads/1724414857696-CORS2.png\",\n            \"author\": {\n                \"_id\": \"66c690129ad1e73368074107\",\n                \"username\": \"testuser3\",\n                \"email\": \"test3@example.com\"\n            },\n            \"createdAt\": \"2024-08-23T11:44:58.064Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"66c8790fcc4f327f871f7655\",\n            \"title\": \"A Post without an image, update later\",\n            \"content\": \"This is the third to fourth content of the first blog post API.\",\n            \"headerImage\": null,\n            \"author\": {\n                \"_id\": \"66c690129ad1e73368074107\",\n                \"username\": \"testuser3\",\n                \"email\": \"test3@example.com\"\n            },\n            \"createdAt\": \"2024-08-23T11:57:03.152Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"66c93405cc4f327f871f766b\",\n            \"title\": \"A Post without a header image, update me later\",\n            \"content\": \"This is the fifth content of the first blog post API.\",\n            \"headerImage\": \"/uploads/1724462651815-source.png\",\n            \"author\": {\n                \"_id\": \"66c690129ad1e73368074107\",\n                \"username\": \"testuser3\",\n                \"email\": \"test3@example.com\"\n            },\n            \"createdAt\": \"2024-08-24T01:14:45.219Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"66c93575cc4f327f871f7671\",\n            \"title\": \"with a header image\",\n            \"content\": \"new post with a header image\",\n            \"headerImage\": \"/uploads/1724462453308-check_in.png\",\n            \"author\": {\n                \"_id\": \"66c690129ad1e73368074107\",\n                \"username\": \"testuser3\",\n                \"email\": \"test3@example.com\"\n            },\n            \"createdAt\": \"2024-08-24T01:20:53.345Z\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"b8315449-090c-4114-953d-3f2cede4d12b"},{"name":"http://localhost:5000/api/users/read","id":"5c7a482b-7f61-416d-bf1c-a8d0972095d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000/api/users/read","description":"<p>This endpoint gets the number of posts a logged in user has read so far</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","users","read"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"87d68273-4caa-41da-ac62-3d7d7dbda946","name":"http://localhost:5000/api/users/read","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/users/read"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2"},{"key":"ETag","value":"W/\"2-l9Fw4VUO7kr8CvBlt4zaMCqXZ0w\""},{"key":"Date","value":"Thu, 22 Aug 2024 02:11:31 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[]"},{"id":"689e0e64-230b-45c8-974f-5d84e91ae807","name":"http://localhost:5000/api/users/read","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/users/read"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"46"},{"key":"ETag","value":"W/\"2e-UaRLMJHtDz0alYRNXDy/tjzCMdQ\""},{"key":"Date","value":"Thu, 22 Aug 2024 02:12:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Authentication token is required\"\n}"},{"id":"277eadc8-9585-4d2e-be03-19ea649fc940","name":"http://localhost:5000/api/users/read","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/users/read"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"474"},{"key":"ETag","value":"W/\"1da-0dtglq3V/92GIDq1R/DnAraJbWM\""},{"key":"Date","value":"Sat, 24 Aug 2024 01:55:45 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"66c69ed5e91eac9709e9e842\",\n        \"title\": \"My Docs run 3 del now 4\",\n        \"content\": \"This is the third to fourth content of the first blog post API.\",\n        \"headerImage\": null,\n        \"author\": \"66c690129ad1e73368074107\",\n        \"createdAt\": \"2024-08-22T02:13:42.004Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"66c6a0c7e91eac9709e9e859\",\n        \"title\": \"Markdown Blog Post\",\n        \"content\": \"# Headingn\\nThis is a blog post using markdown.\",\n        \"headerImage\": null,\n        \"author\": \"66c690129ad1e73368074107\",\n        \"createdAt\": \"2024-08-22T02:21:59.471Z\",\n        \"__v\": 0\n    }\n]"},{"id":"546fe165-79b2-47fa-929c-3234687f10f3","name":"http://localhost:5000/api/users/read","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/users/read"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"474"},{"key":"ETag","value":"W/\"1da-0dtglq3V/92GIDq1R/DnAraJbWM\""},{"key":"Date","value":"Sat, 24 Aug 2024 01:55:45 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"66c69ed5e91eac9709e9e842\",\n        \"title\": \"My Docs run 3 del now 4\",\n        \"content\": \"This is the third to fourth content of the first blog post API.\",\n        \"headerImage\": null,\n        \"author\": \"66c690129ad1e73368074107\",\n        \"createdAt\": \"2024-08-22T02:13:42.004Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"66c6a0c7e91eac9709e9e859\",\n        \"title\": \"Markdown Blog Post\",\n        \"content\": \"# Headingn\\nThis is a blog post using markdown.\",\n        \"headerImage\": null,\n        \"author\": \"66c690129ad1e73368074107\",\n        \"createdAt\": \"2024-08-22T02:21:59.471Z\",\n        \"__v\": 0\n    }\n]"}],"_postman_id":"5c7a482b-7f61-416d-bf1c-a8d0972095d5"},{"name":"http://localhost:5000/api/posts/66c696a8066f103da7f0a9a0","id":"1a0df4a5-661b-4a50-8e5f-3fcd518893a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:5000/api/posts/66c6a0c7e91eac9709e9e859","description":"<p>This endpoint deletes a post, the user must be authorized i.e registered and logged in to perform this request.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","posts","66c6a0c7e91eac9709e9e859"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"b27b14ea-2042-4583-a135-9bc8b50ef92f","name":"http://localhost:5000/api/posts/66c696a8066f103da7f0a9a0","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:5000/api/posts/66c696a8066f103da7f0a9a0"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"33"},{"key":"ETag","value":"W/\"21-iq0QOKZeMZMTXDHBFdKvz7/YbN0\""},{"key":"Date","value":"Thu, 22 Aug 2024 02:02:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Failed to delete post\"\n}"},{"id":"8793d19f-929d-40e4-82fb-3842166ca9f8","name":"http://localhost:5000/api/posts/66c696a8066f103da7f0a9a0","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:5000/api/posts/66c696a8066f103da7f0a9a0"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"39"},{"key":"ETag","value":"W/\"27-ApdGuEKF5DvnjukxrpHUpaQnnd8\""},{"key":"Date","value":"Thu, 22 Aug 2024 02:09:04 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Post deleted successfully\"\n}"},{"id":"28e74be2-229c-4198-8042-b9fbb9b4447a","name":"http://localhost:5000/api/posts/66c696a8066f103da7f0a9a0","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:5000/api/posts/66c696a8066f103da7f0a9a0"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"26"},{"key":"ETag","value":"W/\"1a-/ECDUP+CNYgYGJ9/6aenG4dQQzY\""},{"key":"Date","value":"Thu, 22 Aug 2024 02:09:21 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Post not found\"\n}"},{"id":"179b7fe5-c1ce-4829-a162-ee1b9d74a79d","name":"http://localhost:5000/api/posts/66c696a8066f103da7f0a9a0","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:5000/api/posts/66c6915f9ad1e73368074111"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"44"},{"key":"ETag","value":"W/\"2c-STvfrr/ifu89Q/Vgd7/yPPwOzu4\""},{"key":"Date","value":"Thu, 22 Aug 2024 02:10:13 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Unauthorized to delete this post\"\n}"},{"id":"730291a1-341f-400c-984a-37bf3dca2b56","name":"http://localhost:5000/api/posts/66c696a8066f103da7f0a9a0","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:5000/api/posts/66c6a0c7e91eac9709e9e859"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"39"},{"key":"ETag","value":"W/\"27-ApdGuEKF5DvnjukxrpHUpaQnnd8\""},{"key":"Date","value":"Sat, 24 Aug 2024 01:58:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Post deleted successfully\"\n}"},{"id":"d594baa6-5e3a-4f38-9374-0627dfc10ca8","name":"http://localhost:5000/api/posts/66c696a8066f103da7f0a9a0","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:5000/api/posts/66c6a0c7e91eac9709e9e859"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"39"},{"key":"ETag","value":"W/\"27-ApdGuEKF5DvnjukxrpHUpaQnnd8\""},{"key":"Date","value":"Sat, 24 Aug 2024 01:58:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Post deleted successfully\"\n}"}],"_postman_id":"1a0df4a5-661b-4a50-8e5f-3fcd518893a2"},{"name":"http://localhost:5000/api/users/read/66c69ed5e91eac9709e9e842","id":"67074a88-79c2-4169-adab-e591be5f2ae6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"http://localhost:5000/api/users/read/66c6a0c7e91eac9709e9e859","description":"<p>This endpoint marks a post as read</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","users","read","66c6a0c7e91eac9709e9e859"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"482cefba-27fe-4fae-b46e-08ca1f0e3231","name":"http://localhost:5000/api/users/read/66c69ed5e91eac9709e9e842","originalRequest":{"method":"POST","header":[],"url":"http://localhost:5000/api/users/read/66c69ed5e91eac9709e9e842"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"33"},{"key":"ETag","value":"W/\"21-4eK9aVk1mT9mVdk2V2OeeFpxTp0\""},{"key":"Date","value":"Thu, 22 Aug 2024 02:15:08 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Post marked as read\"\n}"},{"id":"44ed0033-a37a-4837-8826-9a56785177f3","name":"http://localhost:5000/api/users/read/66c69ed5e91eac9709e9e842","originalRequest":{"method":"POST","header":[],"url":"http://localhost:5000/api/users/read/66c6a0c7e91eac9709e9e859"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"33"},{"key":"ETag","value":"W/\"21-4eK9aVk1mT9mVdk2V2OeeFpxTp0\""},{"key":"Date","value":"Sat, 24 Aug 2024 01:54:39 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Post marked as read\"\n}"}],"_postman_id":"67074a88-79c2-4169-adab-e591be5f2ae6"},{"name":"http://localhost:5000/api/posts","id":"e259b98f-1d17-4fb5-8b98-51c1759574c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"title\": \"Malformed Blog Post\",\r\n  \"content\": \"# This is a heading without proper closing\\n\\nSome content here.\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/posts","description":"<p>This endpoint posts a blog using markdown editor, requires connection to frontend</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","posts"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"a9f72fff-9cba-40a2-b26e-3830e97637fe","name":"http://localhost:5000/api/posts","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"title\": \"Markdown Blog Post\",\r\n  \"content\": \"# Heading\\n\\nThis is a blog post using markdown.\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/posts"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Origin"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"273"},{"key":"ETag","value":"W/\"111-sgHPHRGys5lCKL5iN9uwR0+dpQY\""},{"key":"Date","value":"Thu, 22 Aug 2024 02:20:56 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Post created successfully\",\n    \"post\": {\n        \"title\": \"Markdown Blog Post\",\n        \"content\": \"# Heading\\n\\nThis is a blog post using markdown.\",\n        \"headerImage\": null,\n        \"author\": \"66c690129ad1e73368074107\",\n        \"_id\": \"66c6a088e91eac9709e9e856\",\n        \"createdAt\": \"2024-08-22T02:20:56.205Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"e259b98f-1d17-4fb5-8b98-51c1759574c7"}]}