{"info":{"_postman_id":"958fc6ba-be9d-4d5d-973b-45e44cb04b64","name":"Go Blog REST APIs","description":"<html><head></head><body><p>Documentation for my Blog app's REST APIs built using Go.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"28324707","collectionId":"958fc6ba-be9d-4d5d-973b-45e44cb04b64","publishedId":"2s9YytiMY3","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-02-01T12:15:00.000Z"},"item":[{"name":"Blog app homepage","id":"826e6406-e3e1-4c92-b50d-0fb47d0d72f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:8000/","description":"<p>Homepage for the entire app.</p>\n","urlObject":{"port":"8000","path":[""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"826e6406-e3e1-4c92-b50d-0fb47d0d72f3"},{"name":"User registration","id":"3175846a-3edb-4b5c-ae3e-0c535818badb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"apollo\",\r\n    \"email\": \"apollo@gmail.com\",\r\n    \"password\": \"apollo\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/user/signup","description":"<p>Endpoint for user registration.</p>\n","urlObject":{"port":"8000","path":["user","signup"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"3175846a-3edb-4b5c-ae3e-0c535818badb"},{"name":"User login","id":"2f44754e-20df-444c-8766-5c7ca8c73f5b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"apollo@gmail.com\",\r\n    \"password\": \"apollo\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/user/login","description":"<p>Endpoint for user login.</p>\n","urlObject":{"port":"8000","path":["user","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"2f44754e-20df-444c-8766-5c7ca8c73f5b"},{"name":"Token verification","id":"2ee14b7f-9b31-4457-bc3f-85574c4b60ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:8000/verify-token","description":"<p>Endpoint for verifying the user's token.</p>\n","urlObject":{"port":"8000","path":["verify-token"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"2ee14b7f-9b31-4457-bc3f-85574c4b60ac"},{"name":"All blogs","id":"b52dacd2-be07-4428-881d-93b99aee82f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:8000/blogs/all","description":"<p>Endpoint for viewing all blogs, no auth needed.</p>\n","urlObject":{"port":"8000","path":["blogs","all"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b52dacd2-be07-4428-881d-93b99aee82f6"},{"name":"Blog by ID","id":"654e77fe-3134-4030-a46a-4a96100dfac2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:8000/blogs/id/1","description":"<p>Endpoint for fetching blogs by ID, no auth needed.</p>\n","urlObject":{"port":"8000","path":["blogs","id","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"654e77fe-3134-4030-a46a-4a96100dfac2"},{"name":"Blog by slug","id":"58302ec5-1065-4c6d-b0b5-1b1af4da6470","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:8000/blogs/slug/fair-launches-audiocraft","description":"<p>Endpoint for fetching blogs by slug, no auth needed.</p>\n","urlObject":{"port":"8000","path":["blogs","slug","fair-launches-audiocraft"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"58302ec5-1065-4c6d-b0b5-1b1af4da6470"},{"name":"Blogs by category","id":"467d97f6-ccac-4ea7-b0df-ee2eae6a2d94","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:8000/blogs/category/Technology","description":"<p>Endpoint for fetching blogs by category, no auth needed.</p>\n","urlObject":{"port":"8000","path":["blogs","category","Technology"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"467d97f6-ccac-4ea7-b0df-ee2eae6a2d94"},{"name":"Blogs by hashtag","id":"cc40176e-a2d5-4d4d-91a3-3faf89b1a013","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:8000/blogs/hashtag/fair","description":"<p>Endpoint for fetching blogs by hashtag, no auth needed.</p>\n","urlObject":{"port":"8000","path":["blogs","hashtag","fair"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"cc40176e-a2d5-4d4d-91a3-3faf89b1a013"},{"name":"Blogs by user","id":"d1124565-1d70-4028-8f88-e8b01366525c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:8000/blogs/user","description":"<p>Endpoint for viewing blogs authored by the logged in user.</p>\n","urlObject":{"port":"8000","path":["blogs","user"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"d1124565-1d70-4028-8f88-e8b01366525c"},{"name":"Post blog","id":"9e6fbe55-4691-415c-b9ab-4908db4a47cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"category\": \"Technology\",\r\n    \"title\": \"FAIR launches audiocraft\",\r\n    \"excerpt\": \"FAIR launches new audio framework\",\r\n    \"content\": \"Facebook AI Research launches audiocraft.\",\r\n    \"slug\": \"fair-launches-audiocraft\",\r\n    \"hashtags\": \"#fair #audiocraft\",\r\n    \"status\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/blogs/post","description":"<p>Endpoint for posting a new blog.</p>\n","urlObject":{"port":"8000","path":["blogs","post"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"9e6fbe55-4691-415c-b9ab-4908db4a47cc"},{"name":"Update blog","id":"099e1df2-814f-43a0-b83e-59bae780a88d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"category\": \"Health\",\r\n    \"title\": \"The Importance of Regular Exercise\",\r\n    \"excerpt\": \"Learn about the benefits of staying active\",\r\n    \"content\": \"Regular exercise has numerous health benefits, including improved cardiovascular health, increased energy levels, and reduced risk of chronic diseases such as diabetes and obesity.\",\r\n    \"slug\": \"importance-of-regular-exercise\",\r\n    \"hashtags\": \"#health #exercise\",\r\n    \"status\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/blogs/update/2","description":"<p>Endpoint for updating existing blogs.</p>\n","urlObject":{"port":"8000","path":["blogs","update","2"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"099e1df2-814f-43a0-b83e-59bae780a88d"},{"name":"Delete blog","id":"c7145f45-a48d-4d5c-b1e3-59c8e70e1173","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"localhost:8000/blogs/delete/5","description":"<p>Endpoint for deleting blogs.</p>\n","urlObject":{"port":"8000","path":["blogs","delete","5"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c7145f45-a48d-4d5c-b1e3-59c8e70e1173"},{"name":"User logout","id":"7d4bf28a-1847-480b-824d-7622292d57ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:8000/user/logout","description":"<p>Endpoint for user logout.</p>\n","urlObject":{"port":"8000","path":["user","logout"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7d4bf28a-1847-480b-824d-7622292d57ce"}]}