{"info":{"_postman_id":"d5212b7b-b536-452d-a1a3-f13bbf71a702","name":"Articles","description":"<html><head></head><body><h2 id=\"articles-collection\">Articles Collection</h2>\n<p>The Articles Collection API empowers you to manage news articles within the Newspaper Backend system. Through these endpoints, you can perform essential CRUD (Create, Read, Update, Delete) operations on articles, ensuring seamless publication and retrieval of news content.</p>\n<p><strong>Base URL:</strong> <code>https://newspaper.azurewebsites.net/api/v1/article</code></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"32008492","collectionId":"d5212b7b-b536-452d-a1a3-f13bbf71a702","publishedId":"2sA2xjyAsa","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-03-12T15:32:15.000Z"},"item":[{"name":"Create Article","id":"18258d1d-9e50-4761-8595-31affe75c8e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Unbranded Plastic Ball\",\r\n    \"content\": \"Provident animi esse. Et asperiores quae vitae nihil omnis. Et eius nulla atque et magni nulla repellat rerum. Ut numquam neque unde at molestiae dicta consequatur. Asperiores aperiam et in aut aliquid numquam esse.\",\r\n    \"category\": \"uncategorized\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_artical}}/create-article","description":"<h3 id=\"create-article\">Create Article</h3>\n<p>This endpoint allows you to create a new article.</p>\n<p><strong>HTTP Request</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-plaintext\">POST {{base_artical}}/create-article\n\n</code></pre>\n<p><strong>Request Body</strong></p>\n<ul>\n<li><code>title</code> (string, required): The title of the article.</li>\n<li><code>content</code> (string, required): The content of the article.</li>\n<li><code>category</code> (string, required): The category of the article.</li>\n</ul>\n<p><strong>Example Request</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-plaintext\">{\n  \"title\": \"Sample Title\",\n  \"content\": \"Sample Content\",\n  \"category\": \"Sample Category\"\n}\n\n</code></pre>\n<p><strong>Response</strong></p>\n<ul>\n<li><code>statusCode</code> (number): The status code of the response.</li>\n<li><code>data</code> (string): The data of the response.</li>\n<li><code>message</code> (object): The message object containing details of the created article.<ul>\n<li><code>title</code> (string): The title of the created article.</li>\n<li><code>content</code> (string): The content of the created article.</li>\n<li><code>author</code> (string): The author of the created article.</li>\n<li><code>category</code> (string): The category of the created article.</li>\n<li><code>_id</code> (string): The unique identifier of the created article.</li>\n<li><code>publicationDate</code> (string): The publication date of the created article.</li>\n<li><code>__v</code> (number): Version control of the created article.</li>\n</ul>\n</li>\n<li><code>success</code> (boolean): Indicates if the request was successful.</li>\n</ul>\n<p><strong>Example Response</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-plaintext\">{\n  \"statusCode\": 0,\n  \"data\": \"\",\n  \"message\": {\n    \"title\": \"Sample Title\",\n    \"content\": \"Sample Content\",\n    \"author\": \"\",\n    \"category\": \"Sample Category\",\n    \"_id\": \"sample_id\",\n    \"publicationDate\": \"2022-01-01\",\n    \"__v\": 0\n  },\n  \"success\": true\n}\n\n</code></pre>\n","urlObject":{"path":["create-article"],"host":["{{base_artical}}"],"query":[],"variable":[]}},"response":[{"id":"86853c5d-ba86-4e12-8281-01ef2dc48b2f","name":"201 Created","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Incredible Plastic Mouse\",\r\n    \"content\": \"Et sed voluptate nihil laborum. Praesentium est perspiciatis velit deleniti non quia quibusdam amet. Doloremque quam quia voluptas animi quasi in. Vel dolores rem consequuntur modi fuga eligendi. Optio omnis molestiae cum. Eveniet minus voluptatem consequatur vel quibusdam itaque culpa voluptates est.\",\r\n    \"category\": \"uncategorized\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_artical}}/create-article"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"472"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 12 Mar 2024 14:11:51 GMT"},{"key":"ETag","value":"W/\"1d8-BvCQFRRePzDhNgIPZsiGuMaan1w\""},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 201,\n    \"data\": \"article created successfully\",\n    \"message\": {\n        \"title\": \"Practical Frozen Towels\",\n        \"content\": \"Optio assumenda ducimus aspernatur odit quibusdam explicabo sed officiis. Necessitatibus omnis ut rem recusandae molestiae. Ab voluptatem nemo nihil non dolor minus ea sed explicabo.\",\n        \"author\": \"65ee2e7045f5634805992ae8\",\n        \"category\": \"65ef61230c5505a51aaae0f1\",\n        \"_id\": \"65f062a6b8fcddab17620f39\",\n        \"publicationDate\": \"2024-03-12T14:11:50.474Z\",\n        \"__v\": 0\n    },\n    \"success\": true\n}"},{"id":"2e697a81-c289-4efb-b834-bcbec51526ed","name":"401 Unauthorized","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Incredible Frozen Shirt\",\r\n    \"content\": \"Occaecati similique quisquam voluptatem quos quasi assumenda voluptatem hic. Commodi nemo ullam sequi voluptate possimus nobis iste. Dolorem assumenda porro amet quo dolore beatae ut. Tempora quos harum cumque qui recusandae tempore. Fugit id quos placeat quia.\",\r\n    \"category\": \"uncategorized\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_artical}}/create-article"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"31"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 12 Mar 2024 14:11:07 GMT"},{"key":"ETag","value":"W/\"1f-crg7ovEEHb9AqDObckZob3ngQr8\""},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Please authenticate\"\n}"},{"id":"5cfd92d6-5940-4b12-9a91-43d50d48df37","name":"400 Bad Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Awesome Cotton Fish\",\r\n    \"content\": \"Ut illum ipsam quibusdam et. Possimus possimus non. Provident eum asperiores nesciunt ad asperiores odit hic.\",\r\n    \"category\": \"uncategorizedd\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_artical}}/create-article"},"status":"Bad Request","code":400,"_postman_previewlanguage":"html","header":[{"key":"Content-Length","value":"354"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Date","value":"Tue, 12 Mar 2024 14:12:33 GMT"},{"key":"X-Powered-By","value":"Express"},{"key":"Content-Security-Policy","value":"default-src 'self'"},{"key":"X-Content-Type-Options","value":"nosniff"}],"cookie":[],"responseTime":null,"body":"<!DOCTYPE html>\n<html lang=\"en\">\n    <head>\n        <meta charset=\"utf-8\">\n        <title>Error</title>\n    </head>\n    <body>\n        <pre>Error: Category does not exist || Please create one\n            <br> &nbsp; &nbsp;at /home/site/wwwroot/controllers/articleController.js.js:24:11\n            <br> &nbsp; &nbsp;at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n        </pre>\n    </body>\n</html>"}],"_postman_id":"18258d1d-9e50-4761-8595-31affe75c8e6"},{"name":"All Articles","id":"96ac6879-8201-486e-a82c-d4f507286c04","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_artical}}?page=1&pageSize=1","description":"<p>This endpoint makes an HTTP GET request to retrieve a single page of articles with a specified page number and page size. The response will include an array of articles, along with metadata such as total pages, current page, page size, and total number of articles.</p>\n<p>The response will have a status code of 200 and a content type of application/json. The response body will contain a statusCode, data array with article details, totalPages, currentPage, pageSize, totalArticles, message, and success indicators.</p>\n<p>Here is an example of the response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"statusCode\": 0,\n  \"data\": [\n    {\n      \"_id\": \"\",\n      \"title\": \"\",\n      \"content\": \"\",\n      \"author\": {\n        \"_id\": \"\"\n      },\n      \"category\": {\n        \"_id\": \"\",\n        \"name\": \"\"\n      },\n      \"publicationDate\": \"\",\n      \"__v\": 0\n    }\n  ],\n  \"message\": \"\",\n  \"success\": true\n}\n\n</code></pre>\n","urlObject":{"host":["{{base_artical}}"],"query":[{"key":"page","value":"1"},{"key":"pageSize","value":"1"}],"variable":[]}},"response":[{"id":"f42472d2-8300-4d73-bcf3-921dc6e5897c","name":"200 Success","originalRequest":{"method":"GET","header":[],"url":"{{base_artical}}/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"953"},{"key":"ETag","value":"W/\"3b9-GwnybxRQOH+rPaQ4DtZxIQdH1fY\""},{"key":"Date","value":"Tue, 12 Mar 2024 14:21:41 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"data\": [\n        {\n            \"_id\": \"65f062a6b8fcddab17620f39\",\n            \"title\": \"Practical Frozen Towels\",\n            \"content\": \"Optio assumenda ducimus aspernatur odit quibusdam explicabo sed officiis. Necessitatibus omnis ut rem recusandae molestiae. Ab voluptatem nemo nihil non dolor minus ea sed explicabo.\",\n            \"author\": {\n                \"_id\": \"65ee2e7045f5634805992ae8\"\n            },\n            \"category\": {\n                \"_id\": \"65ef61230c5505a51aaae0f1\",\n                \"name\": \"uncategorized\"\n            },\n            \"publicationDate\": \"2024-03-12T14:11:50.474Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"65f0630db8fcddab17620f41\",\n            \"title\": \"Unbranded Soft Sausages\",\n            \"content\": \"Tempora aut quia illum dolorem earum quia. Illo sunt temporibus labore voluptate repellendus nulla molestiae est. Nihil molestiae omnis molestias dignissimos. Commodi porro temporibus. Excepturi quas ipsam.\",\n            \"author\": {\n                \"_id\": \"65ee2e7045f5634805992ae8\"\n            },\n            \"category\": {\n                \"_id\": \"65ef61230c5505a51aaae0f1\",\n                \"name\": \"uncategorized\"\n            },\n            \"publicationDate\": \"2024-03-12T14:13:33.240Z\",\n            \"__v\": 0\n        }\n    ],\n    \"message\": \"articles found\",\n    \"success\": true\n}"}],"_postman_id":"96ac6879-8201-486e-a82c-d4f507286c04"},{"name":"Get Article","id":"8a7b6001-28a4-4f68-ab91-fcbf02ff2d70","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_artical}}/65f062a6b8fcddab17620f39","description":"<p>This endpoint makes an HTTP GET request to retrieve an article with a specific ID. The response will include the status code, data, message, and success indicator. The data will contain details of the article such as ID, title, content, author, category, and publication date.</p>\n","urlObject":{"path":["65f062a6b8fcddab17620f39"],"host":["{{base_artical}}"],"query":[],"variable":[]}},"response":[{"id":"472193ed-35fa-46a0-a93b-acfd36354d84","name":"200 Success","originalRequest":{"method":"GET","header":[],"url":"{{base_artical}}/65f062a6b8fcddab17620f39"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"496"},{"key":"ETag","value":"W/\"1f0-EmyfzeJBcfHwBsqAzgBFuDWEpv8\""},{"key":"Date","value":"Tue, 12 Mar 2024 14:21:56 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"data\": \"article found\",\n    \"message\": {\n        \"_id\": \"65f062a6b8fcddab17620f39\",\n        \"title\": \"Practical Frozen Towels\",\n        \"content\": \"Optio assumenda ducimus aspernatur odit quibusdam explicabo sed officiis. Necessitatibus omnis ut rem recusandae molestiae. Ab voluptatem nemo nihil non dolor minus ea sed explicabo.\",\n        \"author\": {\n            \"_id\": \"65ee2e7045f5634805992ae8\"\n        },\n        \"category\": {\n            \"_id\": \"65ef61230c5505a51aaae0f1\",\n            \"name\": \"uncategorized\"\n        },\n        \"publicationDate\": \"2024-03-12T14:11:50.474Z\",\n        \"__v\": 0\n    },\n    \"success\": true\n}"},{"id":"8dd05340-f11b-4fcc-99a6-40396fa6b991","name":"400 Bad Request","originalRequest":{"method":"GET","header":[],"url":"{{base_artical}}/65f062a6b8fcddab17620"},"status":"Bad Request","code":400,"_postman_previewlanguage":"html","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Security-Policy","value":"default-src 'self'"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"1339"},{"key":"Date","value":"Tue, 12 Mar 2024 14:20:58 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"<!DOCTYPE html>\n<html lang=\"en\">\n    <head>\n        <meta charset=\"utf-8\">\n        <title>Error</title>\n    </head>\n    <body>\n        <pre>Error: Article Id must be 24 characters in legnth\n            <br> &nbsp; &nbsp;at F:\\Personal Project\\Newspaper-Backend\\controllers\\articleController.js.js:83:11\n            <br> &nbsp; &nbsp;at F:\\Personal Project\\Newspaper-Backend\\utils\\asyncHandler.js:3:21\n            <br> &nbsp; &nbsp;at Layer.handle [as handle_request] (F:\\Personal Project\\Newspaper-Backend\\node_modules\\express\\lib\\router\\layer.js:95:5)\n            <br> &nbsp; &nbsp;at next (F:\\Personal Project\\Newspaper-Backend\\node_modules\\express\\lib\\router\\route.js:137:13)\n            <br> &nbsp; &nbsp;at Route.dispatch (F:\\Personal Project\\Newspaper-Backend\\node_modules\\express\\lib\\router\\route.js:112:3)\n            <br> &nbsp; &nbsp;at Layer.handle [as handle_request] (F:\\Personal Project\\Newspaper-Backend\\node_modules\\express\\lib\\router\\layer.js:95:5)\n            <br> &nbsp; &nbsp;at F:\\Personal Project\\Newspaper-Backend\\node_modules\\express\\lib\\router\\index.js:281:22\n            <br> &nbsp; &nbsp;at param (F:\\Personal Project\\Newspaper-Backend\\node_modules\\express\\lib\\router\\index.js:354:14)\n            <br> &nbsp; &nbsp;at param (F:\\Personal Project\\Newspaper-Backend\\node_modules\\express\\lib\\router\\index.js:365:14)\n            <br> &nbsp; &nbsp;at Function.process_params (F:\\Personal Project\\Newspaper-Backend\\node_modules\\express\\lib\\router\\index.js:410:3)\n        </pre>\n    </body>\n</html>"}],"_postman_id":"8a7b6001-28a4-4f68-ab91-fcbf02ff2d70"},{"name":"Delete Article","id":"d5e5bdfa-12b1-4878-9d7f-5982395cdf5a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{base_artical}}/65f062a6b8fcddab17620f39","description":"<h1 id=\"delete-article\">Delete Article</h1>\n<p>This endpoint is used to delete a specific article by its ID.</p>\n<h2 id=\"request\">Request</h2>\n<ul>\n<li>Method: DELETE</li>\n<li>Endpoint: <code>{{base_artical}}/65f062a6b8fcddab17620f39</code></li>\n</ul>\n<h2 id=\"response\">Response</h2>\n<ul>\n<li><code>statusCode</code> (number): The status code of the response.</li>\n<li><code>data</code> (string): The data returned in the response.</li>\n<li><code>message</code> (object): An object containing details of the deleted article, including its ID, title, content, author, category, and publication date.</li>\n<li><code>success</code> (boolean): Indicates whether the deletion was successful.</li>\n</ul>\n","urlObject":{"path":["65f062a6b8fcddab17620f39"],"host":["{{base_artical}}"],"query":[],"variable":[]}},"response":[{"id":"8446ce3f-a39e-416c-b069-db0f0874b131","name":"200 Success","originalRequest":{"method":"DELETE","header":[],"url":"{{base_artical}}/65f062a6b8fcddab17620f39"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"472"},{"key":"ETag","value":"W/\"1d8-Yy8+ppQmJnmVe4ZwEBbD1kLDIxc\""},{"key":"Date","value":"Tue, 12 Mar 2024 15:08:34 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"data\": \"article deleted successfully\",\n    \"message\": {\n        \"_id\": \"65f062a6b8fcddab17620f39\",\n        \"title\": \"Practical Frozen Towels\",\n        \"content\": \"Optio assumenda ducimus aspernatur odit quibusdam explicabo sed officiis. Necessitatibus omnis ut rem recusandae molestiae. Ab voluptatem nemo nihil non dolor minus ea sed explicabo.\",\n        \"author\": \"65ee2e7045f5634805992ae8\",\n        \"category\": \"65ef61230c5505a51aaae0f1\",\n        \"publicationDate\": \"2024-03-12T14:11:50.474Z\",\n        \"__v\": 0\n    },\n    \"success\": true\n}"},{"id":"e7f65a83-b285-4ae3-b0ab-8f157e64b72a","name":"401 Unauthorized","originalRequest":{"method":"DELETE","header":[],"url":"{{base_artical}}/65f062a6b8fcddab17620f39"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"31"},{"key":"ETag","value":"W/\"1f-crg7ovEEHb9AqDObckZob3ngQr8\""},{"key":"Date","value":"Tue, 12 Mar 2024 14:23:53 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Please authenticate\"\n}"},{"id":"ae6cdba4-87d8-41a1-b164-90b625939024","name":"400 Bad Request","originalRequest":{"method":"DELETE","header":[],"url":"{{base_artical}}/65f062a6b8fcddab17620f3"},"status":"Bad Request","code":400,"_postman_previewlanguage":"html","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Security-Policy","value":"default-src 'self'"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"819"},{"key":"Date","value":"Tue, 12 Mar 2024 15:10:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"<!DOCTYPE html>\n<html lang=\"en\">\n    <head>\n        <meta charset=\"utf-8\">\n        <title>Error</title>\n    </head>\n    <body>\n        <pre>Error: Article Id must be 24 characters in legnth\n            <br> &nbsp; &nbsp;at F:\\Personal Project\\Newspaper-Backend\\controllers\\articleController.js.js:125:11\n            <br> &nbsp; &nbsp;at F:\\Personal Project\\Newspaper-Backend\\utils\\asyncHandler.js:3:21\n            <br> &nbsp; &nbsp;at Layer.handle [as handle_request] (F:\\Personal Project\\Newspaper-Backend\\node_modules\\express\\lib\\router\\layer.js:95:5)\n            <br> &nbsp; &nbsp;at next (F:\\Personal Project\\Newspaper-Backend\\node_modules\\express\\lib\\router\\route.js:137:13)\n            <br> &nbsp; &nbsp;at isUserLoggedin (F:\\Personal Project\\Newspaper-Backend\\middlewares\\isUserLoggedin.js:31:5)\n            <br> &nbsp; &nbsp;at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n        </pre>\n    </body>\n</html>"}],"_postman_id":"d5e5bdfa-12b1-4878-9d7f-5982395cdf5a"},{"name":"Update Article","id":"8c58a4f9-7dec-404e-9fce-83328a3d0c6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"\r\n   {\r\n    \"title\": \"Refined Fresh Cheese\",\r\n    \"content\": \"Vel ut placeat sint. Enim ut aut labore repudiandae veniam beatae aut quo quae. Dolorem accusantium libero neque aut quia. Aliquam dolorum harum laboriosam. Accusamus magnam quam aliquid delectus.\",\r\n    \"category\": \"uncategorized-new\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"{{base_artical}}/65f0630db8fcddab17620f41","description":"<p>This endpoint allows the user to update an article with the specified ID. The HTTP PUT request should be made to {{base_artical}}/65f0630db8fcddab17620f41, with the following payload in the raw request body type:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"title\": \"\",\n  \"content\": \"\",\n  \"category\": \"\"\n}\n\n</code></pre>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><code>statusCode</code> (number): Indicates the status of the response.</li>\n<li><code>data</code> (string): Represents the data returned in the response.</li>\n<li><code>message</code> (object): Contains details about the updated article, including its ID, title, content, author, category, and publication date.</li>\n<li><code>success</code> (boolean): Indicates whether the update was successful.</li>\n</ul>\n<p>Example Response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"statusCode\": 0,\n  \"data\": \"\",\n  \"message\": {\n    \"_id\": \"\",\n    \"title\": \"\",\n    \"content\": \"\",\n    \"author\": \"\",\n    \"category\": \"\",\n    \"publicationDate\": \"\",\n    \"__v\": 0\n  },\n  \"success\": true\n}\n\n</code></pre>\n","urlObject":{"path":["65f0630db8fcddab17620f41"],"host":["{{base_artical}}"],"query":[],"variable":[]}},"response":[{"id":"097dd867-b2f4-4fa4-ae21-9dbf802a3376","name":"200 Success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"\r\n   {\r\n    \"title\": \"Tasty Wooden Shoes\",\r\n    \"content\": \"Officia explicabo consequatur consequuntur ut aliquam voluptas. Itaque voluptates consequatur delectus officia molestias cum laboriosam asperiores. Quidem dolorum ea ea. Vitae atque tempore iure. Est reprehenderit omnis.\",\r\n    \"category\": \"uncategorized-new\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"{{base_artical}}/65f0630db8fcddab17620f41"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"534"},{"key":"ETag","value":"W/\"216-dLK7bJLfD3tEedPEaFzhz9eb/58\""},{"key":"Date","value":"Tue, 12 Mar 2024 15:20:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"data\": \"article updated successfully\",\n    \"message\": {\n        \"_id\": \"65f0630db8fcddab17620f41\",\n        \"title\": \"Fantastic Steel Car\",\n        \"content\": \"Rem qui et accusantium ullam quam odit enim. Nisi eos quae quia perferendis sint. Saepe vel accusamus qui. Minima error adipisci beatae tempora suscipit aliquid animi. Hic illum eius ad omnis ea. Saepe soluta rerum libero non id quisquam assumenda.\",\n        \"author\": \"65ee2e7045f5634805992ae8\",\n        \"category\": \"65ef01ab49b11889a23008a7\",\n        \"publicationDate\": \"2024-03-12T14:13:33.240Z\",\n        \"__v\": 0\n    },\n    \"success\": true\n}"},{"id":"bcc30ea2-6473-43b4-9366-82b4ec7bb6db","name":"400 Bad Request","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"\r\n   {\r\n    \"title\": \"Small Fresh Ball\",\r\n    \"content\": \"Et esse aut. Tenetur rem quis fugit. Tempore ea cumque atque non laborum dicta quia vitae asperiores. Cumque aut eius officia nesciunt quasi adipisci possimus. Perferendis dolor quasi.\",\r\n    \"category\": \"uncategorized-new\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"{{base_artical}}/65f0630db8fcddab17620f"},"status":"Bad Request","code":400,"_postman_previewlanguage":"html","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Security-Policy","value":"default-src 'self'"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"819"},{"key":"Date","value":"Tue, 12 Mar 2024 15:20:53 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"<!DOCTYPE html>\n<html lang=\"en\">\n    <head>\n        <meta charset=\"utf-8\">\n        <title>Error</title>\n    </head>\n    <body>\n        <pre>Error: Article Id must be 24 characters in legnth\n            <br> &nbsp; &nbsp;at F:\\Personal Project\\Newspaper-Backend\\controllers\\articleController.js.js:116:11\n            <br> &nbsp; &nbsp;at F:\\Personal Project\\Newspaper-Backend\\utils\\asyncHandler.js:3:21\n            <br> &nbsp; &nbsp;at Layer.handle [as handle_request] (F:\\Personal Project\\Newspaper-Backend\\node_modules\\express\\lib\\router\\layer.js:95:5)\n            <br> &nbsp; &nbsp;at next (F:\\Personal Project\\Newspaper-Backend\\node_modules\\express\\lib\\router\\route.js:137:13)\n            <br> &nbsp; &nbsp;at isUserLoggedin (F:\\Personal Project\\Newspaper-Backend\\middlewares\\isUserLoggedin.js:31:5)\n            <br> &nbsp; &nbsp;at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n        </pre>\n    </body>\n</html>"},{"id":"ab52e516-14c1-4e3d-b3be-41eb15b1d262","name":"400 Field error","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"\r\n   {\r\n    \r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"{{base_artical}}/65f0630db8fcddab17620f"},"status":"Bad Request","code":400,"_postman_previewlanguage":"html","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Security-Policy","value":"default-src 'self'"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"827"},{"key":"Date","value":"Tue, 12 Mar 2024 15:21:18 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"<!DOCTYPE html>\n<html lang=\"en\">\n    <head>\n        <meta charset=\"utf-8\">\n        <title>Error</title>\n    </head>\n    <body>\n        <pre>Error: Minimum of one field is required to update article\n            <br> &nbsp; &nbsp;at F:\\Personal Project\\Newspaper-Backend\\controllers\\articleController.js.js:104:11\n            <br> &nbsp; &nbsp;at F:\\Personal Project\\Newspaper-Backend\\utils\\asyncHandler.js:3:21\n            <br> &nbsp; &nbsp;at Layer.handle [as handle_request] (F:\\Personal Project\\Newspaper-Backend\\node_modules\\express\\lib\\router\\layer.js:95:5)\n            <br> &nbsp; &nbsp;at next (F:\\Personal Project\\Newspaper-Backend\\node_modules\\express\\lib\\router\\route.js:137:13)\n            <br> &nbsp; &nbsp;at isUserLoggedin (F:\\Personal Project\\Newspaper-Backend\\middlewares\\isUserLoggedin.js:31:5)\n            <br> &nbsp; &nbsp;at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n        </pre>\n    </body>\n</html>"},{"id":"8c338003-c545-4f50-bd7c-b1146bfa60cd","name":"404 Category Not found","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"\r\n   {\r\n    \"title\": \"Incredible Granite Bacon\",\r\n    \"content\": \"Dolorum qui illo omnis. Fugit et quia nihil vitae odio. Neque voluptatem quo aut quia laudantium quis.\",\r\n    \"category\": \"uncategorized-newss\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"{{base_artical}}/65f0630db8fcddab17620f41"},"status":"Not Found","code":404,"_postman_previewlanguage":"html","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Security-Policy","value":"default-src 'self'"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"374"},{"key":"Date","value":"Tue, 12 Mar 2024 15:22:22 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"<!DOCTYPE html>\n<html lang=\"en\">\n    <head>\n        <meta charset=\"utf-8\">\n        <title>Error</title>\n    </head>\n    <body>\n        <pre>Error: Category does not exist || Please create one\n            <br> &nbsp; &nbsp;at F:\\Personal Project\\Newspaper-Backend\\controllers\\articleController.js.js:124:11\n            <br> &nbsp; &nbsp;at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n        </pre>\n    </body>\n</html>"}],"_postman_id":"8c58a4f9-7dec-404e-9fce-83328a3d0c6d"},{"name":"Get Articles By Category","id":"542698fc-2e91-4047-b4a2-9c5861fa9722","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_artical}}/category/uncategorized-new","description":"<h1 id=\"get-uncategorized-category\">Get Uncategorized Category</h1>\n<p>This endpoint makes an HTTP GET request to retrieve the articles under the 'uncategorized' category.</p>\n<h3 id=\"response\">Response</h3>\n<p>In case of a successful request, the response will include an array of articles with details such as title, content, author, category, and publication date.</p>\n<p>In case of an error, the response will have a status code of 404 with a content type of text/html. The body of the response will include an error message indicating that the category was not found.</p>\n<h3 id=\"example\">Example</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\"statusCode\":0,\"data\":[{\"_id\":\"\",\"title\":\"\",\"content\":\"\",\"author\":\"\",\"category\":\"\",\"publicationDate\":\"\",\"__v\":0}],\"message\":\"\",\"success\":true}\n\n</code></pre>\n","urlObject":{"path":["category","uncategorized-new"],"host":["{{base_artical}}"],"query":[],"variable":[]}},"response":[{"id":"7f895a14-a67c-4587-a4b4-caec391c2999","name":"200 Success","originalRequest":{"method":"GET","header":[],"url":"{{base_artical}}/category/uncategorized-new"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"370"},{"key":"ETag","value":"W/\"172-lYnkJwOJG3S1MDnxxLU0vtkd2U8\""},{"key":"Date","value":"Tue, 12 Mar 2024 15:24:22 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"data\": [\n        {\n            \"_id\": \"65f0630db8fcddab17620f41\",\n            \"title\": \"Sleek Frozen Soap\",\n            \"content\": \"Sunt odit quis et qui cum qui accusamus. Culpa occaecati quisquam ab illo aut. Doloribus et animi.\",\n            \"author\": \"65ee2e7045f5634805992ae8\",\n            \"category\": \"65ef01ab49b11889a23008a7\",\n            \"publicationDate\": \"2024-03-12T14:13:33.240Z\",\n            \"__v\": 0\n        }\n    ],\n    \"message\": \"articles found\",\n    \"success\": true\n}"},{"id":"4b3edc32-4afa-4fbd-8c1b-a760b267a1f4","name":"404 Not Found","originalRequest":{"method":"GET","header":[],"url":"{{base_artical}}/category/uncategorizedd"},"status":"Not Found","code":404,"_postman_previewlanguage":"html","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Security-Policy","value":"default-src 'self'"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"348"},{"key":"Date","value":"Tue, 12 Mar 2024 15:25:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"<!DOCTYPE html>\n<html lang=\"en\">\n    <head>\n        <meta charset=\"utf-8\">\n        <title>Error</title>\n    </head>\n    <body>\n        <pre>Error: Category not found\n            <br> &nbsp; &nbsp;at F:\\Personal Project\\Newspaper-Backend\\controllers\\articleController.js.js:204:11\n            <br> &nbsp; &nbsp;at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n        </pre>\n    </body>\n</html>"}],"_postman_id":"542698fc-2e91-4047-b4a2-9c5861fa9722"}]}