{"info":{"_postman_id":"26b4baf7-a6e5-4917-b24c-0b875b4fde38","name":"Task Management API Documentation","description":"<html><head></head><body><h1 id=\"user-management\">User Management</h1>\n<h2 id=\"register-a-new-user\">Register a New User</h2>\n<p><strong>Endpoint:</strong> <code>POST /api/v1/users</code></p>\n<p><strong>Description:</strong> Register a new user in the system.</p>\n<p><strong>Request:</strong></p>\n<ul>\n<li><p><strong>Method:</strong> POST</p>\n</li>\n<li><p><strong>Endpoint:</strong> <code>/api/v1/users</code></p>\n</li>\n<li><p><strong>Body:</strong> JSON Object containing user details (firstName, lastName, email, mobile, password)</p>\n</li>\n</ul>\n<p><strong>Response:</strong></p>\n<ul>\n<li><p><strong>Status:</strong> 201 Created</p>\n</li>\n<li><p><strong>Body:</strong> JSON Object containing user details (user_id, firstName, lastName, email, mobile)</p>\n</li>\n</ul>\n<h2 id=\"get-all-users\">Get All Users</h2>\n<p><strong>Endpoint:</strong> <code>GET /api/v1/users</code></p>\n<p><strong>Description:</strong> Retrieve a list of all users in the system.</p>\n<p><strong>Request:</strong></p>\n<ul>\n<li><p><strong>Method:</strong> GET</p>\n</li>\n<li><p><strong>Endpoint:</strong> <code>/api/v1/users</code></p>\n</li>\n</ul>\n<p><strong>Response:</strong></p>\n<ul>\n<li><p><strong>Status:</strong> 200 OK</p>\n</li>\n<li><p><strong>Body:</strong> Array of JSON Objects containing user details (user_id, firstName, lastName, email, mobile)</p>\n</li>\n</ul>\n<h2 id=\"get-a-single-user\">Get a Single User</h2>\n<p><strong>Endpoint:</strong> <code>GET /api/v1/users/:id</code></p>\n<p><strong>Description:</strong> Retrieve details of a specific user by providing their user_id.</p>\n<p><strong>Request:</strong></p>\n<ul>\n<li><p><strong>Method:</strong> GET</p>\n</li>\n<li><p><strong>Endpoint:</strong> <code>/api/v1/users/:id</code></p>\n</li>\n<li><p><strong>Params:</strong> user_id</p>\n</li>\n</ul>\n<p><strong>Response:</strong></p>\n<ul>\n<li><p><strong>Status:</strong> 200 OK</p>\n</li>\n<li><p><strong>Body:</strong> JSON Object containing user details (user_id, firstName, lastName, email, mobile)</p>\n</li>\n</ul>\n<h2 id=\"update-user-information\">Update User Information</h2>\n<p><strong>Endpoint:</strong> <code>PUT /api/v1/users/:id</code></p>\n<p><strong>Description:</strong> Update details of a specific user identified by their user_id.</p>\n<p><strong>Request:</strong></p>\n<ul>\n<li><p><strong>Method:</strong> PUT</p>\n</li>\n<li><p><strong>Endpoint:</strong> <code>/api/v1/users/:id</code></p>\n</li>\n<li><p><strong>Params:</strong> user_id</p>\n</li>\n<li><p><strong>Body:</strong> JSON Object containing updated user details (firstName, lastName, email, mobile)</p>\n</li>\n</ul>\n<p><strong>Response:</strong></p>\n<ul>\n<li><p><strong>Status:</strong> 200 OK</p>\n</li>\n<li><p><strong>Body:</strong> JSON Object containing updated user details (user_id, firstName, lastName, email, mobile)</p>\n</li>\n</ul>\n<h2 id=\"delete-single-user-by-id\">Delete Single User by ID</h2>\n<p><strong>Endpoint:</strong> <code>DELETE /api/v1/users/:id</code></p>\n<p><strong>Description:</strong> Delete a specific user using their user_id.</p>\n<p><strong>Request:</strong></p>\n<ul>\n<li><p><strong>Method:</strong> DELETE</p>\n</li>\n<li><p><strong>Endpoint:</strong> <code>/api/v1/users/:id</code></p>\n</li>\n<li><p><strong>Params:</strong> user_id</p>\n</li>\n</ul>\n<p><strong>Response:</strong></p>\n<ul>\n<li><strong>Status:</strong> 204 No Content</li>\n</ul>\n<h2 id=\"authentication\">Authentication</h2>\n<h3 id=\"user-login\">User Login</h3>\n<ul>\n<li><p><strong>Endpoint:</strong> <code>POST /api/v1/user/login</code></p>\n</li>\n<li><p><strong>Description:</strong> Log in with valid credentials to obtain an authentication token.</p>\n</li>\n<li><p><strong>Request:</strong></p>\n<ul>\n<li>Body: JSON Object with login credentials (email, password)</li>\n</ul>\n</li>\n<li><p><strong>Response:</strong></p>\n<ul>\n<li>Status: 200 OK</li>\n<li>Body: JSON Object containing authentication token</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"access-protected-route\">Access Protected Route</h3>\n<ul>\n<li><p><strong>Endpoint:</strong> <code>GET /api/v1/authenticate</code></p>\n</li>\n<li><p><strong>Description:</strong> Access a route protected by JWT authentication using a valid token.</p>\n</li>\n<li><p><strong>Request:</strong></p>\n<ul>\n<li>Headers: Authorization Bearer Token</li>\n</ul>\n</li>\n<li><p><strong>Response:</strong></p>\n<ul>\n<li>Status: 200 OK</li>\n<li>Body: JSON Object indicating successful access</li>\n</ul>\n</li>\n</ul>\n<h2 id=\"task-management\">Task Management</h2>\n<h3 id=\"create-a-new-task\">Create a New Task</h3>\n<ul>\n<li><strong>Endpoint:</strong> <code>POST /api/v1/tasks</code></li>\n<li><strong>Description:</strong> Create a new task with specified details.</li>\n<li><strong>Request:</strong><ul>\n<li>Body: JSON Object containing task details (title, description, status, dueDate, user_id)</li>\n</ul>\n</li>\n<li><strong>Response:</strong><ul>\n<li>Status: 201 Created</li>\n<li>Body: JSON Object containing task details (task_id, title, description, status, dueDate, user_id)</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"get-all-tasks\">Get All Tasks</h3>\n<ul>\n<li><strong>Endpoint:</strong> <code>GET /api/v1/tasks</code></li>\n<li><strong>Description:</strong> Retrieve a list of all tasks in the system.</li>\n<li><strong>Response:</strong><ul>\n<li>Status: 200 OK</li>\n<li>Body: Array of JSON Objects containing task details (task_id, title, description, status, dueDate, user_id)</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"get-task-details\">Get Task Details</h3>\n<ul>\n<li><strong>Endpoint:</strong> <code>GET /api/v1/tasks/:id</code></li>\n<li><strong>Description:</strong> Retrieve details of a specific task using its task_id.</li>\n<li><strong>Request:</strong><ul>\n<li>Params: task_id</li>\n</ul>\n</li>\n<li><strong>Response:</strong><ul>\n<li>Status: 200 OK</li>\n<li>Body: JSON Object containing task details (task_id, title, description, status, dueDate, user_id)</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"update-task-details\">Update Task Details</h3>\n<ul>\n<li><strong>Endpoint:</strong> <code>PUT /api/v1/tasks/:id</code></li>\n<li><strong>Description:</strong> Update details of a specific task identified by its task_id.</li>\n<li><strong>Request:</strong><ul>\n<li>Params: task_id</li>\n<li>Body: JSON Object containing updated task details (title, description, status, dueDate, user_id)</li>\n</ul>\n</li>\n<li><strong>Response:</strong><ul>\n<li>Status: 200 OK</li>\n<li>Body: JSON Object containing updated task details (task_id, title, description, status, dueDate, user_id)</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"delete-a-task\">Delete a Task</h3>\n<ul>\n<li><strong>Endpoint:</strong> <code>DELETE /api/v1/tasks/:id</code></li>\n<li><strong>Description:</strong> Delete a specific task using its task_id.</li>\n<li><strong>Request:</strong><ul>\n<li>Params: task_id</li>\n</ul>\n</li>\n<li><strong>Response:</strong><ul>\n<li>Status: 204 No Content</li>\n</ul>\n</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"User Management","slug":"user-management"}],"owner":"27746757","collectionId":"26b4baf7-a6e5-4917-b24c-0b875b4fde38","publishedId":"2s9YeLZVUL","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-12-05T14:33:20.000Z"},"item":[{"name":"Task Management","item":[{"name":"Get All Todo Tasks","id":"c4b3189b-16d5-40dc-9a53-464922ef011d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5000/api/v1/tasks","urlObject":{"protocol":"http","port":"5000","path":["api","v1","tasks"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"f77b039b-121e-4156-ba3f-80fdcc82ebd1","name":"Get All Todo Tasks","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/v1/tasks"},"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":"752"},{"key":"ETag","value":"W/\"2f0-sKPd9ZcSZFKJWCi3OPqUkhUBPeY\""},{"key":"Date","value":"Tue, 05 Dec 2023 14:09:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"task_id\": 6,\n        \"title\": \"Organize Team Meeting\",\n        \"description\": \"Schedule and organize a team meeting to discuss upcoming tasks.\",\n        \"status\": \"todo\",\n        \"dueDate\": \"2023-12-17T21:00:00.000Z\",\n        \"user_id\": 4\n    },\n    {\n        \"task_id\": 7,\n        \"title\": \"Refactor Codebase\",\n        \"description\": \"Identify and refactor sections of the codebase for better maintainability.\",\n        \"status\": \"in_progress\",\n        \"dueDate\": \"2023-12-24T21:00:00.000Z\",\n        \"user_id\": 6\n    },\n    {\n        \"task_id\": 8,\n        \"title\": \"Implement User Authentication\",\n        \"description\": \"Integrate user authentication for enhanced security.\",\n        \"status\": \"todo\",\n        \"dueDate\": \"2023-12-19T21:00:00.000Z\",\n        \"user_id\": 6\n    },\n    {\n        \"task_id\": 9,\n        \"title\": \"Review Documentation\",\n        \"description\": \"Review and update project documentation.\",\n        \"status\": \"todo\",\n        \"dueDate\": \"2023-12-14T21:00:00.000Z\",\n        \"user_id\": 6\n    }\n]"}],"_postman_id":"c4b3189b-16d5-40dc-9a53-464922ef011d"},{"name":"Create A Task","id":"53209ec4-2e18-48ea-9844-c09e8d485104","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"title\": \"Review Documentation 2\",\n  \"description\": \"Review and update project documentation.\",\n  \"status\": \"todo\",\n  \"dueDate\": \"2023-12-15\",\n  \"user_id\": 6\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/tasks","urlObject":{"protocol":"http","port":"5000","path":["api","v1","tasks"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"2a69e9ee-a6c5-4943-8eed-777c0a3ea4e5","name":"Create A Task","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"title\": \"Review Documentation 2\",\n  \"description\": \"Review and update project documentation.\",\n  \"status\": \"todo\",\n  \"dueDate\": \"2023-12-15\",\n  \"user_id\": 6\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/tasks"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"158"},{"key":"ETag","value":"W/\"9e-vqaYJBSGU/LWjdray+dE0UQzQ4c\""},{"key":"Date","value":"Tue, 05 Dec 2023 14:10:22 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"task_id\": null,\n    \"title\": \"Review Documentation 2\",\n    \"description\": \"Review and update project documentation.\",\n    \"status\": \"todo\",\n    \"dueDate\": \"2023-12-15\",\n    \"user_id\": 10\n}"}],"_postman_id":"53209ec4-2e18-48ea-9844-c09e8d485104"},{"name":"Get a single Task","id":"f4285b0b-5a3f-480c-8706-eeb7008e5ffb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/tasks/2","urlObject":{"protocol":"http","port":"5000","path":["api","v1","tasks","2"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"f4e79c4a-a7c6-4f7e-9362-817777306d86","name":"Get a single Task","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/tasks/6"},"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":"190"},{"key":"ETag","value":"W/\"be-HujHbboWk6rtAdnZV6JW4KkC+go\""},{"key":"Date","value":"Tue, 05 Dec 2023 14:11:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"task_id\": 6,\n    \"title\": \"Organize Team Meeting\",\n    \"description\": \"Schedule and organize a team meeting to discuss upcoming tasks.\",\n    \"status\": \"todo\",\n    \"dueDate\": \"2023-12-17T21:00:00.000Z\",\n    \"user_id\": 4\n}"}],"_postman_id":"f4285b0b-5a3f-480c-8706-eeb7008e5ffb"},{"name":"Update a Task","id":"4705a518-6ffe-4bb6-b6b0-f8bf67f5af4a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"title\": \"Organize second Team Meeting for board members\",\n    \"description\": \"Schedule and organize a team meeting to discuss upcoming tasks\",\n    \"status\": \"pending\",\n    \"dueDate\": \"2023-12-13\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/tasks/8","urlObject":{"protocol":"http","port":"5000","path":["api","v1","tasks","8"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"6a5a13e2-21a3-4e60-8b8a-421292251a8e","name":"Update a Task","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"title\": \"Organize second Team Meeting\",\n    \"description\": \"Schedule and organize a team meeting to discuss upcoming tasks.\",\n    \"status\": \"todo\",\n    \"dueDate\": \"2023-12-13\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/tasks/6"},"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":"197"},{"key":"ETag","value":"W/\"c5-lkW7jKLogLrtOiDQKVZAQ5HV2U8\""},{"key":"Date","value":"Tue, 05 Dec 2023 14:14:15 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"task_id\": 6,\n    \"title\": \"Organize second Team Meeting\",\n    \"description\": \"Schedule and organize a team meeting to discuss upcoming tasks.\",\n    \"status\": \"todo\",\n    \"dueDate\": \"2023-12-12T21:00:00.000Z\",\n    \"user_id\": 4\n}"}],"_postman_id":"4705a518-6ffe-4bb6-b6b0-f8bf67f5af4a"},{"name":"Delete a todo Task","id":"1176c278-1250-4bff-b9d6-cf24437459a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:5000/api/v1/tasks/6","urlObject":{"protocol":"http","port":"5000","path":["api","v1","tasks","6"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"24b1487f-32b1-4981-b837-293cce36eae3","name":"Delete a todo Task","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:5000/api/v1/tasks/6"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Date","value":"Tue, 05 Dec 2023 14:14:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"1176c278-1250-4bff-b9d6-cf24437459a3"}],"id":"22bb0874-55dc-40eb-8956-708782c19a29","_postman_id":"22bb0874-55dc-40eb-8956-708782c19a29","description":""},{"name":"User Management","item":[{"name":"Register new user","id":"39b287e7-2ad6-459b-bce3-e0714779de62","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"firstName\": \"Nadduli\",\n  \"lastName\": \"Daniel\",\n  \"email\": \"naddulidaniel1994@gmail.com\",\n  \"mobile\": \"+256750813048\",\n  \"password\": \"innocent\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/users","urlObject":{"protocol":"http","port":"5000","path":["api","v1","users"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"3df05ccf-edb4-43ff-9f78-c4d15fcfda53","name":"Register new user Example","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"firstName\": \"Nadduli\",\n  \"lastName\": \"Daniel\",\n  \"email\": \"naddulidaniel1994@gmail.com\",\n  \"mobile\": \"+256750813048\",\n  \"password\": \"innocent\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/users"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"150"},{"key":"ETag","value":"W/\"96-FRDU1hLg1EhT218wVXBtRnhrZXs\""},{"key":"Date","value":"Tue, 05 Dec 2023 13:59:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"user_id\": null,\n    \"firstName\": \"Nadduli\",\n    \"lastName\": \"Daniel\",\n    \"email\": \"naddulidaniel1994@gmail.com\",\n    \"mobile\": \"+256750813048\",\n    \"password\": \"innocent\",\n    \"id\": 7\n}"}],"_postman_id":"39b287e7-2ad6-459b-bce3-e0714779de62"},{"name":"Get a single User","id":"57abace5-bd96-41fc-83f8-9cd752420955","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/api/v1/users/4","urlObject":{"protocol":"http","port":"5000","path":["api","v1","users","4"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"54430376-c5da-44d8-beed-dcb0f913f20a","name":"Get a single User","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/v1/users/4"},"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":"172"},{"key":"ETag","value":"W/\"ac-kjb5OKEOB9K1hLvXSjvl0PNFZSo\""},{"key":"Date","value":"Tue, 05 Dec 2023 14:05:04 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"user_id\": 4,\n    \"firstName\": \"Alice\",\n    \"lastName\": \"Smith\",\n    \"email\": \"invalid-email\",\n    \"mobile\": \"9876543210\",\n    \"password\": \"$2b$10$ay/nj9e4gwHACj1zmIKQ3uh4KUYkE3iAE78YAQ1rz3xWhfzqrAaU2\"\n}"}],"_postman_id":"57abace5-bd96-41fc-83f8-9cd752420955"},{"name":"Get All Users","id":"9171e8f2-dcd3-4fbf-ab0a-a163ba280e7b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/api/v1/users/","urlObject":{"protocol":"http","port":"5000","path":["api","v1","users",""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"fa3a5183-e9b8-476e-8141-49653dcdd0eb","name":"Get All Users","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/v1/users/"},"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":"732"},{"key":"ETag","value":"W/\"2dc-Te2es/Tjkq9ireZ8jOLEWDGWOKQ\""},{"key":"Date","value":"Tue, 05 Dec 2023 14:05:29 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"user_id\": 4,\n        \"firstName\": \"Alice\",\n        \"lastName\": \"Smith\",\n        \"email\": \"invalid-email\",\n        \"mobile\": \"9876543210\",\n        \"password\": \"$2b$10$ay/nj9e4gwHACj1zmIKQ3uh4KUYkE3iAE78YAQ1rz3xWhfzqrAaU2\"\n    },\n    {\n        \"user_id\": 5,\n        \"firstName\": \"Eve\",\n        \"lastName\": \"Anderson\",\n        \"email\": \"eve.anderson@example.com\",\n        \"mobile\": \"0750813048\",\n        \"password\": \"$2b$10$GEq5pIUx1LGyQkV8HNNd/u1CFcmpZE7mjippHojcIsgnr98eRP2b6\"\n    },\n    {\n        \"user_id\": 6,\n        \"firstName\": \"Bob\",\n        \"lastName\": \"Johnson\",\n        \"email\": \"bobjohnson@gmail.com\",\n        \"mobile\": \"1234567890\",\n        \"password\": \"$2b$10$pAZ7mZcLahvLsBT4fTngX.wxgGDuQMUyN.0Gnn.K2hZ7UxW/9Vnsi\"\n    },\n    {\n        \"user_id\": 7,\n        \"firstName\": \"Nadduli\",\n        \"lastName\": \"Daniel\",\n        \"email\": \"naddulidaniel1994@gmail.com\",\n        \"mobile\": \"+256750813048\",\n        \"password\": \"$2b$10$MOe6yDa6WAAl.SxGYRiCSeSD9xNI3PP6rQN.meNua47mpaKhjqOOa\"\n    }\n]"}],"_postman_id":"9171e8f2-dcd3-4fbf-ab0a-a163ba280e7b"},{"name":"Update User data","id":"bba35420-966b-4895-9035-b7a1de6fe232","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"Jane\",\n    \"lastName\": \"Does\",\n    \"email\": \"naddulidaniel1994@gmail.com\",\n    \"mobile\": \"0876785544\",\n    \"password\": \"Jane\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/users/1","urlObject":{"protocol":"http","port":"5000","path":["api","v1","users","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ea9c1a46-fdba-4472-af68-7df2b6843ec3","name":"Update User data","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"Jane\",\n    \"lastName\": \"Does\",\n    \"email\": \"naddulidaniel1994@gmail.com\",\n    \"mobile\": \"0876785544\",\n    \"password\": \"Jane\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/users/1"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"27"},{"key":"ETag","value":"W/\"1b-ssOHxb5UEu+bgok0jboO8v/aI4s\""},{"key":"Date","value":"Tue, 05 Dec 2023 14:06:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"User not found!\"\n}"}],"_postman_id":"bba35420-966b-4895-9035-b7a1de6fe232"},{"name":"Delete A User","id":"71e43101-3d08-412a-944a-257c3513febe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:5000/api/v1/users/1","urlObject":{"protocol":"http","port":"5000","path":["api","v1","users","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1411a852-ff5d-43d5-8afb-8f60e221764a","name":"Delete A User","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:5000/api/v1/users/1"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"27"},{"key":"ETag","value":"W/\"1b-ssOHxb5UEu+bgok0jboO8v/aI4s\""},{"key":"Date","value":"Tue, 05 Dec 2023 14:07:01 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"User not found!\"\n}"}],"_postman_id":"71e43101-3d08-412a-944a-257c3513febe"}],"id":"cdfceb28-b09b-4d02-9f67-89b8a9d0ff35","description":"<h1 id=\"this-section-contains-routes-and-end-points-related-to-user-management\"><strong>This section contains routes and end points related to user management.</strong></h1>\n<ul>\n<li><p>Register A New User into the system</p>\n</li>\n<li><p>Get a single User from the system</p>\n</li>\n<li><p>Get all Users from the system</p>\n</li>\n<li><p>Update User data in the database</p>\n</li>\n<li><p>Delete a User from the system.</p>\n</li>\n</ul>\n","_postman_id":"cdfceb28-b09b-4d02-9f67-89b8a9d0ff35"},{"name":"Authentication Management","item":[{"name":"Login A User","id":"642b6d39-c804-4e72-8d22-f8116c98528e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"naddulidaniel1994@gmail.com\",\n    \"password\": \"innocent\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/user/login","urlObject":{"protocol":"http","port":"5000","path":["api","v1","user","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"c70405f9-8d32-4017-b555-72858d7fd32b","name":"Login A User","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"naddulidaniel1994@gmail.com\",\n    \"password\": \"innocent\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/user/login"},"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":"324"},{"key":"ETag","value":"W/\"144-bAC8FqQw5sYUodk+uK8uzYu1X1Q\""},{"key":"Date","value":"Tue, 05 Dec 2023 14:02:29 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjo3LCJpYXQiOjE3MDE3ODQ5NDksImV4cCI6MTcwMTc4ODU0OX0._DJlbIdp1DPeLlmdnf1mSE-lZib3NDCBJSLXk9DMjXw\",\n    \"refreshtoken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjo3LCJpYXQiOjE3MDE3ODQ5NDksImV4cCI6MTcwMjM4OTc0OX0.mjBG5oajdcEEXXyoOXUbknYwJjsiUuNCU0Vr2vWFORk\"\n}"},{"id":"f3d36281-948a-4a9c-8cb4-e681129e3272","name":"Login A User","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"naddulidaniel1994@gmail.com\",\n    \"password\": \"innocent\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/user/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Set-Cookie","value":"accessToken=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjo3LCJpYXQiOjE3MDE5ODcwNzAsImV4cCI6MTcwMTk5MDY3MH0.Q6zAq4P1wZwFhwqk0OF0IIQQBRtLr-tzuda2n4sIIRQ; Max-Age=3600; Path=/; Expires=Thu, 07 Dec 2023 23:11:10 GMT; HttpOnly"},{"key":"Set-Cookie","value":"refreshToken=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjo3LCJpYXQiOjE3MDE5ODcwNzAsImV4cCI6MTcwMjU5MTg3MH0.9_9nMaJ0Cw1Dv9V8N6sXbTDZNsvl0MGG8UMIe2bewgw; Max-Age=604800; Path=/; Expires=Thu, 14 Dec 2023 22:11:10 GMT; HttpOnly"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"526"},{"key":"ETag","value":"W/\"20e-5IgKghw9IGHlee2r4GK2NHFn9H4\""},{"key":"Date","value":"Thu, 07 Dec 2023 22:11:10 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": {\n        \"user_id\": 7,\n        \"firstName\": \"Nadduli\",\n        \"lastName\": \"Daniel\",\n        \"email\": \"naddulidaniel1994@gmail.com\",\n        \"mobile\": \"+256750813048\",\n        \"password\": \"$2b$10$MOe6yDa6WAAl.SxGYRiCSeSD9xNI3PP6rQN.meNua47mpaKhjqOOa\"\n    },\n    \"accessToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjo3LCJpYXQiOjE3MDE5ODcwNzAsImV4cCI6MTcwMTk5MDY3MH0.Q6zAq4P1wZwFhwqk0OF0IIQQBRtLr-tzuda2n4sIIRQ\",\n    \"refreshtoken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjo3LCJpYXQiOjE3MDE5ODcwNzAsImV4cCI6MTcwMjU5MTg3MH0.9_9nMaJ0Cw1Dv9V8N6sXbTDZNsvl0MGG8UMIe2bewgw\"\n}"}],"_postman_id":"642b6d39-c804-4e72-8d22-f8116c98528e"},{"name":"Refresh Token","id":"64be8457-9529-4cb1-9b7e-dc218ea267e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://localhost:5000/api/v1/user/refreshToken","urlObject":{"protocol":"http","port":"5000","path":["api","v1","user","refreshToken"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"f0648e14-a762-4935-b895-c9833b09a108","name":"Refresh Token Example","originalRequest":{"method":"POST","header":[],"url":"http://localhost:5000/api/v1/user/refreshToken"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Set-Cookie","value":"accessToken=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjo3LCJpYXQiOjE3MDE5ODcxOTEsImV4cCI6MTcwMTk5MDc5MX0.3Ld8MOk-7GlwQGvZANtt7CAz9FJjQO9iELo8YImY2sk; Max-Age=3600; Path=/; Expires=Thu, 07 Dec 2023 23:13:11 GMT; HttpOnly; Secure"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"162"},{"key":"ETag","value":"W/\"a2-qWLMR7c6RMAHQezv75HEnvoW5kg\""},{"key":"Date","value":"Thu, 07 Dec 2023 22:13:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjo3LCJpYXQiOjE3MDE5ODcxOTEsImV4cCI6MTcwMTk5MDc5MX0.3Ld8MOk-7GlwQGvZANtt7CAz9FJjQO9iELo8YImY2sk\"\n}"}],"_postman_id":"64be8457-9529-4cb1-9b7e-dc218ea267e6"},{"name":"Logout A User","id":"6bec9e40-0aa7-49ff-9ee1-99ad167ddda1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://localhost:5000/api/v1/user/logout","urlObject":{"protocol":"http","port":"5000","path":["api","v1","user","logout"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"99976a49-c175-4f15-b6ea-02108e41e899","name":"Logout A User","originalRequest":{"method":"POST","header":[],"url":"http://localhost:5000/api/v1/user/logout"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Set-Cookie","value":"accessToken=; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT"},{"key":"Set-Cookie","value":"refreshToken=; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"31"},{"key":"ETag","value":"W/\"1f-vYmtThEV0qgPmOaoi5WLoJuDA80\""},{"key":"Date","value":"Thu, 07 Dec 2023 22:25:31 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Logout successful\"\n}"}],"_postman_id":"6bec9e40-0aa7-49ff-9ee1-99ad167ddda1"}],"id":"f0f217fc-3dd4-462b-9a04-028da7bf6b4e","description":"<p>This directory contains routes about authentication an authorization.</p>\n","_postman_id":"f0f217fc-3dd4-462b-9a04-028da7bf6b4e"}]}