{"info":{"_postman_id":"f5987300-fb59-4b5f-9b79-acc257290f1f","name":"Todo Web App","description":"<html><head></head><body><p>Todo Web App API Collection:</p>\n<ul>\n<li><p>Developed by Muza Fadli</p>\n</li>\n<li><p>Developed with laravel</p>\n</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"23199052","collectionId":"f5987300-fb59-4b5f-9b79-acc257290f1f","publishedId":"2s9Ykq6fLb","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-12-20T13:42:21.000Z"},"item":[{"name":"Authentication","item":[{"name":"Login","id":"fc5a0078-6fea-4cbe-9a0f-cf3e85f05629","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"","description":"<p>Required. Must be valid email address</p>\n","type":"text"},{"key":"password","value":"","description":"<p>Required. Min 8 Character</p>\n","type":"text"}]},"url":"http://localhost:8000/api/auth/login","urlObject":{"path":["api","auth","login"],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"4ef90627-a326-48bd-ac40-a4f30b99f5f9","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"test@mail.com","description":"Required. Must be valid email address","type":"text"},{"key":"password","value":"password","description":"Required. Min 8 Character","type":"text"}]},"url":"http://localhost:8000/api/auth/login"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Success\",\r\n    \"data\": {\r\n        \"name\": \"test\",\r\n        \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxIiwianRpIjoiNmNlMjI0MjIyZDg2NmM2MWQwZjE5ZGE5OGQ1YWQxNTU2NGZiNzc1ZjViMzVlN2UzYjRmNzllZWVmNWVmY2U5MTAxMWM4MDdkYTVlZjllZTEiLCJpYXQiOjE3MDMwNzUyOTUuNTcyMzExLCJuYmYiOjE3MDMwNzUyOTUuNTcyMzIxLCJleHAiOjE3MzQ2OTc2OTUuNDQxOTI5LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.Q0X28b_fjeK07lh02Eka9DVidikQl-SrtGnnvuLQKgGM8EIxGT-XPEzNQ1Wh3tDW8Z4hzLPYdauCK7R8KCGZ0-qHbGRJ_HdAkVvybMfqUPsvx23vD6FELe3OkHhO1ZEt8QCdu_ZGvlDaCbztHWnP6yYxBYeN1KZzQE6UI4QoGddHCEl5ySHm4F6yV0VI0Y8qXMZEohe3ckoj1EaT_IWl1ulXvC2CgaZrjj0OFYR0OBRVua02yhuFClIMwgxTzbMzSLgt7A7WQgzLppO7N_xkWotfbXqu-qmGXwvPsUMRQg8j6PzlkRL36-ZJcGXAONNSq5l_pxGIt9UVvuPctAH72f6QMiuqIZsRdvOjeBMq6bXBwnpuxa9i6m6I1Utebon9gY-pESv-gVWFtQio8IZozMIX-yBWVSOWCHGBG-ByK9AZews7QCdBclrDDr8VywP9za2li78JtFm2cQYZfBG1_aI2ikq6-SderdeuYSfRf4SW6suzrdiftNpbkVQ1BsTqAZWoq3mwfwTXJ8aPN1I-3hSSO7HxIvrV9ySWrTot1EZ9LQWd2JhhUEgVKyXluBZlsws3PSg6CLwlWSmbKL1sh2jtKoYP_mpMZis2t0G8AKtSv-s3WVvJYcr3rptU91-Tua2RH1gKQX03V8VNbG5hhMoqW_vk-IE401E8Q0fnykQ\",\r\n        \"token_expires_at\": \"2023-12-21 04:28:15\"\r\n    }\r\n}"},{"id":"00b841b9-086b-4934-8611-bd6e185cca5f","name":"Invalid Email or Password","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"","description":"Required. Must be valid email address","type":"text"},{"key":"password","value":"","description":"Required. Min 8 Character","type":"text"}]},"url":"http://localhost:8000/api/auth/login"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"errors\": {\r\n        \"email\": [\r\n            \"The email field is required.\"\r\n        ],\r\n        \"password\": [\r\n            \"The password field is required.\"\r\n        ]\r\n    }\r\n}"},{"id":"a3bc431a-501d-42f6-82df-2244c9dc52f5","name":"Email Not Found","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"test.none@mail.com","description":"Required. Must be valid email address","type":"text"},{"key":"password","value":"password","description":"Required. Min 8 Character","type":"text"}]},"url":"http://localhost:8000/api/auth/login"},"status":"Not Found","code":404,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"error\": \"User does not exist.\"\r\n}"}],"_postman_id":"fc5a0078-6fea-4cbe-9a0f-cf3e85f05629"},{"name":"Register","id":"c8de8219-d3fb-4b22-98b9-9a8fd4369bec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"","description":"<p>Required. Must be valid email address</p>\n","type":"text"},{"key":"password","value":"","description":"<p>Required. Min 8 Character</p>\n","type":"text"},{"key":"name","value":"","description":"<p>Required</p>\n","type":"text"}]},"url":"http://localhost:8000/api/auth/register","urlObject":{"path":["api","auth","register"],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"dfe2f49d-e48b-4380-844c-fe6777bc7c9a","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"test@mail.com","description":"Required. Must be valid email address","type":"text"},{"key":"password","value":"password","description":"Required. Min 8 Character","type":"text"},{"key":"name","value":"test","description":"Required","type":"text"}]},"url":"http://localhost:8000/api/auth/register"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Success\",\r\n    \"data\": {\r\n        \"name\": \"test\",\r\n        \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxIiwianRpIjoiNmNlMjI0MjIyZDg2NmM2MWQwZjE5ZGE5OGQ1YWQxNTU2NGZiNzc1ZjViMzVlN2UzYjRmNzllZWVmNWVmY2U5MTAxMWM4MDdkYTVlZjllZTEiLCJpYXQiOjE3MDMwNzUyOTUuNTcyMzExLCJuYmYiOjE3MDMwNzUyOTUuNTcyMzIxLCJleHAiOjE3MzQ2OTc2OTUuNDQxOTI5LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.Q0X28b_fjeK07lh02Eka9DVidikQl-SrtGnnvuLQKgGM8EIxGT-XPEzNQ1Wh3tDW8Z4hzLPYdauCK7R8KCGZ0-qHbGRJ_HdAkVvybMfqUPsvx23vD6FELe3OkHhO1ZEt8QCdu_ZGvlDaCbztHWnP6yYxBYeN1KZzQE6UI4QoGddHCEl5ySHm4F6yV0VI0Y8qXMZEohe3ckoj1EaT_IWl1ulXvC2CgaZrjj0OFYR0OBRVua02yhuFClIMwgxTzbMzSLgt7A7WQgzLppO7N_xkWotfbXqu-qmGXwvPsUMRQg8j6PzlkRL36-ZJcGXAONNSq5l_pxGIt9UVvuPctAH72f6QMiuqIZsRdvOjeBMq6bXBwnpuxa9i6m6I1Utebon9gY-pESv-gVWFtQio8IZozMIX-yBWVSOWCHGBG-ByK9AZews7QCdBclrDDr8VywP9za2li78JtFm2cQYZfBG1_aI2ikq6-SderdeuYSfRf4SW6suzrdiftNpbkVQ1BsTqAZWoq3mwfwTXJ8aPN1I-3hSSO7HxIvrV9ySWrTot1EZ9LQWd2JhhUEgVKyXluBZlsws3PSg6CLwlWSmbKL1sh2jtKoYP_mpMZis2t0G8AKtSv-s3WVvJYcr3rptU91-Tua2RH1gKQX03V8VNbG5hhMoqW_vk-IE401E8Q0fnykQ\",\r\n        \"token_expires_at\": \"2023-12-21 04:28:15\"\r\n    }\r\n}"},{"id":"842c9e76-f19f-4c08-859b-86bf26274ce6","name":"Invalid Email or Password","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"","description":"Required. Must be valid email address","type":"text"},{"key":"password","value":"","description":"Required. Min 8 Character","type":"text"},{"key":"name","value":"","description":"Required","type":"text"}]},"url":"http://localhost:8000/api/auth/register"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"errors\": {\r\n        \"name\": [\r\n            \"The name field is required.\"\r\n        ],\r\n        \"email\": [\r\n            \"The email field is required.\"\r\n        ],\r\n        \"password\": [\r\n            \"The password field is required.\"\r\n        ]\r\n    }\r\n}"}],"_postman_id":"c8de8219-d3fb-4b22-98b9-9a8fd4369bec"},{"name":"Logout","id":"964698af-1722-4a57-bd49-5ccaa7d9fa74","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"url":"http://localhost:8000/api/auth/logout","urlObject":{"path":["api","auth","logout"],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"d753a17c-c4f5-419c-89e7-bdc70a8b24e7","name":"Success","originalRequest":{"method":"POST","header":[],"url":"http://localhost:8000/api/auth/logout"},"status":"No Content","code":204,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":""},{"id":"4adc8509-de09-44a6-9648-e5fe91f33ad8","name":"Unauthorized","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"test@mail.com","description":"Required. Must be valid email address","type":"text"},{"key":"password","value":"password","description":"Required. Min 8 Character","type":"text"},{"key":"name","value":"test","description":"Required","type":"text"}]},"url":"http://localhost:8000/api/auth/logout"},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"error\": \"Unauthenticated\",\r\n    \"message\": \"You are not authorized to access this resource.\"\r\n}"}],"_postman_id":"964698af-1722-4a57-bd49-5ccaa7d9fa74"}],"id":"1579fd6a-9ea7-4c71-9914-bdfd6cb2f95a","description":"<ol>\n<li><p>Login</p>\n</li>\n<li><p>Register</p>\n</li>\n<li><p>Logout</p>\n</li>\n</ol>\n","_postman_id":"1579fd6a-9ea7-4c71-9914-bdfd6cb2f95a"},{"name":"Task","item":[{"name":"List","id":"832edac2-f4a4-4493-9041-676c088eed6f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8000/api/task?page&sort&order&completed_date_start&completed_date_end&priority&due_date_start&due_date_end&archived_date_start&archived_date_end&search","urlObject":{"path":["api","task"],"host":["http://localhost:8000"],"query":[{"description":{"content":"<p>default: 1, for pagination</p>\n","type":"text/plain"},"key":"page","value":null},{"description":{"content":"<p>optional, default: created_at, for sorting</p>\n","type":"text/plain"},"key":"sort","value":null},{"description":{"content":"<p>optional, default: asc, for sorting</p>\n","type":"text/plain"},"key":"order","value":null},{"description":{"content":"<p>optional, for filter, format: y-m-d</p>\n","type":"text/plain"},"key":"completed_date_start","value":null},{"description":{"content":"<p>optional, for filter, format: y-m-d</p>\n","type":"text/plain"},"key":"completed_date_end","value":null},{"description":{"content":"<p>optional, for filter, options: urgent, high, normal, low</p>\n","type":"text/plain"},"key":"priority","value":null},{"description":{"content":"<p>optional, for filter, format: y-m-d</p>\n","type":"text/plain"},"key":"due_date_start","value":null},{"description":{"content":"<p>optional, for filter, format: y-m-d</p>\n","type":"text/plain"},"key":"due_date_end","value":null},{"description":{"content":"<p>optional, for filter, format: y-m-d</p>\n","type":"text/plain"},"key":"archived_date_start","value":null},{"description":{"content":"<p>optional, for filter, format: y-m-d</p>\n","type":"text/plain"},"key":"archived_date_end","value":null},{"description":{"content":"<p>optional, for filter, will filter title and description</p>\n","type":"text/plain"},"key":"search","value":null}],"variable":[]}},"response":[{"id":"6ba42c20-23c1-4774-b22f-b6d415bd1dc1","name":"Success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/api/task"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Success\",\r\n    \"data\": [\r\n        {\r\n            \"id\": 4,\r\n            \"user_id\": 1,\r\n            \"title\": \"test 3\",\r\n            \"description\": \"test2\",\r\n            \"due_date\": \"2023-12-21\",\r\n            \"priority_id\": null,\r\n            \"completed_at\": \"2023-12-20T06:51:41.000000Z\",\r\n            \"archived_at\": null,\r\n            \"created_at\": \"2023-12-20T03:37:26.000000Z\",\r\n            \"updated_at\": \"2023-12-20T06:52:11.000000Z\",\r\n            \"deleted_at\": null,\r\n            \"priority_name\": null,\r\n            \"tags\": [\r\n                {\r\n                    \"id\": 16,\r\n                    \"task_id\": 4,\r\n                    \"name\": \"tag2\",\r\n                    \"created_at\": \"2023-12-20T10:00:02.000000Z\",\r\n                    \"updated_at\": \"2023-12-20T10:00:02.000000Z\",\r\n                    \"deleted_at\": null\r\n                }\r\n            ],\r\n            \"attachments\": []\r\n        },\r\n        {\r\n            \"id\": 5,\r\n            \"user_id\": 1,\r\n            \"title\": \"test 3\",\r\n            \"description\": \"test2\",\r\n            \"due_date\": null,\r\n            \"priority_id\": null,\r\n            \"completed_at\": null,\r\n            \"archived_at\": null,\r\n            \"created_at\": \"2023-12-20T03:38:56.000000Z\",\r\n            \"updated_at\": \"2023-12-20T03:38:56.000000Z\",\r\n            \"deleted_at\": null,\r\n            \"priority_name\": null,\r\n            \"tags\": [],\r\n            \"attachments\": []\r\n        },\r\n        {\r\n            \"id\": 6,\r\n            \"user_id\": 1,\r\n            \"title\": \"testaad\",\r\n            \"description\": \"teasd\",\r\n            \"due_date\": \"2023-12-21\",\r\n            \"priority_id\": null,\r\n            \"completed_at\": null,\r\n            \"archived_at\": null,\r\n            \"created_at\": \"2023-12-20T06:06:47.000000Z\",\r\n            \"updated_at\": \"2023-12-20T06:06:47.000000Z\",\r\n            \"deleted_at\": null,\r\n            \"priority_name\": null,\r\n            \"tags\": [],\r\n            \"attachments\": []\r\n        },\r\n        {\r\n            \"id\": 7,\r\n            \"user_id\": 1,\r\n            \"title\": \"Add task\",\r\n            \"description\": \"testing\",\r\n            \"due_date\": null,\r\n            \"priority_id\": null,\r\n            \"completed_at\": null,\r\n            \"archived_at\": null,\r\n            \"created_at\": \"2023-12-20T06:11:39.000000Z\",\r\n            \"updated_at\": \"2023-12-20T06:11:39.000000Z\",\r\n            \"deleted_at\": null,\r\n            \"priority_name\": null,\r\n            \"tags\": [],\r\n            \"attachments\": []\r\n        },\r\n        {\r\n            \"id\": 8,\r\n            \"user_id\": 1,\r\n            \"title\": \"add pr\",\r\n            \"description\": \"priotityu teting\",\r\n            \"due_date\": null,\r\n            \"priority_id\": 3,\r\n            \"completed_at\": null,\r\n            \"archived_at\": null,\r\n            \"created_at\": \"2023-12-20T06:14:38.000000Z\",\r\n            \"updated_at\": \"2023-12-20T06:14:38.000000Z\",\r\n            \"deleted_at\": null,\r\n            \"priority_name\": \"Normal\",\r\n            \"tags\": [\r\n                {\r\n                    \"id\": 5,\r\n                    \"task_id\": 8,\r\n                    \"name\": \"sadasdas\",\r\n                    \"created_at\": \"2023-12-20T08:23:39.000000Z\",\r\n                    \"updated_at\": \"2023-12-20T08:23:39.000000Z\",\r\n                    \"deleted_at\": null\r\n                }\r\n            ],\r\n            \"attachments\": []\r\n        },\r\n        {\r\n            \"id\": 9,\r\n            \"user_id\": 1,\r\n            \"title\": \"Test atg\",\r\n            \"description\": \"tag add here\",\r\n            \"due_date\": null,\r\n            \"priority_id\": null,\r\n            \"completed_at\": null,\r\n            \"archived_at\": null,\r\n            \"created_at\": \"2023-12-20T08:12:54.000000Z\",\r\n            \"updated_at\": \"2023-12-20T08:12:54.000000Z\",\r\n            \"deleted_at\": null,\r\n            \"priority_name\": null,\r\n            \"tags\": [\r\n                {\r\n                    \"id\": 7,\r\n                    \"task_id\": 9,\r\n                    \"name\": \"test\",\r\n                    \"created_at\": \"2023-12-20T08:28:21.000000Z\",\r\n                    \"updated_at\": \"2023-12-20T08:28:21.000000Z\",\r\n                    \"deleted_at\": null\r\n                },\r\n                {\r\n                    \"id\": 8,\r\n                    \"task_id\": 9,\r\n                    \"name\": \"asdasd\",\r\n                    \"created_at\": \"2023-12-20T08:28:21.000000Z\",\r\n                    \"updated_at\": \"2023-12-20T08:28:21.000000Z\",\r\n                    \"deleted_at\": null\r\n                },\r\n                {\r\n                    \"id\": 9,\r\n                    \"task_id\": 9,\r\n                    \"name\": \"asda\",\r\n                    \"created_at\": \"2023-12-20T08:28:21.000000Z\",\r\n                    \"updated_at\": \"2023-12-20T08:28:21.000000Z\",\r\n                    \"deleted_at\": null\r\n                }\r\n            ],\r\n            \"attachments\": []\r\n        },\r\n        {\r\n            \"id\": 10,\r\n            \"user_id\": 1,\r\n            \"title\": \"sdasd\",\r\n            \"description\": \"sfefaf\",\r\n            \"due_date\": null,\r\n            \"priority_id\": null,\r\n            \"completed_at\": null,\r\n            \"archived_at\": null,\r\n            \"created_at\": \"2023-12-20T08:24:06.000000Z\",\r\n            \"updated_at\": \"2023-12-20T08:24:06.000000Z\",\r\n            \"deleted_at\": null,\r\n            \"priority_name\": null,\r\n            \"tags\": [\r\n                {\r\n                    \"id\": 6,\r\n                    \"task_id\": 10,\r\n                    \"name\": \"safehyy\",\r\n                    \"created_at\": \"2023-12-20T08:24:06.000000Z\",\r\n                    \"updated_at\": \"2023-12-20T08:24:06.000000Z\",\r\n                    \"deleted_at\": null\r\n                }\r\n            ],\r\n            \"attachments\": []\r\n        },\r\n        {\r\n            \"id\": 11,\r\n            \"user_id\": 1,\r\n            \"title\": \"Add Attachmetn\",\r\n            \"description\": \"testing attachment\",\r\n            \"due_date\": null,\r\n            \"priority_id\": null,\r\n            \"completed_at\": null,\r\n            \"archived_at\": null,\r\n            \"created_at\": \"2023-12-20T09:12:03.000000Z\",\r\n            \"updated_at\": \"2023-12-20T09:12:03.000000Z\",\r\n            \"deleted_at\": null,\r\n            \"priority_name\": null,\r\n            \"tags\": [],\r\n            \"attachments\": []\r\n        }\r\n    ],\r\n    \"meta\": {\r\n        \"total\": 8,\r\n        \"current_page\": 1,\r\n        \"last_page\": 1\r\n    }\r\n}"},{"id":"4215611b-9b61-47bc-877d-32770a8d4ded","name":"Unauthenticated","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/api/task"},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"error\": \"Unauthenticated\",\r\n    \"message\": \"You are not authorized to access this resource.\"\r\n}"}],"_postman_id":"832edac2-f4a4-4493-9041-676c088eed6f"},{"name":"Details","id":"81de21c6-3a04-4ff6-b832-3d6fcd79814b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8000/api/task/{{id}}","urlObject":{"path":["api","task","{{id}}"],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"0ed5872b-109a-42b5-aaf9-96426b991bb7","name":"Success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/api/task/6"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Success\",\r\n    \"data\": {\r\n        \"id\": 6,\r\n        \"user_id\": 1,\r\n        \"title\": \"testaad\",\r\n        \"description\": \"teasd\",\r\n        \"due_date\": \"2023-12-21\",\r\n        \"priority_id\": null,\r\n        \"completed_at\": null,\r\n        \"archived_at\": null,\r\n        \"created_at\": \"2023-12-20T06:06:47.000000Z\",\r\n        \"updated_at\": \"2023-12-20T06:06:47.000000Z\",\r\n        \"deleted_at\": null,\r\n        \"priority\": null,\r\n        \"tags\": [],\r\n        \"attachments\": [],\r\n        \"user\": {\r\n            \"id\": 1,\r\n            \"name\": \"test\",\r\n            \"email\": \"test@mail.com\",\r\n            \"email_verified_at\": null,\r\n            \"created_at\": \"2023-12-19T05:36:11.000000Z\",\r\n            \"updated_at\": \"2023-12-19T05:36:11.000000Z\"\r\n        }\r\n    }\r\n}"},{"id":"57a0cccc-c3fb-4250-816e-010b63e6e9db","name":"Unauthenticated","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/api/task/4"},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"error\": \"Unauthenticated\",\r\n    \"message\": \"You are not authorized to access this resource.\"\r\n}"},{"id":"6082f7f2-5e28-478c-8cff-b9fa7718ff46","name":"Did Not Exist","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8000/api/task/90"},"status":"Not Found","code":404,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"error\": \"Task not found.\"\r\n}"}],"_postman_id":"81de21c6-3a04-4ff6-b832-3d6fcd79814b"},{"name":"Create","id":"7848b3f8-515d-4c68-84eb-9b3b70f28a67","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"title","value":"Test Add","description":"<p>required</p>\n","type":"text"},{"key":"description","value":"Add Description Here","description":"<p>required</p>\n","type":"text"},{"key":"due_date","value":"2023-12-30","description":"<p>optional, format: y-m-d, must be greater than now</p>\n","type":"text"},{"key":"priority_id","value":"2","description":"<p>optional, urgent: 1, high: 2, normal: 3, low: 4</p>\n","type":"text"}]},"url":"http://localhost:8000/api/task","urlObject":{"path":["api","task"],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"163acf84-2c30-4539-aeef-62e34f9ea788","name":"Unauthorized","originalRequest":{"method":"POST","header":[],"url":"http://localhost:8000/api/task"},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"error\": \"Unauthenticated\",\r\n    \"message\": \"You are not authorized to access this resource.\"\r\n}"},{"id":"39e41d11-5b2e-4092-b7ef-d85dbc480417","name":"Invalid Data","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"title","value":"","type":"text"},{"key":"description","value":"","type":"text"},{"key":"due_date","value":"2023-10-21","description":"optional, format: y-m-d, must be greater than now","type":"text"},{"key":"priority_id","value":"8","description":"optional, urgent: 1, high: 2, normal: 3, low: 4","type":"text"}]},"url":"http://localhost:8000/api/task"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"errors\": {\r\n        \"title\": [\r\n            \"The title field is required.\"\r\n        ],\r\n        \"description\": [\r\n            \"The description field is required.\"\r\n        ],\r\n        \"due_date\": [\r\n            \"The due date field must be a date after or equal to today.\"\r\n        ],\r\n        \"priority_id\": [\r\n            \"The selected priority id is invalid.\"\r\n        ]\r\n    }\r\n}"},{"id":"ca28ad5c-4007-40e2-85b9-ebde14da76a2","name":"Create","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"title","value":"","type":"text"},{"key":"description","value":"","type":"text"},{"key":"due_date","value":"2023-10-21","description":"optional, format: y-m-d, must be greater than now","type":"text"},{"key":"priority_id","value":"8","description":"optional, urgent: 1, high: 2, normal: 3, low: 4","type":"text"}]},"url":"http://localhost:8000/api/task"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Success\",\r\n    \"data\": {\r\n        \"user_id\": 1,\r\n        \"title\": \"Test Add\",\r\n        \"description\": \"Add Description Here\",\r\n        \"due_date\": \"2023-12-30\",\r\n        \"priority_id\": \"2\",\r\n        \"updated_at\": \"2023-12-20T12:58:35.000000Z\",\r\n        \"created_at\": \"2023-12-20T12:58:35.000000Z\",\r\n        \"id\": 12\r\n    }\r\n}"}],"_postman_id":"7848b3f8-515d-4c68-84eb-9b3b70f28a67"},{"name":"Update","id":"f8e953e4-2722-4b00-91b2-251a36ecd29e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"title","value":"Test Edit","description":"<p>required</p>\n","type":"text"},{"key":"description","value":"Edited description here","description":"<p>required</p>\n","type":"text"},{"key":"due_date","value":"2023-12-30","description":"<p>optional, format: y-m-d, must be greater than now</p>\n","type":"text"},{"key":"priority_id","value":"","description":"<p>optional, urgent: 1, high: 2, normal: 3, low: 4</p>\n","type":"text"}]},"url":"http://localhost:8000/api/task/{{id}}","urlObject":{"path":["api","task","{{id}}"],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"e5043b4c-59a1-4c75-b70d-5e29cf9c888c","name":"Success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"title","value":"Test Edit","description":"required","type":"text"},{"key":"description","value":"Edited description here","description":"required","type":"text"},{"key":"due_date","value":"2023-12-30","description":"optional, format: y-m-d, must be greater than now","type":"text"},{"key":"priority_id","value":"","description":"optional, urgent: 1, high: 2, normal: 3, low: 4","type":"text"}]},"url":"http://localhost:8000/api/task/12"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"3f3b4344-19b0-4563-9514-eaa664c633eb","name":"Unauthorized","originalRequest":{"method":"PUT","header":[],"url":"http://localhost:8000/api/task/2"},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"error\": \"Unauthenticated\",\r\n    \"message\": \"You are not authorized to access this resource.\"\r\n}"},{"id":"8941e104-97ba-4525-a6e2-af9fdb2cbbfa","name":"Not Found","originalRequest":{"method":"PUT","header":[],"url":"http://localhost:8000/api/task/40"},"status":"Not Found","code":404,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"error\": \"Task not found.\"\r\n}"},{"id":"aee9eb4c-e1c9-41dc-b341-7f6549336ecc","name":"Invalid Data","originalRequest":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"title","value":"","description":"required","type":"text"},{"key":"description","value":"","description":"required","type":"text"},{"key":"due_date","value":"2023-12-01","description":"optional, format: y-m-d, must be greater than now","type":"text"},{"key":"priority_id","value":"","description":"optional, urgent: 1, high: 2, normal: 3, low: 4","type":"text"}]},"url":"http://localhost:8000/api/task/12"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"errors\": {\r\n        \"title\": [\r\n            \"The title field is required.\"\r\n        ],\r\n        \"description\": [\r\n            \"The description field is required.\"\r\n        ],\r\n        \"due_date\": [\r\n            \"The due date field must be a date after or equal to today.\"\r\n        ]\r\n    }\r\n}"}],"_postman_id":"f8e953e4-2722-4b00-91b2-251a36ecd29e"},{"name":"Delete","id":"5c3f2d1f-266a-4c59-bcdf-4a3ff2c0303e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:8000/api/task/{{id}}","urlObject":{"path":["api","task","{{id}}"],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"21cb5d60-9d1e-489b-bfb8-1ba65642d379","name":"Success","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8000/api/task/1"},"status":"No Content","code":204,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"ea8edbeb-7500-4c50-ac62-76fab1bf2bd2","name":"Unauthorized","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8000/api/task/8"},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"error\": \"Unauthenticated\",\r\n    \"message\": \"You are not authorized to access this resource.\"\r\n}"},{"id":"f8fce379-eee0-4791-a2f4-94f9bb57cbc7","name":"Not Found","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8000/api/task/90"},"status":"Not Found","code":404,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"error\": \"Task not found.\"\r\n}"}],"_postman_id":"5c3f2d1f-266a-4c59-bcdf-4a3ff2c0303e"},{"name":"Archive","id":"18b3f4bb-1278-4e52-8d85-59e11874ef4f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"is_archived","value":"1","description":"<p>required, 1: archive 0: restore</p>\n","type":"text"}]},"url":"http://localhost:8000/api/task/{{id}}/archive","urlObject":{"path":["api","task","{{id}}","archive"],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"12ee98e3-b598-46e1-82ad-716f2d50e01a","name":"Success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"is_archived","value":"1","description":"required, 1: archive 0: restore","type":"text"}]},"url":"http://localhost:8000/api/task/4/archive"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Success\",\r\n    \"data\": {\r\n        \"id\": 4,\r\n        \"user_id\": 1,\r\n        \"title\": \"test 3\",\r\n        \"description\": \"test2\",\r\n        \"due_date\": \"2023-12-21\",\r\n        \"priority_id\": null,\r\n        \"completed_at\": \"2023-12-20T06:51:41.000000Z\",\r\n        \"archived_at\": \"2023-12-20T13:13:39.000000Z\",\r\n        \"created_at\": \"2023-12-20T03:37:26.000000Z\",\r\n        \"updated_at\": \"2023-12-20T13:13:39.000000Z\",\r\n        \"deleted_at\": null,\r\n        \"priority\": null,\r\n        \"user\": {\r\n            \"id\": 1,\r\n            \"name\": \"test\",\r\n            \"email\": \"test@mail.com\",\r\n            \"email_verified_at\": null,\r\n            \"created_at\": \"2023-12-19T05:36:11.000000Z\",\r\n            \"updated_at\": \"2023-12-19T05:36:11.000000Z\"\r\n        }\r\n    }\r\n}"},{"id":"d107daa7-3155-431e-ba08-8d5ce561cec8","name":"Not Found","originalRequest":{"method":"PUT","header":[],"url":"http://localhost:8000/api/task/80/archive"},"status":"Not Found","code":404,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"error\": \"Task not found.\"\r\n}"},{"id":"f740f0d9-e4ef-4997-80ff-f2a72765bb1b","name":"Unauthorized","originalRequest":{"method":"PUT","header":[],"url":"http://localhost:8000/api/task/2/archive"},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"error\": \"Unauthenticated\",\r\n    \"message\": \"You are not authorized to access this resource.\"\r\n}"},{"id":"1f395d59-7d55-43c5-a1f9-9c1349a7bb39","name":"Invalid Data","originalRequest":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"is_archived","value":"","description":"required, 1: archive 0: restore","type":"text"}]},"url":"http://localhost:8000/api/task/4/archive"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"errors\": {\r\n        \"is_archived\": [\r\n            \"The is archived field is required.\"\r\n        ]\r\n    }\r\n}"}],"_postman_id":"18b3f4bb-1278-4e52-8d85-59e11874ef4f"},{"name":"Mark as Complete","id":"910f6d85-696d-4501-8cb0-2de4aa3a2c11","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"is_completed","value":"1","description":"<p>required, 1: complete 0: todo</p>\n","type":"text"}]},"url":"http://localhost:8000/api/task/{{id}}/complete","urlObject":{"path":["api","task","{{id}}","complete"],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"130ee5f5-c377-422d-9751-92a2021bc280","name":"Success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"is_archived","value":"1","description":"required, 1: archive 0: restore","type":"text"}]},"url":"http://localhost:8000/api/task/4/complete"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Success\",\r\n    \"data\": {\r\n        \"id\": 4,\r\n        \"user_id\": 1,\r\n        \"title\": \"test 3\",\r\n        \"description\": \"test2\",\r\n        \"due_date\": \"2023-12-21\",\r\n        \"priority_id\": null,\r\n        \"completed_at\": \"2023-12-20T06:51:41.000000Z\",\r\n        \"archived_at\": \"2023-12-20T13:13:39.000000Z\",\r\n        \"created_at\": \"2023-12-20T03:37:26.000000Z\",\r\n        \"updated_at\": \"2023-12-20T13:13:39.000000Z\",\r\n        \"deleted_at\": null,\r\n        \"priority\": null,\r\n        \"user\": {\r\n            \"id\": 1,\r\n            \"name\": \"test\",\r\n            \"email\": \"test@mail.com\",\r\n            \"email_verified_at\": null,\r\n            \"created_at\": \"2023-12-19T05:36:11.000000Z\",\r\n            \"updated_at\": \"2023-12-19T05:36:11.000000Z\"\r\n        }\r\n    }\r\n}"},{"id":"2f9f7e45-66f3-4ad7-8df1-4c02cdf3065c","name":"Not Found","originalRequest":{"method":"PUT","header":[],"url":"http://localhost:8000/api/task/80/complete"},"status":"Not Found","code":404,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"error\": \"Task not found.\"\r\n}"},{"id":"bf2dc2b2-c8a5-4a97-bc11-0ba95dfc885c","name":"Unauthorized","originalRequest":{"method":"PUT","header":[],"url":"http://localhost:8000/api/task/2/complete"},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"error\": \"Unauthenticated\",\r\n    \"message\": \"You are not authorized to access this resource.\"\r\n}"},{"id":"b7ec98ac-11c5-42a5-9fe9-4238887b84a9","name":"Invalid Data","originalRequest":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"is_archived","value":"","description":"required, 1: archive 0: restore","type":"text"}]},"url":"http://localhost:8000/api/task/4/complete"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"errors\": {\r\n        \"is_completed\": [\r\n            \"The is completed field is required.\"\r\n        ]\r\n    }\r\n}"}],"_postman_id":"910f6d85-696d-4501-8cb0-2de4aa3a2c11"},{"name":"Update Due Date","id":"f42222cb-4b40-4da2-91c0-877025f431de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"due_date","value":"2023-12-30","description":"<p>optional, format: y-m-d, must be greater than now</p>\n","type":"text"}]},"url":"http://localhost:8000/api/task/{{id}}/due-date","urlObject":{"path":["api","task","{{id}}","due-date"],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"e4e64037-d2ad-40f0-a1ac-8172b03fda83","name":"Success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"due_date","value":"2023-12-30","type":"text"}]},"url":"http://localhost:8000/api/task/4/due-date"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Success\",\r\n    \"data\": {\r\n        \"id\": 4,\r\n        \"user_id\": 1,\r\n        \"title\": \"test 3\",\r\n        \"description\": \"test2\",\r\n        \"due_date\": \"2023-12-30\",\r\n        \"priority_id\": null,\r\n        \"completed_at\": \"2023-12-20T06:51:41.000000Z\",\r\n        \"archived_at\": \"2023-12-20T13:13:39.000000Z\",\r\n        \"created_at\": \"2023-12-20T03:37:26.000000Z\",\r\n        \"updated_at\": \"2023-12-20T13:13:39.000000Z\",\r\n        \"deleted_at\": null,\r\n        \"priority\": null,\r\n        \"user\": {\r\n            \"id\": 1,\r\n            \"name\": \"test\",\r\n            \"email\": \"test@mail.com\",\r\n            \"email_verified_at\": null,\r\n            \"created_at\": \"2023-12-19T05:36:11.000000Z\",\r\n            \"updated_at\": \"2023-12-19T05:36:11.000000Z\"\r\n        }\r\n    }\r\n}"},{"id":"bb59dd8b-73d3-4c05-b18f-0c8ea60e3445","name":"Not Found","originalRequest":{"method":"PUT","header":[],"url":"http://localhost:8000/api/task/80/due-date"},"status":"Not Found","code":404,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"error\": \"Task not found.\"\r\n}"},{"id":"d69131db-7e19-4bba-8a38-81a4e6e1bae9","name":"Unauthorized","originalRequest":{"method":"PUT","header":[],"url":"http://localhost:8000/api/task/2/due-date"},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"error\": \"Unauthenticated\",\r\n    \"message\": \"You are not authorized to access this resource.\"\r\n}"},{"id":"7bc035bb-b7b1-479f-b76d-ac85e2856663","name":"Invalid Data","originalRequest":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"due-date","value":"2023-01-12","type":"text"}]},"url":"http://localhost:8000/api/task/4/due-date"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"errors\": {\r\n        \"due_date\": [\r\n            \"The due date field must be a date after or equal to today.\"\r\n        ]\r\n    }\r\n}"}],"_postman_id":"f42222cb-4b40-4da2-91c0-877025f431de"},{"name":"Attach Files","id":"c6d894fc-6e3f-4998-9b1a-cec84b1cc0c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"attachments[]","description":"<p>required, array, must be file format</p>\n","type":"file","src":"/C:/Users/muza/Downloads/Full-Stack Coding Challenge.docx"}]},"url":"http://localhost:8000/api/task/{{id}}/attach","urlObject":{"path":["api","task","{{id}}","attach"],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"3025d621-af39-4622-a967-da8721d68c35","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"due_date","value":"2023-12-30","type":"text"}]},"url":"http://localhost:8000/api/task/4/attach"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Files have been attached successfully.\",\r\n    \"data\": {\r\n        \"id\": 4,\r\n        \"user_id\": 1,\r\n        \"title\": \"test 3\",\r\n        \"description\": \"test2\",\r\n        \"due_date\": \"2023-12-21\",\r\n        \"priority_id\": null,\r\n        \"completed_at\": \"2023-12-20T06:51:41.000000Z\",\r\n        \"archived_at\": \"2023-12-20T13:13:39.000000Z\",\r\n        \"created_at\": \"2023-12-20T03:37:26.000000Z\",\r\n        \"updated_at\": \"2023-12-20T13:13:39.000000Z\",\r\n        \"deleted_at\": null,\r\n        \"user\": {\r\n            \"id\": 1,\r\n            \"name\": \"test\",\r\n            \"email\": \"test@mail.com\",\r\n            \"email_verified_at\": null,\r\n            \"created_at\": \"2023-12-19T05:36:11.000000Z\",\r\n            \"updated_at\": \"2023-12-19T05:36:11.000000Z\"\r\n        },\r\n        \"attachments\": [\r\n            {\r\n                \"id\": 2,\r\n                \"task_id\": 4,\r\n                \"name\": \"Full-Stack Coding Challenge.docx\",\r\n                \"path\": \"/storage/cXwFj1KfY7oBdetluTWlizh48thlUi4EmmhfCaGs.docx\",\r\n                \"created_at\": \"2023-12-20T13:22:43.000000Z\",\r\n                \"updated_at\": \"2023-12-20T13:22:43.000000Z\",\r\n                \"deleted_at\": null\r\n            }\r\n        ]\r\n    }\r\n}"},{"id":"f16b344e-9c19-4291-90c2-07926f41e1f3","name":"Not Found","originalRequest":{"method":"POST","header":[],"url":"http://localhost:8000/api/task/80/attach"},"status":"Not Found","code":404,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"error\": \"Task not found.\"\r\n}"},{"id":"1b5465a9-4369-485b-b330-ebac4f226a57","name":"Unauthorized","originalRequest":{"method":"POST","header":[],"url":"http://localhost:8000/api/task/2/attach"},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"error\": \"Unauthenticated\",\r\n    \"message\": \"You are not authorized to access this resource.\"\r\n}"},{"id":"fec0e87c-be8b-467e-9632-2234204f967a","name":"Invalid Data","originalRequest":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"http://localhost:8000/api/task/4/attach"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"errors\": {\r\n        \"attachments\": [\r\n            \"The attachments field is required.\"\r\n        ]\r\n    }\r\n}"}],"_postman_id":"c6d894fc-6e3f-4998-9b1a-cec84b1cc0c3"},{"name":"Delete File","id":"14993a4f-02ac-41c8-bda6-f15040f87710","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:8000/api/task/{{id}}/attach/{{attach-id}}","urlObject":{"path":["api","task","{{id}}","attach","{{attach-id}}"],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"9738d4ac-8284-434f-9ea4-5b3d7ee737f5","name":"Success","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8000/api/task/4/attach/1"},"status":"No Content","code":204,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":""},{"id":"85d5d68d-c844-4250-a1d8-34fbb5830b52","name":"Not Found","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8000/api/task/80/attach/12"},"status":"Not Found","code":404,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"error\": \"Task not found.\"\r\n}"},{"id":"c294324a-3f16-4b30-bab1-d6b49465db99","name":"Unauthorized","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8000/api/task/2/attach/1"},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"error\": \"Unauthenticated\",\r\n    \"message\": \"You are not authorized to access this resource.\"\r\n}"}],"_postman_id":"14993a4f-02ac-41c8-bda6-f15040f87710"},{"name":"Add Tags","id":"fc79a100-9f0f-49fe-a5f6-a68a5db85bef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"tags[]","value":"test-tag","description":"<p>required, array</p>\n","type":"text"}]},"url":"http://localhost:8000/api/task/{{id}}/tag","urlObject":{"path":["api","task","{{id}}","tag"],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"eb9599a5-c8b1-4df9-8f11-9b89806e5bea","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"tags","value":"test-tag","type":"text"}]},"url":"http://localhost:8000/api/task/4/tag"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Success\",\r\n    \"data\": {\r\n        \"id\": 4,\r\n        \"user_id\": 1,\r\n        \"title\": \"test 3\",\r\n        \"description\": \"test2\",\r\n        \"due_date\": \"2023-12-21\",\r\n        \"priority_id\": null,\r\n        \"completed_at\": \"2023-12-20T06:51:41.000000Z\",\r\n        \"archived_at\": \"2023-12-20T13:13:39.000000Z\",\r\n        \"created_at\": \"2023-12-20T03:37:26.000000Z\",\r\n        \"updated_at\": \"2023-12-20T13:13:39.000000Z\",\r\n        \"deleted_at\": null,\r\n        \"user\": {\r\n            \"id\": 1,\r\n            \"name\": \"test\",\r\n            \"email\": \"test@mail.com\",\r\n            \"email_verified_at\": null,\r\n            \"created_at\": \"2023-12-19T05:36:11.000000Z\",\r\n            \"updated_at\": \"2023-12-19T05:36:11.000000Z\"\r\n        },\r\n        \"tags\": [\r\n            {\r\n                \"id\": 16,\r\n                \"task_id\": 4,\r\n                \"name\": \"tag2\",\r\n                \"created_at\": \"2023-12-20T10:00:02.000000Z\",\r\n                \"updated_at\": \"2023-12-20T10:00:02.000000Z\",\r\n                \"deleted_at\": null\r\n            },\r\n            {\r\n                \"id\": 17,\r\n                \"task_id\": 4,\r\n                \"name\": \"test-tag\",\r\n                \"created_at\": \"2023-12-20T13:30:39.000000Z\",\r\n                \"updated_at\": \"2023-12-20T13:30:39.000000Z\",\r\n                \"deleted_at\": null\r\n            }\r\n        ]\r\n    }\r\n}"},{"id":"a0e09566-a61e-4d3e-94fc-9def138da544","name":"Not Found","originalRequest":{"method":"POST","header":[],"url":"http://localhost:8000/api/task/80/tag"},"status":"Not Found","code":404,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"error\": \"Task not found.\"\r\n}"},{"id":"bbcc1759-69b2-49d2-bfc6-5555da7f0490","name":"Unauthorized","originalRequest":{"method":"POST","header":[],"url":"http://localhost:8000/api/task/2/tag"},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"error\": \"Unauthenticated\",\r\n    \"message\": \"You are not authorized to access this resource.\"\r\n}"},{"id":"35d08eb1-bef5-40f6-9685-f1935cad8020","name":"Invalid Data","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"tags[]","value":"","type":"text"}]},"url":"http://localhost:8000/api/task/4/tag"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"errors\": {\r\n        \"tags\": [\r\n            \"The tags field is required.\"\r\n        ]\r\n    }\r\n}"}],"_postman_id":"fc79a100-9f0f-49fe-a5f6-a68a5db85bef"},{"name":"Update Tags","id":"b15d8a7f-f7e5-4ce2-be8e-8feb4586d5f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"tags[]","value":"","description":"<p>optinal, array, if empty will delete all tags for this task</p>\n","type":"text"}]},"url":"http://localhost:8000/api/task/{{id}}/tag","urlObject":{"path":["api","task","{{id}}","tag"],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"2d47400f-a369-4c63-ba9a-f10ca38ff327","name":"Success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"tags","value":"test-tag","type":"text"}]},"url":"http://localhost:8000/api/task/4/tag"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Success\",\r\n    \"data\": {\r\n        \"id\": 4,\r\n        \"user_id\": 1,\r\n        \"title\": \"test 3\",\r\n        \"description\": \"test2\",\r\n        \"due_date\": \"2023-12-21\",\r\n        \"priority_id\": null,\r\n        \"completed_at\": \"2023-12-20T06:51:41.000000Z\",\r\n        \"archived_at\": \"2023-12-20T13:13:39.000000Z\",\r\n        \"created_at\": \"2023-12-20T03:37:26.000000Z\",\r\n        \"updated_at\": \"2023-12-20T13:13:39.000000Z\",\r\n        \"deleted_at\": null,\r\n        \"user\": {\r\n            \"id\": 1,\r\n            \"name\": \"test\",\r\n            \"email\": \"test@mail.com\",\r\n            \"email_verified_at\": null,\r\n            \"created_at\": \"2023-12-19T05:36:11.000000Z\",\r\n            \"updated_at\": \"2023-12-19T05:36:11.000000Z\"\r\n        },\r\n        \"tags\": [\r\n            {\r\n                \"id\": 16,\r\n                \"task_id\": 4,\r\n                \"name\": \"tag2\",\r\n                \"created_at\": \"2023-12-20T10:00:02.000000Z\",\r\n                \"updated_at\": \"2023-12-20T10:00:02.000000Z\",\r\n                \"deleted_at\": null\r\n            },\r\n            {\r\n                \"id\": 17,\r\n                \"task_id\": 4,\r\n                \"name\": \"test-tag\",\r\n                \"created_at\": \"2023-12-20T13:30:39.000000Z\",\r\n                \"updated_at\": \"2023-12-20T13:30:39.000000Z\",\r\n                \"deleted_at\": null\r\n            }\r\n        ]\r\n    }\r\n}"},{"id":"0f0ea2d1-2c49-4f2c-be85-e280a3d0e324","name":"Not Found","originalRequest":{"method":"PUT","header":[],"url":"http://localhost:8000/api/task/80/tag"},"status":"Not Found","code":404,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"error\": \"Task not found.\"\r\n}"},{"id":"ffa2b4d1-c732-4588-afe8-f155a039eeef","name":"Unauthorized","originalRequest":{"method":"PUT","header":[],"url":"http://localhost:8000/api/task/2/tag"},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"error\": \"Unauthenticated\",\r\n    \"message\": \"You are not authorized to access this resource.\"\r\n}"},{"id":"505a9fa9-27c1-4a04-a414-d36bc6579358","name":"Invalid Data","originalRequest":{"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"tags[]","value":"","type":"text"}]},"url":"http://localhost:8000/api/task/4/tag"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"errors\": {\r\n        \"tags\": [\r\n            \"The tags field is required.\"\r\n        ]\r\n    }\r\n}"}],"_postman_id":"b15d8a7f-f7e5-4ce2-be8e-8feb4586d5f9"},{"name":"Delete Archive","id":"8600fd17-452c-4add-ae51-09fe5d6af7a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"url":"http://localhost:8000/api/archive-task/delete","urlObject":{"path":["api","archive-task","delete"],"host":["http://localhost:8000"],"query":[],"variable":[]}},"response":[{"id":"40707163-6a7b-4315-b4ae-56f4e7916083","name":"Success","originalRequest":{"method":"PUT","header":[],"url":"http://localhost:8000/api/archive-task/delete"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Old archived tasks have been deleted successfully.\"\r\n}"},{"id":"a5284efb-74b0-49d6-b9a7-afd8926e6180","name":"Unauthorized","originalRequest":{"method":"PUT","header":[],"url":"http://localhost:8000/api/archive-task/delete"},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"error\": \"Unauthenticated\",\r\n    \"message\": \"You are not authorized to access this resource.\"\r\n}"}],"_postman_id":"8600fd17-452c-4add-ae51-09fe5d6af7a3"}],"id":"bb72ec4f-1608-4354-a7b9-d30d4ee10c4b","description":"<ol>\n<li><p>List</p>\n</li>\n<li><p>Detail</p>\n</li>\n<li><p>Create</p>\n</li>\n<li><p>Update</p>\n</li>\n<li><p>Delete</p>\n</li>\n<li><p>Archive</p>\n</li>\n<li><p>Mark as Complete</p>\n</li>\n<li><p>Update Due Date</p>\n</li>\n<li><p>Attach Files</p>\n</li>\n<li><p>Delete File</p>\n</li>\n<li><p>Add Tags</p>\n</li>\n<li><p>Update Tags</p>\n</li>\n<li><p>Delete Old Archived Tasks: Archived tasks more than one week will be deleted</p>\n</li>\n</ol>\n","_postman_id":"bb72ec4f-1608-4354-a7b9-d30d4ee10c4b"}],"event":[{"listen":"prerequest","script":{"id":"50dc5e27-9451-428a-b2a5-301cf4501702","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"532e1c5e-1fb5-4a9e-883e-743d3e9c2798","type":"text/javascript","exec":[""]}}],"variable":[{"key":"base-url","value":"http://localhost:8000","type":"string"},{"key":"bearer-token","value":"","type":"string"}]}