{"info":{"_postman_id":"5340188d-3333-41bc-874b-381091d30ffb","name":"recruitment-jp-2024","description":"<html><head></head><body><h2 id=\"⚡-getting-started-\">⚡ Getting Started :</h2>\n<ol>\n<li><p>Pastikan environment yang digunakan adalah <strong>\"general_env\"</strong>. Jika berbeda, ganti terlebih dahulu sesuai kebutuhan.</p>\n</li>\n<li><p>Ubah nilai <strong>\"app_url\"</strong> di environment menjadi URL tempat aplikasi ini berjalan (jika diperlukan).</p>\n</li>\n<li><p>Untuk mendapatkan <strong>access_token</strong>, lakukan login melalui request <strong>POST Login</strong>. Setelah login, <strong>access_token</strong> akan otomatis disimpan ke environment menggunakan fitur script Postman.</p>\n</li>\n</ol>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"29672529","collectionId":"5340188d-3333-41bc-874b-381091d30ffb","publishedId":"2sAXxMfZ1a","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-10-05T09:45:24.000Z"},"item":[{"name":"Products","item":[{"name":"All Product","id":"2664781c-e367-4fc9-a68a-8718874568ba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{app_url}}/api/products/v1","urlObject":{"path":["api","products","v1"],"host":["{{app_url}}"],"query":[],"variable":[]}},"response":[{"id":"b90b40b7-1e58-4416-9829-1a64242a0a57","name":"200","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{app_url}}/api/products/v1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 10:05:55 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Product found\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"code\": \"001\",\n            \"name\": \"Indomie Goreng Padang\",\n            \"created_at\": \"2024-10-05T10:04:04.000000Z\",\n            \"updated_at\": \"2024-10-05T10:04:04.000000Z\",\n            \"category\": {\n                \"id\": 2,\n                \"name\": \"Mi Instan\",\n                \"created_at\": \"2024-10-05T10:02:53.000000Z\",\n                \"updated_at\": \"2024-10-05T10:02:53.000000Z\"\n            },\n            \"supplier\": {\n                \"id\": 2,\n                \"name\": \"PT IndoFood tbk\",\n                \"created_at\": \"2024-10-05T10:03:43.000000Z\",\n                \"updated_at\": \"2024-10-05T10:03:43.000000Z\"\n            }\n        }\n    ],\n    \"count\": 1\n}"}],"_postman_id":"2664781c-e367-4fc9-a68a-8718874568ba"},{"name":"Single Product","id":"c25e0f5d-b47f-4c74-b807-2480893aa531","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{app_url}}/api/products/v1/:id","urlObject":{"path":["api","products","v1",":id"],"host":["{{app_url}}"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"09982b4c-a790-4a7e-885c-c36bbb5c7d84","name":"200","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"{{app_url}}/api/products/v1/:id","host":["{{app_url}}"],"path":["api","products","v1",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 10:06:04 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Product found\",\n    \"data\": {\n        \"id\": 1,\n        \"code\": \"001\",\n        \"name\": \"Indomie Goreng Padang\",\n        \"created_at\": \"2024-10-05T10:04:04.000000Z\",\n        \"updated_at\": \"2024-10-05T10:04:04.000000Z\",\n        \"category\": {\n            \"id\": 2,\n            \"name\": \"Mi Instan\",\n            \"created_at\": \"2024-10-05T10:02:53.000000Z\",\n            \"updated_at\": \"2024-10-05T10:02:53.000000Z\"\n        },\n        \"supplier\": {\n            \"id\": 2,\n            \"name\": \"PT IndoFood tbk\",\n            \"created_at\": \"2024-10-05T10:03:43.000000Z\",\n            \"updated_at\": \"2024-10-05T10:03:43.000000Z\"\n        }\n    }\n}"},{"id":"678dfe5b-32db-4a5d-94ca-3493cf81340a","name":"404","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"{{app_url}}/api/products/v1/:id","host":["{{app_url}}"],"path":["api","products","v1",":id"],"variable":[{"key":"id","value":""}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 10:11:15 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Product not found.\"\n}"}],"_postman_id":"c25e0f5d-b47f-4c74-b807-2480893aa531"},{"name":"Create Product","id":"e1bddaa6-59db-4233-831f-eeb297c9b446","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"code\": \"001\",\r\n    \"name\": \"Indomie Goreng Padang\",\r\n    \"category_id\": 2,\r\n    \"supplier_id\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":"{{app_url}}/api/products/v1","urlObject":{"path":["api","products","v1"],"host":["{{app_url}}"],"query":[],"variable":[]}},"response":[{"id":"dfb89084-bb8d-4728-8894-f9541daad754","name":"201","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"code\": \"001\",\r\n    \"name\": \"Indomie Goreng Padang\",\r\n    \"category_id\": 2,\r\n    \"supplier_id\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":"{{app_url}}/api/products/v1"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 10:11:45 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Product created successfully\",\n    \"data\": {\n        \"code\": \"001\",\n        \"name\": \"Indomie Goreng Padang\",\n        \"updated_at\": \"2024-10-05T10:11:45.000000Z\",\n        \"created_at\": \"2024-10-05T10:11:45.000000Z\",\n        \"id\": 2,\n        \"category\": {\n            \"id\": 2,\n            \"name\": \"Mi Instan\",\n            \"created_at\": \"2024-10-05T10:02:53.000000Z\",\n            \"updated_at\": \"2024-10-05T10:02:53.000000Z\"\n        },\n        \"supplier\": {\n            \"id\": 2,\n            \"name\": \"PT IndoFood tbk\",\n            \"created_at\": \"2024-10-05T10:03:43.000000Z\",\n            \"updated_at\": \"2024-10-05T10:03:43.000000Z\"\n        }\n    }\n}"},{"id":"4261a44c-5261-47aa-97ab-1920da550843","name":"422","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"code\": \"001\",\r\n    \"name\": \"Indomie Goreng Padang\",\r\n    \"category_id\": 1,\r\n    \"supplier_id\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":"{{app_url}}/api/products/v1"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 10:04:22 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The code has already been taken. (and 2 more errors)\",\n    \"errors\": {\n        \"code\": [\n            \"The code has already been taken.\"\n        ],\n        \"category_id\": [\n            \"The selected category id is invalid.\"\n        ],\n        \"supplier_id\": [\n            \"The selected supplier id is invalid.\"\n        ]\n    }\n}"}],"_postman_id":"e1bddaa6-59db-4233-831f-eeb297c9b446"},{"name":"Update Product","id":"b2ef846f-5211-446c-8542-f1ff6b3178e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":false},"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"code\": \"1\",\r\n    \"name\": \"Indomie Goreng Biasa\",\r\n    \"category_id\": 2,\r\n    \"supplier_id\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":"{{app_url}}/api/products/v1/:id","urlObject":{"path":["api","products","v1",":id"],"host":["{{app_url}}"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"c2fe4d8d-9fbf-4521-99a6-894df41b919b","name":"200","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"code\": \"1\",\r\n    \"name\": \"Indomie Goreng Biasa\",\r\n    \"category_id\": 2,\r\n    \"supplier_id\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{app_url}}/api/products/v1/:id","host":["{{app_url}}"],"path":["api","products","v1",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 10:06:43 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Product updated successfully\",\n    \"data\": {\n        \"id\": 1,\n        \"code\": \"1\",\n        \"name\": \"Indomie Goreng Biasa\",\n        \"created_at\": \"2024-10-05T10:04:04.000000Z\",\n        \"updated_at\": \"2024-10-05T10:06:43.000000Z\",\n        \"category\": {\n            \"id\": 2,\n            \"name\": \"Mi Instan\",\n            \"created_at\": \"2024-10-05T10:02:53.000000Z\",\n            \"updated_at\": \"2024-10-05T10:02:53.000000Z\"\n        },\n        \"supplier\": {\n            \"id\": 2,\n            \"name\": \"PT IndoFood tbk\",\n            \"created_at\": \"2024-10-05T10:03:43.000000Z\",\n            \"updated_at\": \"2024-10-05T10:03:43.000000Z\"\n        }\n    }\n}"},{"id":"f4bec169-57ec-46fb-8ea0-6373298f7d52","name":"404","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"code\": \"1\",\r\n    \"name\": \"Indomie Goreng Biasa\",\r\n    \"category_id\": 2,\r\n    \"supplier_id\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{app_url}}/api/products/v1/:id","host":["{{app_url}}"],"path":["api","products","v1",":id"],"variable":[{"key":"id","value":""}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 10:30:57 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Product not found.\"\n}"},{"id":"8cda8c5f-1b3d-4d26-9c37-f3bfefd47c43","name":"422","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"code\": \"1\",\r\n    \"name\": \"Produk #1\",\r\n    \"category_id\": 1,\r\n    \"supplier_id\": 1\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{app_url}}/api/products/v1/:id","host":["{{app_url}}"],"path":["api","products","v1",":id"],"variable":[{"key":"id","value":""}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 10:06:16 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The selected category id is invalid. (and 1 more error)\",\n    \"errors\": {\n        \"category_id\": [\n            \"The selected category id is invalid.\"\n        ],\n        \"supplier_id\": [\n            \"The selected supplier id is invalid.\"\n        ]\n    }\n}"}],"_postman_id":"b2ef846f-5211-446c-8542-f1ff6b3178e2"},{"name":"Delete Product","id":"eaaf5a66-7ac5-4902-bca2-8a50e1dbb7d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":false},"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{app_url}}/api/products/v1/:id","urlObject":{"path":["api","products","v1",":id"],"host":["{{app_url}}"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"7ce4339a-23f6-44be-9e4f-b3c26c9f0ffe","name":"200","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"{{app_url}}/api/products/v1/:id","host":["{{app_url}}"],"path":["api","products","v1",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 10:07:24 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Product deleted successfully\",\n    \"data\": {\n        \"id\": 1,\n        \"code\": \"1\",\n        \"name\": \"Indomie Goreng Biasa\",\n        \"created_at\": \"2024-10-05T10:04:04.000000Z\",\n        \"updated_at\": \"2024-10-05T10:06:43.000000Z\",\n        \"category\": {\n            \"id\": 2,\n            \"name\": \"Mi Instan\",\n            \"created_at\": \"2024-10-05T10:02:53.000000Z\",\n            \"updated_at\": \"2024-10-05T10:02:53.000000Z\"\n        },\n        \"supplier\": {\n            \"id\": 2,\n            \"name\": \"PT IndoFood tbk\",\n            \"created_at\": \"2024-10-05T10:03:43.000000Z\",\n            \"updated_at\": \"2024-10-05T10:03:43.000000Z\"\n        }\n    }\n}"},{"id":"1d368c12-7f22-421b-b4c7-1146dca40076","name":"404","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"{{app_url}}/api/products/v1/:id","host":["{{app_url}}"],"path":["api","products","v1",":id"],"variable":[{"key":"id","value":""}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 10:08:43 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Product not found.\"\n}"}],"_postman_id":"eaaf5a66-7ac5-4902-bca2-8a50e1dbb7d8"}],"id":"1e81ad52-f56e-4c99-a59f-c5ac5a3cb3a3","_postman_id":"1e81ad52-f56e-4c99-a59f-c5ac5a3cb3a3","description":""},{"name":"Warehouses","item":[{"name":"All Warehouse","id":"23c99047-6490-40be-822c-3f86f227ba13","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{app_url}}/api/warehouses/v1","urlObject":{"path":["api","warehouses","v1"],"host":["{{app_url}}"],"query":[],"variable":[]}},"response":[{"id":"a48fa879-a243-48c6-be5f-9dc471e84d32","name":"200","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{app_url}}/api/warehouses/v1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 10:47:29 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Warehouse found\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"name\": \"Gudang 1\",\n            \"created_at\": \"2024-10-05T10:43:42.000000Z\",\n            \"updated_at\": \"2024-10-05T10:45:37.000000Z\"\n        }\n    ],\n    \"count\": 1\n}"}],"_postman_id":"23c99047-6490-40be-822c-3f86f227ba13"},{"name":"Single Warehouse","id":"608f1b8c-3d35-49a4-83e1-6e8f20f0680b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"http://localhost:8000/api/warehouses/v1/1","urlObject":{"protocol":"http","port":"8000","path":["api","warehouses","v1","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"2c1ef401-1fa5-4542-81a9-d8cae5dc3eab","name":"200","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/warehouses/v1/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 10:47:42 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Warehouse found\",\n    \"data\": {\n        \"id\": 1,\n        \"name\": \"Gudang 1\",\n        \"created_at\": \"2024-10-05T10:43:42.000000Z\",\n        \"updated_at\": \"2024-10-05T10:45:37.000000Z\",\n        \"product_count\": 1,\n        \"products\": [\n            {\n                \"id\": 1,\n                \"code\": \"001\",\n                \"name\": \"Indomie Goreng Padang\",\n                \"created_at\": \"2024-10-05T10:45:29.000000Z\",\n                \"updated_at\": \"2024-10-05T10:45:29.000000Z\"\n            }\n        ]\n    }\n}"},{"id":"c2c6443d-92a3-4142-9222-4884dca3acb1","name":"404","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8000/api/warehouses/v1/:id","protocol":"http","host":["localhost"],"port":"8000","path":["api","warehouses","v1",":id"],"variable":[{"key":"id","value":""}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 10:47:59 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Warehouse not found.\"\n}"}],"_postman_id":"608f1b8c-3d35-49a4-83e1-6e8f20f0680b"},{"name":"Create Warehouse","id":"bc64390e-c454-44b4-8f3b-99ce317e39e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Gudang Tiban\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{app_url}}/api/warehouses/v1","urlObject":{"path":["api","warehouses","v1"],"host":["{{app_url}}"],"query":[],"variable":[]}},"response":[{"id":"4d3f436b-77a8-4482-ac00-3e0a2c7645bf","name":"201","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Gudang Tiban\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{app_url}}/api/warehouses/v1"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 10:43:42 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Warehouse created successfully\",\n    \"data\": {\n        \"name\": \"Gudang Tiban\",\n        \"updated_at\": \"2024-10-05T10:43:42.000000Z\",\n        \"created_at\": \"2024-10-05T10:43:42.000000Z\",\n        \"id\": 1,\n        \"products\": []\n    }\n}"}],"_postman_id":"bc64390e-c454-44b4-8f3b-99ce317e39e9"},{"name":"Update Warehouse","id":"b6c348e7-fa57-4ebe-b96e-d572dfada9e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":false},"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Gudang 1\",\r\n    \"products\": [1]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/warehouses/v1/:id","urlObject":{"protocol":"http","port":"8000","path":["api","warehouses","v1",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"be121bbf-3b6a-4ddf-817d-495241f8690f","name":"200","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Gudang 1\",\r\n    \"products\": [1]\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8000/api/warehouses/v1/:id","protocol":"http","host":["localhost"],"port":"8000","path":["api","warehouses","v1",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 10:46:24 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Warehouse updated successfully\",\n    \"data\": {\n        \"id\": 1,\n        \"name\": \"Gudang 1\",\n        \"created_at\": \"2024-10-05T10:43:42.000000Z\",\n        \"updated_at\": \"2024-10-05T10:45:37.000000Z\",\n        \"products\": [\n            {\n                \"id\": 1,\n                \"code\": \"001\",\n                \"name\": \"Indomie Goreng Padang\",\n                \"created_at\": \"2024-10-05T10:45:29.000000Z\",\n                \"updated_at\": \"2024-10-05T10:45:29.000000Z\"\n            }\n        ]\n    }\n}"},{"id":"d24e0454-3fc2-4e6f-b522-cbc544d37695","name":"404","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Gudang 1\",\r\n    \"products\": [1]\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8000/api/warehouses/v1/:id","protocol":"http","host":["localhost"],"port":"8000","path":["api","warehouses","v1",":id"],"variable":[{"key":"id","value":""}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 10:46:40 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Warehouse not found.\"\n}"},{"id":"54678160-e98c-4ac8-a800-2c48ef70e447","name":"422","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Gudang 1\",\r\n    \"products\": [2]\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8000/api/warehouses/v1/:id","protocol":"http","host":["localhost"],"port":"8000","path":["api","warehouses","v1",":id"],"variable":[{"key":"id","value":""}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 10:47:06 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The selected products is invalid.\",\n    \"errors\": {\n        \"products\": [\n            \"The selected products is invalid.\"\n        ]\n    }\n}"}],"_postman_id":"b6c348e7-fa57-4ebe-b96e-d572dfada9e4"},{"name":"Delete Warehouse","id":"eae17d79-b15d-4289-adfe-ddd440fb4d1d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":false},"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/warehouses/v1/:id","urlObject":{"protocol":"http","port":"8000","path":["api","warehouses","v1",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"63f54d93-b5cd-4caa-87b4-0ed8798e706a","name":"200","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8000/api/warehouses/v1/:id","protocol":"http","host":["localhost"],"port":"8000","path":["api","warehouses","v1",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 10:44:08 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Warehouse deleted successfully\",\n    \"data\": {\n        \"id\": 2,\n        \"name\": \"Gudang Tiban\",\n        \"created_at\": \"2024-10-05T10:43:57.000000Z\",\n        \"updated_at\": \"2024-10-05T10:43:57.000000Z\"\n    }\n}"},{"id":"39a51c09-5c78-46c5-a6f8-b2121eeeda92","name":"404","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:8000/api/warehouses/v1/:id","protocol":"http","host":["localhost"],"port":"8000","path":["api","warehouses","v1",":id"],"variable":[{"key":"id","value":""}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 10:44:18 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Warehouse not found.\"\n}"}],"_postman_id":"eae17d79-b15d-4289-adfe-ddd440fb4d1d"}],"id":"650a307f-40ae-4dc7-a4ba-a7c8e1010f63","_postman_id":"650a307f-40ae-4dc7-a4ba-a7c8e1010f63","description":""},{"name":"Suppliers","item":[{"name":"All Supplier","id":"a04b931e-0d20-499f-ba75-c8b11a329729","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{app_url}}/api/suppliers/v1","urlObject":{"path":["api","suppliers","v1"],"host":["{{app_url}}"],"query":[],"variable":[]}},"response":[{"id":"e55634ff-4832-4e87-80a0-2e27e9a91152","name":"200","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{app_url}}/api/suppliers/v1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 09:40:50 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Supplier found\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"name\": \"PT Indofood Tbk\",\n            \"created_at\": \"2024-10-05T09:40:33.000000Z\",\n            \"updated_at\": \"2024-10-05T09:40:47.000000Z\"\n        }\n    ],\n    \"count\": 1\n}"}],"_postman_id":"a04b931e-0d20-499f-ba75-c8b11a329729"},{"name":"Single Supplier","id":"9d8bf2b9-df38-4cd0-8001-f573fbae364c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{app_url}}/api/suppliers/v1/:id","urlObject":{"path":["api","suppliers","v1",":id"],"host":["{{app_url}}"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"5b8da549-d355-4eb3-aeb1-e312adbaf8c3","name":"200","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"{{app_url}}/api/suppliers/v1/:id","host":["{{app_url}}"],"path":["api","suppliers","v1",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 09:41:12 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Supplier found\",\n    \"data\": {\n        \"id\": 1,\n        \"name\": \"PT Indofood Tbk\",\n        \"created_at\": \"2024-10-05T09:40:33.000000Z\",\n        \"updated_at\": \"2024-10-05T09:40:47.000000Z\"\n    }\n}"},{"id":"8b9446b3-f852-4ca5-a9be-64f96401d2f0","name":"404","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"{{app_url}}/api/suppliers/v1/:id","host":["{{app_url}}"],"path":["api","suppliers","v1",":id"],"variable":[{"key":"id","value":""}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 10:23:56 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Supplier not found.\"\n}"}],"_postman_id":"9d8bf2b9-df38-4cd0-8001-f573fbae364c"},{"name":"Create Supplier","id":"24851ce0-7516-4f8a-b025-3242b4a2453e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"PT IndoFood tbk\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{app_url}}/api/suppliers/v1","urlObject":{"path":["api","suppliers","v1"],"host":["{{app_url}}"],"query":[],"variable":[]}},"response":[{"id":"49655ee2-23fb-4eab-950c-68b7f2fec6a0","name":"201","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"PT Astra tbk\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{app_url}}/api/suppliers/v1"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 10:24:53 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Supplier created successfully\",\n    \"data\": {\n        \"name\": \"PT Astra tbk\",\n        \"updated_at\": \"2024-10-05T10:24:53.000000Z\",\n        \"created_at\": \"2024-10-05T10:24:53.000000Z\",\n        \"id\": 2\n    }\n}"},{"id":"79db6309-2720-46b7-bc3f-694cbb115c1f","name":"422","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"PT IndoFood tbk\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{app_url}}/api/suppliers/v1"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 10:24:11 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The name has already been taken.\",\n    \"errors\": {\n        \"name\": [\n            \"The name has already been taken.\"\n        ]\n    }\n}"}],"_postman_id":"24851ce0-7516-4f8a-b025-3242b4a2453e"},{"name":"Update Supplier","id":"acd89aa3-4260-465a-9470-ce7aae70f581","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":false},"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"PT Indofood Tbk\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{app_url}}/api/suppliers/v1/:id","urlObject":{"path":["api","suppliers","v1",":id"],"host":["{{app_url}}"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"1e98b0f5-c54e-472c-b445-2b5155e88273","name":"200","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"PT Indofood Tbk\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{app_url}}/api/suppliers/v1/:id","host":["{{app_url}}"],"path":["api","suppliers","v1",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 09:40:47 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Supplier updated successfully\",\n    \"data\": {\n        \"id\": 1,\n        \"name\": \"PT Indofood Tbk\",\n        \"created_at\": \"2024-10-05T09:40:33.000000Z\",\n        \"updated_at\": \"2024-10-05T09:40:47.000000Z\"\n    }\n}"},{"id":"67e7df4f-c7f7-4028-8186-478fccb05442","name":"404","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"PT Indofood Tbk\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{app_url}}/api/suppliers/v1/:id","host":["{{app_url}}"],"path":["api","suppliers","v1",":id"],"variable":[{"key":"id","value":""}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 10:26:28 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Supplier not found.\"\n}"},{"id":"626e6550-e959-4a32-b248-dcd6733293fd","name":"422","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"PT Indofood Tbk\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{app_url}}/api/suppliers/v1/:id","host":["{{app_url}}"],"path":["api","suppliers","v1",":id"],"variable":[{"key":"id","value":""}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 10:25:04 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The name has already been taken.\",\n    \"errors\": {\n        \"name\": [\n            \"The name has already been taken.\"\n        ]\n    }\n}"}],"_postman_id":"acd89aa3-4260-465a-9470-ce7aae70f581"},{"name":"Delete Supplier","id":"66e4ee53-d745-47e6-b086-a6891123e490","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":false},"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"http://localhost:8000/api/suppliers/v1/:id","urlObject":{"protocol":"http","port":"8000","path":["api","suppliers","v1",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"dc4cc8eb-d6cb-43a4-b862-ef56931fde9b","name":"200","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"http://localhost:8000/api/suppliers/v1/:id","protocol":"http","host":["localhost"],"port":"8000","path":["api","suppliers","v1",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 09:41:37 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Supplier deleted successfully\",\n    \"data\": {\n        \"id\": 1,\n        \"name\": \"PT Indofood Tbk\",\n        \"created_at\": \"2024-10-05T09:40:33.000000Z\",\n        \"updated_at\": \"2024-10-05T09:40:47.000000Z\"\n    }\n}"},{"id":"898728e9-3d6a-4ef6-a82f-dfdb4abbf94d","name":"404","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"http://localhost:8000/api/suppliers/v1/:id","protocol":"http","host":["localhost"],"port":"8000","path":["api","suppliers","v1",":id"],"variable":[{"key":"id","value":""}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 10:29:28 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Supplier not found.\"\n}"}],"_postman_id":"66e4ee53-d745-47e6-b086-a6891123e490"}],"id":"3ccf7b82-0f7b-4bf5-bc2b-4cc31c8bbd3f","_postman_id":"3ccf7b82-0f7b-4bf5-bc2b-4cc31c8bbd3f","description":""},{"name":"Categories","item":[{"name":"All Category","id":"8f6a0023-2e83-4560-92dd-9767199a3fb5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{app_url}}/api/categories/v1","urlObject":{"path":["api","categories","v1"],"host":["{{app_url}}"],"query":[],"variable":[]}},"response":[{"id":"837469f8-8bda-446e-b4ae-7fcac99c2335","name":"200","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{app_url}}/api/categories/v1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 09:54:48 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Category found\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"name\": \"Mi Instan\",\n            \"created_at\": \"2024-10-05T09:54:40.000000Z\",\n            \"updated_at\": \"2024-10-05T09:54:40.000000Z\"\n        }\n    ],\n    \"count\": 1\n}"}],"_postman_id":"8f6a0023-2e83-4560-92dd-9767199a3fb5"},{"name":"Single Category","id":"f1b3415a-36fb-49f6-b78b-a130c8ac9eb7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{app_url}}/api/categories/v1/:id","urlObject":{"path":["api","categories","v1",":id"],"host":["{{app_url}}"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"097414f6-2d87-4818-8e64-90abdc05c862","name":"200","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"{{app_url}}/api/categories/v1/:id","host":["{{app_url}}"],"path":["api","categories","v1",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 09:55:06 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Category found\",\n    \"data\": {\n        \"id\": 1,\n        \"name\": \"Mi Instan\",\n        \"created_at\": \"2024-10-05T09:54:40.000000Z\",\n        \"updated_at\": \"2024-10-05T09:54:40.000000Z\"\n    }\n}"},{"id":"ab299ead-69b7-4ae5-8929-4cd1f3473268","name":"404","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"{{app_url}}/api/categories/v1/:id","host":["{{app_url}}"],"path":["api","categories","v1",":id"],"variable":[{"key":"id","value":""}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 10:15:16 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Category not found.\"\n}"}],"_postman_id":"f1b3415a-36fb-49f6-b78b-a130c8ac9eb7"},{"name":"Create Category","id":"de39bcaa-e6b2-4b23-9203-a4966344f2b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Mi instan\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{app_url}}/api/categories/v1","urlObject":{"path":["api","categories","v1"],"host":["{{app_url}}"],"query":[],"variable":[]}},"response":[{"id":"d178d72e-15a6-414d-9f74-3b17729ec290","name":"201","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Mi instan\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{app_url}}/api/categories/v1"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 10:19:07 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Category created successfully\",\n    \"data\": {\n        \"name\": \"Mi instan\",\n        \"updated_at\": \"2024-10-05T10:19:07.000000Z\",\n        \"created_at\": \"2024-10-05T10:19:07.000000Z\",\n        \"id\": 1\n    }\n}"},{"id":"170d0f80-d206-4af6-832a-651e90c31d76","name":"422","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Mi Instan\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{app_url}}/api/categories/v1"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 10:15:56 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The name has already been taken.\",\n    \"errors\": {\n        \"name\": [\n            \"The name has already been taken.\"\n        ]\n    }\n}"}],"_postman_id":"de39bcaa-e6b2-4b23-9203-a4966344f2b2"},{"name":"Update Category","id":"ec21da79-63f7-4ae7-ac61-13c9d2f109e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":false},"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Mi Instan (LIMITED EDITON)\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{app_url}}/api/categories/v1/:id","urlObject":{"path":["api","categories","v1",":id"],"host":["{{app_url}}"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"5163146d-f3a5-4291-a75a-bc41632cd7d3","name":"200","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Mi Instan (LIMITED EDITON)\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{app_url}}/api/categories/v1/:id","host":["{{app_url}}"],"path":["api","categories","v1",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 09:55:35 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Category updated successfully\",\n    \"data\": {\n        \"id\": 1,\n        \"name\": \"Mi Instan (LIMITED EDITON)\",\n        \"created_at\": \"2024-10-05T09:54:40.000000Z\",\n        \"updated_at\": \"2024-10-05T09:55:35.000000Z\"\n    }\n}"},{"id":"0fc8f9c6-aabc-416c-a454-23eb29d82f49","name":"404","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Mi Instan (LIMITED EDITON)\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{app_url}}/api/categories/v1/:id","host":["{{app_url}}"],"path":["api","categories","v1",":id"],"variable":[{"key":"id","value":""}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 10:20:26 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Category not found.\"\n}"},{"id":"1694e74e-ed6b-42da-9b6f-0a01c6384295","name":"422","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Beras\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{app_url}}/api/categories/v1/:id","host":["{{app_url}}"],"path":["api","categories","v1",":id"],"variable":[{"key":"id","value":""}]}},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 10:21:07 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The name has already been taken.\",\n    \"errors\": {\n        \"name\": [\n            \"The name has already been taken.\"\n        ]\n    }\n}"}],"_postman_id":"ec21da79-63f7-4ae7-ac61-13c9d2f109e0"},{"name":"Delete Category","id":"9cf296e3-9855-4b4b-877a-637f63b3288b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{access_token}}"},"isInherited":false},"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{app_url}}/api/categories/v1/:id","urlObject":{"path":["api","categories","v1",":id"],"host":["{{app_url}}"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"a736a238-3861-4071-a4d8-316bbe12ede0","name":"200","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"{{app_url}}/api/categories/v1/:id","host":["{{app_url}}"],"path":["api","categories","v1",":id"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 09:55:51 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Category deleted successfully\",\n    \"data\": {\n        \"id\": 1,\n        \"name\": \"Mi Instan (LIMITED EDITON)\",\n        \"created_at\": \"2024-10-05T09:54:40.000000Z\",\n        \"updated_at\": \"2024-10-05T09:55:35.000000Z\"\n    }\n}"},{"id":"2df0aa50-d49a-4d8a-84b5-0ca4674f44d1","name":"404","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"{{app_url}}/api/categories/v1/:id","host":["{{app_url}}"],"path":["api","categories","v1",":id"],"variable":[{"key":"id","value":""}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 10:22:10 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Category not found.\"\n}"}],"_postman_id":"9cf296e3-9855-4b4b-877a-637f63b3288b"}],"id":"4982496b-2cbf-48c2-973d-3927fc352493","_postman_id":"4982496b-2cbf-48c2-973d-3927fc352493","description":""},{"name":"Login","event":[{"listen":"test","script":{"id":"b66c1915-b7de-4603-9fd8-a73db7dc088a","exec":["pm.environment.set(\"access_token\", pm.response.json().data.access_token);"],"type":"text/javascript","packages":{}}}],"id":"d77b63d8-cb67-49a0-a858-55ef9421c3b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"admin@yayasanvitka.id\",\r\n    \"password\": \"admin123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{app_url}}/api/login","urlObject":{"path":["api","login"],"host":["{{app_url}}"],"query":[],"variable":[]}},"response":[{"id":"b2941b4b-5947-457d-a996-121b5adfa672","name":"200","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"admin@yayasanvitka.id\",\r\n    \"password\": \"admin123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{app_url}}/api/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 10:18:16 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User logged in\",\n    \"data\": {\n        \"id\": 1,\n        \"name\": \"System Administrator\",\n        \"email\": \"admin@yayasanvitka.id\",\n        \"email_verified_at\": null,\n        \"created_at\": \"2024-10-05T10:18:03.000000Z\",\n        \"updated_at\": \"2024-10-05T10:18:03.000000Z\",\n        \"access_token\": \"1|lgEfmVLEw8Sjsox0QqFycOGhP4xPuiXFYEYzPNim05532034\"\n    }\n}"},{"id":"5e704c87-b576-4884-a3c8-0a105e51f254","name":"401","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"admin@yayasanvitka.id\",\r\n    \"password\": \"admin1234\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{app_url}}/api/login"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.3.4"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Date","value":"Sat, 05 Oct 2024 10:14:33 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid credentials\"\n}"}],"_postman_id":"d77b63d8-cb67-49a0-a858-55ef9421c3b6"}]}