{"info":{"_postman_id":"1bf6a1f3-7f6b-40e1-ae3e-9a41d472044e","name":"Blog API","description":"<html><head></head><body><p>This API has a general endpoint that shows a list of articles that have been created by different people, and anybody that calls this endpoint, should be able to read a blog created by them or other users.</p>\n<h3 id=\"requirements\">Requirements</h3>\n<ol>\n<li>Users should have a first name, last name, email, password.</li>\n<li>A user should be able to sign up and sign in into the blog app</li>\n<li>Use JWT as authentication strategy and expire the token after 1 hour</li>\n<li>A blog can be in two states; draft and published</li>\n<li>Logged in and not logged in users should be able to get a list of published blogs created</li>\n<li>Logged in and not logged in users should be able to to get a published blog</li>\n<li>Logged in users should be able to create a blog.</li>\n<li>When a blog is created, it is in draft state</li>\n<li>The owner of the blog should be able to update the state of the blog to published</li>\n<li>The owner of a blog should be able to edit the blog in draft or published state</li>\n<li>The owner of the blog should be able to delete the blog in draft or published state</li>\n<li>The owner of the blog should be able to get a list of their blogs.</li>\n<li>The endpoint should be paginated</li>\n<li>It should be filterable by state</li>\n<li>Blogs created should have title, description, tags, author, timestamp, state, read_count, reading_time and body.</li>\n<li>The list of blogs endpoint that can be accessed by both logged in and not logged in users should be pagination , searchable by author, title and tags and also be orderable by read_count, reading_time and timestamp</li>\n<li>When a single blog is requested, the api should return the user information(the author) with the blog. The read_count of the blog too should be updated by 1.</li>\n</ol>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"22967625","collectionId":"1bf6a1f3-7f6b-40e1-ae3e-9a41d472044e","publishedId":"2s8YYEQQgP","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-11-05T09:50:14.000Z"},"item":[{"name":"Homepage","id":"dcf17ede-e3a5-4eec-bc87-b4756ac64357","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1","urlObject":{"path":["api","v1"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"92acddc8-a29c-4e59-a7a5-7ef7663e9b06","name":"Homepage","originalRequest":{"method":"GET","header":[],"url":"{{URL}}/api/v1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"59"},{"key":"Etag","value":"W/\"3b-/0XOlwQvqq8yIvO4LOVdD8JaamQ\""},{"key":"Date","value":"Sat, 05 Nov 2022 09:32:32 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Welcome to my Blog Website\"\n}"}],"_postman_id":"dcf17ede-e3a5-4eec-bc87-b4756ac64357"},{"name":"Signup","event":[{"listen":"test","script":{"id":"28e3fdc1-4fb6-4f2f-9036-c7e197345d7b","exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript"}}],"id":"f820cb63-5394-4d2b-9465-7a2c9d2e4194","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstName\": \"ikem\",\r\n    \"lastName\": \"Christabel\",\r\n    \"email\":\"christy@gmail.com\",\r\n    \"password\": \"123456789\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/auth/signup","description":"<p>This route creates new users.</p>\n","urlObject":{"path":["api","v1","auth","signup"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"4619f349-a6e6-4843-b892-1f95d4cd2c9d","name":"Signup","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstName\": \"ikem\",\r\n    \"lastName\": \"Violacordis\",\r\n    \"email\":\"violacordis@gmail.com\",\r\n    \"password\": \"123456789\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/auth/signup"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"503"},{"key":"Etag","value":"W/\"1f7-Y1EtSMgNXX5obU7vfRGYUJC79D4\""},{"key":"Date","value":"Sat, 05 Nov 2022 09:38:09 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYzNjYyZjAxYzM1NGVhNDY0ODIyN2EwZiIsImlhdCI6MTY2NzY0MTA4OSwiZXhwIjoxNjY3NjQ0Njg5fQ.X0V1yboBw4WotonW_pdROM14rYwxWCN0Q_5KPDAD-A8\",\n    \"data\": {\n        \"user\": {\n            \"firstName\": \"ikem\",\n            \"lastName\": \"Violacordis\",\n            \"email\": \"violacordis@gmail.com\",\n            \"password\": \"$2b$10$DPH1479hvLtHNDBL/rWm0.ADeJZ/bHRUt8BnHGwRFi99Oz9lTelFO\",\n            \"articles\": [],\n            \"_id\": \"63662f01c354ea4648227a0f\",\n            \"createdAt\": \"2022-11-05T09:38:09.232Z\",\n            \"updatedAt\": \"2022-11-05T09:38:09.232Z\",\n            \"__v\": 0\n        }\n    }\n}"}],"_postman_id":"f820cb63-5394-4d2b-9465-7a2c9d2e4194"},{"name":"Login","event":[{"listen":"test","script":{"id":"2e14f3dc-cf5c-43d9-8792-fa80338b4725","exec":["pm.environment.set(\"jwt\", pm.response.json().token);"],"type":"text/javascript"}}],"id":"c5a82225-7e45-4637-ba5e-39122081e09b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"violacordis@gmail.com\",\r\n    \"password\": \"123456789\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/auth/login","description":"<p>This route logs in users. It creates a token once its successfull.</p>\n","urlObject":{"path":["api","v1","auth","login"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"2bf137af-6195-448e-bafe-58a4b376fee1","name":"Login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"violacordis@gmail.com\",\r\n    \"password\": \"123456789\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"202"},{"key":"Etag","value":"W/\"ca-N7kbDWMJQFg80SNgV+Jfj9+cNXY\""},{"key":"Date","value":"Sat, 05 Nov 2022 09:38:33 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYzNjYyZjAxYzM1NGVhNDY0ODIyN2EwZiIsImlhdCI6MTY2NzY0MTExMywiZXhwIjoxNjY3NjQ0NzEzfQ._U9DKPgjBKmCeAf-MRKf6AN2oJ_Fh6wddcmST3okCxs\"\n}"}],"_postman_id":"c5a82225-7e45-4637-ba5e-39122081e09b"},{"name":"Create article","id":"2667909f-308f-48e6-bf7a-1260efe0675a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYzNjYyZjAxYzM1NGVhNDY0ODIyN2EwZiIsImlhdCI6MTY2NzY0MTExMywiZXhwIjoxNjY3NjQ0NzEzfQ._U9DKPgjBKmCeAf-MRKf6AN2oJ_Fh6wddcmST3okCxs","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Who is a software engineer?\",\r\n    \"description\": \"software engineer\",\r\n    \"state\": \"draft\",\r\n    \"tags\": [ \"software\"],\r\n    \"body\" : \" iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris maximus scelerisque mi a auctor. Maecenas ipsum sapien, vestibulum sit amet varius a, molestie ac elit. In commodo mauris quam. Nam vestibulum neque a semper gravida. Aliquam consectetur magna vel nisl convallis vulputate.\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/blog","description":"<p>This is a protected route. A user must be authenticated and logged in before he can create articles.</p>\n","urlObject":{"path":["api","v1","blog"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"eaced8db-abdc-4fc7-aa1b-30679c5e0646","name":"Create article","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYzNjYyZjAxYzM1NGVhNDY0ODIyN2EwZiIsImlhdCI6MTY2NzY0MTExMywiZXhwIjoxNjY3NjQ0NzEzfQ._U9DKPgjBKmCeAf-MRKf6AN2oJ_Fh6wddcmST3okCxs","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Who is a software engineer?\",\r\n    \"description\": \"software engineer\",\r\n    \"state\": \"draft\",\r\n    \"tags\": [ \"software\"],\r\n    \"body\" : \" iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris maximus scelerisque mi a auctor. Maecenas ipsum sapien, vestibulum sit amet varius a, molestie ac elit. In commodo mauris quam. Nam vestibulum neque a semper gravida. Aliquam consectetur magna vel nisl convallis vulputate.\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/blog"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2520"},{"key":"Etag","value":"W/\"9d8-Cup74aV8dHpzxcSxE7867qEbm1Y\""},{"key":"Date","value":"Sat, 05 Nov 2022 09:39:35 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Article created successfully\",\n    \"data\": {\n        \"blog\": {\n            \"title\": \"Who is a software engineer?\",\n            \"description\": \"software engineer\",\n            \"author\": \"ikem Violacordis\",\n            \"state\": \"draft\",\n            \"read_count\": 0,\n            \"reading_time\": \"2 min read\",\n            \"tags\": [\n                \"software\"\n            ],\n            \"body\": \" iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris maximus scelerisque mi a auctor. Maecenas ipsum sapien, vestibulum sit amet varius a, molestie ac elit. In commodo mauris quam. Nam vestibulum neque a semper gravida. Aliquam consectetur magna vel nisl convallis vulputate.\",\n            \"user\": \"63662f01c354ea4648227a0f\",\n            \"_id\": \"63662f57c354ea4648227a14\",\n            \"createdAt\": \"2022-11-05T09:39:35.063Z\",\n            \"updatedAt\": \"2022-11-05T09:39:35.063Z\",\n            \"__v\": 0\n        }\n    }\n}"}],"_postman_id":"2667909f-308f-48e6-bf7a-1260efe0675a"},{"name":"Get all published articles","id":"ac345c60-fc01-46ac-8178-ff544662629d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/blog?sort=-createdAt","description":"<p>This route fetches a list of published articles and can be accessed by both logged in and non logged in users.</p>\n<p>This endpoint is :</p>\n<ol>\n<li>paginated (default to 20 blogs per page ).</li>\n<li>Searchable by author, title and tags.</li>\n<li>Orderable by read_count, reading_time and timestamp</li>\n</ol>\n","urlObject":{"path":["api","v1","blog"],"host":["{{URL}}"],"query":[{"disabled":true,"key":"tags","value":"programming"},{"disabled":true,"key":"author","value":"Ikem Ada"},{"key":"sort","value":"-createdAt"}],"variable":[]}},"response":[{"id":"da842bb4-c154-4427-a2c1-071b9aad3c20","name":"Get all published articles","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{URL}}/api/v1/blog?sort=-createdAt","host":["{{URL}}"],"path":["api","v1","blog"],"query":[{"key":"tags","value":"programming","type":"text","disabled":true},{"key":"author","value":"Ikem Ada","disabled":true},{"key":"sort","value":"-createdAt"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"14024"},{"key":"Etag","value":"W/\"36c8-gx5OAwcvam3Krfckw4YBAir7jks\""},{"key":"Date","value":"Sat, 05 Nov 2022 09:40:02 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"result\": 4,\n    \"current_page\": 1,\n    \"limit\": 20,\n    \"total_pages\": 1,\n    \"data\": {\n        \"publishedArticles\": [\n            {\n                \"_id\": \"6366280ac354ea46482279f0\",\n                \"title\": \"Backend development\",\n                \"description\": \"what is backend development?\",\n                \"author\": \"Adam Vee\",\n                \"state\": \"published\",\n                \"read_count\": 2,\n                \"reading_time\": \"2 min read\",\n                \"tags\": [\n                    \"backend\",\n                    \"developer\"\n                ],\n                \"body\": \" iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris maximus scelerisque mi a auctor. Maecenas ipsum sapien, vestibulum sit amet varius a, molestie ac elit. In commodo mauris quam. Nam vestibulum neque a semper gravida. Aliquam consectetur magna vel nisl convallis vulputate.\",\n                \"user\": {\n                    \"_id\": \"63662725c354ea46482279ec\",\n                    \"firstName\": \"Adam\",\n                    \"lastName\": \"Vee\"\n                },\n                \"createdAt\": \"2022-11-05T09:08:26.097Z\",\n                \"updatedAt\": \"2022-11-05T09:36:22.079Z\",\n                \"__v\": 0\n            },\n            {\n                \"_id\": \"6365763be6942a2e7c32908f\",\n                \"title\": \"Testing my blog API\",\n                \"description\": \"Testing the API\",\n                \"author\": \"Ada Viola\",\n                \"state\": \"published\",\n                \"read_count\": 2,\n                \"reading_time\": \"2 min read\",\n                \"tags\": [\n                    \"Testing\"\n                ],\n                \"body\": \"os et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris maximus scelerisque mi a auctor. Maecenas ipsum sapien, vestibulum sit amet varius a, molestie ac elit. In commodo mauris quam. Nam vestibulum neque a semper gravida. Aliquam consectetur magna vel nisl convallis vulputate.\",\n                \"user\": {\n                    \"_id\": \"636575b8e6942a2e7c32908a\",\n                    \"firstName\": \"Ada\",\n                    \"lastName\": \"Viola\"\n                },\n                \"createdAt\": \"2022-11-04T20:29:47.882Z\",\n                \"updatedAt\": \"2022-11-04T20:40:30.990Z\",\n                \"__v\": 0\n            },\n            {\n                \"_id\": \"6365755be6942a2e7c329082\",\n                \"title\": \"Hello World\",\n                \"description\": \"Saying hello to the world\",\n                \"author\": \"Wendy Alvicci\",\n                \"state\": \"published\",\n                \"read_count\": 0,\n                \"reading_time\": \"2 min read\",\n                \"tags\": [\n                    \"hello\"\n                ],\n                \"body\": \"At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris maximus scelerisque mi a auctor. Maecenas ipsum sapien, vestibulum sit amet varius a, molestie ac elit. In commodo mauris quam. Nam vestibulum neque a semper gravida. Aliquam consectetur magna vel nisl convallis vulputate.\",\n                \"user\": {\n                    \"_id\": \"636574dfe6942a2e7c32907e\",\n                    \"firstName\": \"Wendy\",\n                    \"lastName\": \"Alvicci\"\n                },\n                \"createdAt\": \"2022-11-04T20:26:03.495Z\",\n                \"updatedAt\": \"2022-11-04T20:26:03.495Z\",\n                \"__v\": 0\n            },\n            {\n                \"_id\": \"63655a03d21b2824bbd2c78f\",\n                \"title\": \"lorem ipsum 2\",\n                \"description\": \"lorem ipsum\",\n                \"author\": \"Ikem Ada\",\n                \"state\": \"published\",\n                \"read_count\": 0,\n                \"reading_time\": \"5 min read\",\n                \"tags\": [\n                    \"lorem\"\n                ],\n                \"body\": \"At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris maximus scelerisque mi a auctor. Maecenas ipsum sapien, vestibulum sit amet varius a, molestie ac elit. In commodo mauris quam. Nam vestibulum neque a semper gravida. Aliquam consectetur magna vel nisl convallis vulputate. Mauris sed elit ac lorem gravida imperdiet. Pellentesque et ante lacus. Suspendisse semper leo a lorem bibendum tincidunt. Aliquam sed ligula libero. Integer tincidunt vulputate erat sit amet pulvinar. Curabitur fermentum nibh ut arcu placerat gravida. Proin facilisis nec erat et ullamcorper. Vivamus eros ipsum, porta et mollis a, convallis ac quam. Fusce eget nisi sagittis, sagittis dolor ut, pellentesque diam. Phasellus dignissim molestie nisl nec convallis to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris maximus scelerisque mi a auctor. Maecenas ipsum sapien, vestibulum sit amet varius a, molestie ac elit. In commodo mauris quam. Nam vestibulum neque a semper gravida. Aliquam consectetur magna vel nisl convallis vulputate. Mauris sed elit ac lorem gravida imperdiet. Pellentesque et ante lacus. Suspendisse semper leo a lorem bibendum tincidunt. Aliquam sed ligula libero. Integer tincidunt vulputate erat sit amet pulvinar. Curabitur fermentum nibh ut arcu placerat gravida. Proin facilisis nec erat et ullamcorper. Vivamus eros ipsum, porta et mollis a, convallis ac quam. Fusce eget nisi sagittis, sagittis dolor ut, pellentesque diam. Phasellus dignissim molestie nisl nec convallis to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris maximus scelerisque mi a auctor. Maecenas ipsum sapien, vestibulum sit amet varius a, molestie ac elit. In commodo mauris quam. Nam vestibulum neque a semper gravida. Aliquam consectetur magna vel nisl convallis vulputate. Mauris sed elit ac lorem gravida imperdiet. Pellentesque et ante lacus. Suspendisse semper leo a lorem bibendum tincidunt. Aliquam sed ligula libero. Integer tincidunt vulputate erat sit amet pulvinar. Curabitur fermentum nibh ut arcu placerat gravida. Proin facilisis nec erat et ullamcorper. Vivamus eros ipsum, porta et mollis a, convallis ac quam. Fusce eget nisi sagittis, sagittis dolor ut, pellentesque diam. Phasellus dignissim molestie nisl nec convallis to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris maximus scelerisque mi a auctor. Maecenas ipsum sapien, vestibulum sit amet varius a, molestie ac elit. In commodo mauris quam. Nam vestibulum neque a semper gravida. Aliquam consectetur magna vel nisl convallis vulputate. Mauris sed elit ac lorem gravida imperdiet. Pellentesque et ante lacus. Suspendisse semper leo a lorem bibendum tincidunt. Aliquam sed ligula libero. Integer tincidunt vulputate erat sit amet pulvinar. Curabitur fermentum nibh ut arcu placerat gravida. Proin facilisis nec erat et ullamcorper. Vivamus eros ipsum, porta et mollis a, convallis ac quam. Fusce eget nisi sagittis, sagittis dolor ut, pellentesque diam. Phasellus dignissim molestie nisl nec convallis.\",\n                \"user\": {\n                    \"_id\": \"63655971d21b2824bbd2c785\",\n                    \"firstName\": \"Ikem\",\n                    \"lastName\": \"Ada\"\n                },\n                \"createdAt\": \"2022-11-04T18:29:23.642Z\",\n                \"updatedAt\": \"2022-11-04T18:29:23.642Z\",\n                \"__v\": 0\n            }\n        ]\n    }\n}"}],"_postman_id":"ac345c60-fc01-46ac-8178-ff544662629d"},{"name":"Get published article by  Id","id":"6a05b7db-318d-45e6-ae90-a8e9ff815c5c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{URL}}/api/v1/blog/6366280ac354ea46482279f0","description":"<p>This route fetches a requested published article using the article ID. both logged in and non logged in users can access it.</p>\n","urlObject":{"path":["api","v1","blog","6366280ac354ea46482279f0"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"5dcdc6d6-bbfb-493a-9bd4-2d68d3dc208b","name":"Get published article by  Id","originalRequest":{"method":"GET","header":[],"url":"{{URL}}/api/v1/blog/6366280ac354ea46482279f0"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2527"},{"key":"Etag","value":"W/\"9df-9AZv8sjiVZo/DV2VzEePkL5HaP0\""},{"key":"Date","value":"Sat, 05 Nov 2022 09:41:32 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"article\": {\n        \"_id\": \"6366280ac354ea46482279f0\",\n        \"title\": \"Backend development\",\n        \"description\": \"what is backend development?\",\n        \"author\": \"Adam Vee\",\n        \"state\": \"published\",\n        \"read_count\": 3,\n        \"reading_time\": \"2 min read\",\n        \"tags\": [\n            \"backend\",\n            \"developer\"\n        ],\n        \"body\": \" iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris maximus scelerisque mi a auctor. Maecenas ipsum sapien, vestibulum sit amet varius a, molestie ac elit. In commodo mauris quam. Nam vestibulum neque a semper gravida. Aliquam consectetur magna vel nisl convallis vulputate.\",\n        \"user\": {\n            \"_id\": \"63662725c354ea46482279ec\",\n            \"firstName\": \"Adam\",\n            \"lastName\": \"Vee\"\n        },\n        \"createdAt\": \"2022-11-05T09:08:26.097Z\",\n        \"updatedAt\": \"2022-11-05T09:36:22.079Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"6a05b7db-318d-45e6-ae90-a8e9ff815c5c"},{"name":"Get all user articles with user id","id":"f1bab298-ac45-4652-91c1-f000a1330b4f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{URL}}/api/v1/blog/articles/636f815016effaf6fb4f1ed8","description":"<p>This route is protected. It displays a user's article lists using the user's ID</p>\n","urlObject":{"path":["api","v1","blog","articles","636f815016effaf6fb4f1ed8"],"host":["{{URL}}"],"query":[{"disabled":true,"key":"state","value":"published"},{"disabled":true,"key":"sort","value":"-createdAt"}],"variable":[]}},"response":[{"id":"ef73461d-8d11-49df-a5f1-5c6ef021f2e6","name":"Get all user articles with user id","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYzNjYyZjAxYzM1NGVhNDY0ODIyN2EwZiIsImlhdCI6MTY2NzY0MTExMywiZXhwIjoxNjY3NjQ0NzEzfQ._U9DKPgjBKmCeAf-MRKf6AN2oJ_Fh6wddcmST3okCxs","type":"text"}],"url":{"raw":"{{URL}}/api/v1/blog/articles/63662f01c354ea4648227a0f","host":["{{URL}}"],"path":["api","v1","blog","articles","63662f01c354ea4648227a0f"],"query":[{"key":"state","value":"published","disabled":true},{"key":"sort","value":"-createdAt","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2548"},{"key":"Etag","value":"W/\"9f4-2o+dNy+k0N4QxMiLzDnOiUQ105g\""},{"key":"Date","value":"Sat, 05 Nov 2022 09:42:56 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"result\": 1,\n    \"data\": {\n        \"articles\": [\n            {\n                \"_id\": \"63662f57c354ea4648227a14\",\n                \"title\": \"Who is a software engineer?\",\n                \"description\": \"software engineer\",\n                \"author\": \"ikem Violacordis\",\n                \"state\": \"draft\",\n                \"read_count\": 0,\n                \"reading_time\": \"2 min read\",\n                \"tags\": [\n                    \"software\"\n                ],\n                \"body\": \" iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris maximus scelerisque mi a auctor. Maecenas ipsum sapien, vestibulum sit amet varius a, molestie ac elit. In commodo mauris quam. Nam vestibulum neque a semper gravida. Aliquam consectetur magna vel nisl convallis vulputate.\",\n                \"user\": {\n                    \"_id\": \"63662f01c354ea4648227a0f\",\n                    \"firstName\": \"ikem\",\n                    \"lastName\": \"Violacordis\"\n                },\n                \"createdAt\": \"2022-11-05T09:39:35.063Z\",\n                \"updatedAt\": \"2022-11-05T09:39:35.063Z\",\n                \"__v\": 0\n            }\n        ]\n    }\n}"}],"_postman_id":"f1bab298-ac45-4652-91c1-f000a1330b4f"},{"name":"Update user article","id":"d7074267-e031-48a3-b82e-ed0f9eb7d6ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"state\" : \"published\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/blog/articles/63662f57c354ea4648227a14","description":"<p>This route is protected. only the owner of an article can update the article using the particular article's ID</p>\n","urlObject":{"path":["api","v1","blog","articles","63662f57c354ea4648227a14"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"2e197830-f4e6-4ce4-b867-ec5d00fe123c","name":"Update user article","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYzNjYyZjAxYzM1NGVhNDY0ODIyN2EwZiIsImlhdCI6MTY2NzY0MTExMywiZXhwIjoxNjY3NjQ0NzEzfQ._U9DKPgjBKmCeAf-MRKf6AN2oJ_Fh6wddcmST3okCxs","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"state\" : \"published\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{URL}}/api/v1/blog/articles/63662f57c354ea4648227a14"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2493"},{"key":"Etag","value":"W/\"9bd-GddQVqcseIzjPIFND/XdmzOpeds\""},{"key":"Date","value":"Sat, 05 Nov 2022 09:44:24 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"updatedArticle\": {\n            \"_id\": \"63662f57c354ea4648227a14\",\n            \"title\": \"Who is a software engineer?\",\n            \"description\": \"software engineer\",\n            \"author\": \"ikem Violacordis\",\n            \"state\": \"published\",\n            \"read_count\": 0,\n            \"reading_time\": \"2 min read\",\n            \"tags\": [\n                \"software\"\n            ],\n            \"body\": \" iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris maximus scelerisque mi a auctor. Maecenas ipsum sapien, vestibulum sit amet varius a, molestie ac elit. In commodo mauris quam. Nam vestibulum neque a semper gravida. Aliquam consectetur magna vel nisl convallis vulputate.\",\n            \"user\": \"63662f01c354ea4648227a0f\",\n            \"createdAt\": \"2022-11-05T09:39:35.063Z\",\n            \"updatedAt\": \"2022-11-05T09:44:24.215Z\",\n            \"__v\": 0\n        }\n    }\n}"}],"_postman_id":"d7074267-e031-48a3-b82e-ed0f9eb7d6ff"},{"name":"Delete user article","id":"a89fb631-7ab6-48f9-befa-e382ca38f226","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{jwt}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{URL}}/api/v1/blog/articles/63662f57c354ea4648227a14","description":"<p>This route is protected. Only the owner of an article can delete the article using the article's ID.</p>\n","urlObject":{"path":["api","v1","blog","articles","63662f57c354ea4648227a14"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[{"id":"f38ac2e6-b1f0-4ba7-993c-cabca4908923","name":"Delete user article","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYzNjYyZjAxYzM1NGVhNDY0ODIyN2EwZiIsImlhdCI6MTY2NzY0MTExMywiZXhwIjoxNjY3NjQ0NzEzfQ._U9DKPgjBKmCeAf-MRKf6AN2oJ_Fh6wddcmST3okCxs","type":"text"}],"url":"{{URL}}/api/v1/blog/articles/63662f57c354ea4648227a14"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"61"},{"key":"Etag","value":"W/\"3d-7Rzp0aSRxVFNXk9KEpVSPZqw7HU\""},{"key":"Date","value":"Sat, 05 Nov 2022 09:45:18 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Article deleted successfully\"\n}"}],"_postman_id":"a89fb631-7ab6-48f9-befa-e382ca38f226"}]}