{"info":{"_postman_id":"2d816e8e-0a6f-46f9-b476-75978a806f94","name":"SPKL","description":"<html><head></head><body><h1 id=\"spkl-ahp\">SPKL - AHP</h1>\n<p><strong>Backend API</strong> - Implementasi metode <strong>AHP</strong> studi kasus penyedia layanan jaringan</p>\n<h3 id=\"team-a\">Team A</h3>\n<ul>\n<li><p>Viery Nugroho</p>\n</li>\n<li><p>Beta Nurul Awwalin</p>\n</li>\n<li><p>Danila Fitria</p>\n</li>\n</ul>\n<h3 id=\"akun-login\">akun login:</h3>\n<p><strong>email:</strong> <a href=\"mailto:member@example.com\">member@example.com</a><br><strong>password:</strong> password</p>\n<p><strong>email:</strong> <a href=\"mailto:anothermember@example.com\">anothermember@example.com</a><br><strong>password:</strong> password</p>\n<p><strong>email:</strong> <a href=\"mailto:admin@example.com\">admin@example.com</a><br><strong>password:</strong> password</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"SPKL - AHP","slug":"spkl-ahp"}],"owner":"22814931","collectionId":"2d816e8e-0a6f-46f9-b476-75978a806f94","publishedId":"2sA3XJkQLg","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-06-07T06:03:09.000Z"},"item":[{"name":"membership","item":[{"name":"memberships","id":"4ab1c968-b46f-42ff-b656-3a237bc043ae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://team-a-spk-internet-service-provider.vercel.app/api/v1/memberships","description":"<p>mendapatkan seluruh data pengguna - hanya admin</p>\n<p><strong>DATA SUDAH DIURUTKAN BERDASARKAN RANKING TERTINGGI</strong></p>\n<ul>\n<li><p>RANGKING diambil dari Score Rank</p>\n</li>\n<li><p>ketika user login sebagai admin akan mendapatkan semua data user</p>\n</li>\n<li><p>ketika user login sebagai member akan mendapatkan data tiap member (sesuai user login)</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseGNvMWc3ZjAwMDRyYmMyZWdkOXRpNmsiLCJuYW1lIjoiSmFuZSBTbWl0aCIsImVtYWlsIjoiYWRtaW5AZXhhbXBsZS5jb20iLCJwaG9uZU51bWJlciI6Iis5ODc2NTQzMjEwIiwiaWF0IjoxNzE4NDY3MDg1LCJleHAiOjE3MTg1NTM0ODV9.yRfqWXdnCGgAu84qzyYb97zrThxofvK7N5S7RwBAKJM"}]},"isInherited":true,"source":{"_postman_id":"2d816e8e-0a6f-46f9-b476-75978a806f94","id":"2d816e8e-0a6f-46f9-b476-75978a806f94","name":"SPKL","type":"collection"}},"urlObject":{"path":["memberships"],"host":["https://team-a-spk-internet-service-provider.vercel.app/api/v1"],"query":[],"variable":[]}},"response":[{"id":"e4a2ea78-ef75-4814-9e2b-5a83d1043fbe","name":"success","originalRequest":{"method":"GET","header":[],"url":"https://team-a-spk-internet-service-provider.vercel.app/api/v1/memberships"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"membership data retrieved successfully\",\n    \"totalItems\": 6,\n    \"pagination\": {\n        \"totalPage\": 1,\n        \"currentPage\": 1,\n        \"pageItems\": 6,\n        \"nextPage\": null,\n        \"prevPage\": null\n    },\n    \"data\": [\n        {\n            \"id\": \"clxcuhlsy0001eqerzpfesind\",\n            \"userId\": \"clxco1g7f0004rbc2egd9ti6k\",\n            \"locationDistance\": 0.8,\n            \"problem\": \"DAMAGE\",\n            \"timeOfIncident\": \"2024-06-07T03:45:41.134Z\",\n            \"cost\": 200,\n            \"status\": \"PENDING\",\n            \"ahp\": {\n                \"id\": \"clxcuhm63000eeqer0ku3d48t\",\n                \"membershipId\": \"clxcuhlsy0001eqerzpfesind\",\n                \"ci\": 0.01452799263855701,\n                \"cr\": 0.01614221404284112,\n                \"rankScore\": 0.231516888575721\n            },\n            \"user\": {\n                \"id\": \"clxco1g7f0004rbc2egd9ti6k\",\n                \"name\": \"Jane Smith\",\n                \"phoneNumber\": \"+9876543210\",\n                \"address\": \"Blitar\",\n                \"role\": \"ADMIN\",\n                \"auth\": {\n                    \"email\": \"admin@example.com\"\n                }\n            }\n        },\n        {\n            \"id\": \"clxco1h17000drbc2w59unsaq\",\n            \"userId\": \"clxco1g7f0004rbc2egd9ti6k\",\n            \"locationDistance\": 2,\n            \"problem\": \"REPORT\",\n            \"timeOfIncident\": \"2024-06-08T02:53:56.218Z\",\n            \"cost\": 2000,\n            \"status\": \"PENDING\",\n            \"ahp\": {\n                \"id\": \"clxcuhm62000aeqer5gteniqe\",\n                \"membershipId\": \"clxco1h17000drbc2w59unsaq\",\n                \"ci\": 0.01452799263855701,\n                \"cr\": 0.01614221404284112,\n                \"rankScore\": 0.2009711134879253\n            },\n            \"user\": {\n                \"id\": \"clxco1g7f0004rbc2egd9ti6k\",\n                \"name\": \"Jane Smith\",\n                \"phoneNumber\": \"+9876543210\",\n                \"address\": \"Blitar\",\n                \"role\": \"ADMIN\",\n                \"auth\": {\n                    \"email\": \"admin@example.com\"\n                }\n            }\n        },\n        {\n            \"id\": \"clxco1gn8000brbc219vit69d\",\n            \"userId\": \"clxco1g5y0002rbc2rxosgia5\",\n            \"locationDistance\": 0.5,\n            \"problem\": \"DAMAGE\",\n            \"timeOfIncident\": \"2024-06-13T02:53:56.201Z\",\n            \"cost\": 1500,\n            \"status\": \"PENDING\",\n            \"ahp\": {\n                \"id\": \"clxcuhm610006eqero4r3cenf\",\n                \"membershipId\": \"clxco1gn8000brbc219vit69d\",\n                \"ci\": 0.01452799263855701,\n                \"cr\": 0.01614221404284112,\n                \"rankScore\": 0.1627615755937389\n            },\n            \"user\": {\n                \"id\": \"clxco1g5y0002rbc2rxosgia5\",\n                \"name\": \"John Doe\",\n                \"phoneNumber\": \"+1234567890\",\n                \"address\": \"Blitar\",\n                \"role\": \"MEMBER\",\n                \"auth\": {\n                    \"email\": \"member@example.com\"\n                }\n            }\n        },\n        {\n            \"id\": \"clxco1gn8000arbc2k3e77i51\",\n            \"userId\": \"clxco1g7f0004rbc2egd9ti6k\",\n            \"locationDistance\": 1,\n            \"problem\": \"SPEED_INCREASE\",\n            \"timeOfIncident\": \"2024-06-08T02:53:56.211Z\",\n            \"cost\": 1000,\n            \"status\": \"PENDING\",\n            \"ahp\": {\n                \"id\": \"clxcuhm620008eqerp23iqmz7\",\n                \"membershipId\": \"clxco1gn8000arbc2k3e77i51\",\n                \"ci\": 0.01452799263855701,\n                \"cr\": 0.01614221404284112,\n                \"rankScore\": 0.1501374487507654\n            },\n            \"user\": {\n                \"id\": \"clxco1g7f0004rbc2egd9ti6k\",\n                \"name\": \"Jane Smith\",\n                \"phoneNumber\": \"+9876543210\",\n                \"address\": \"Blitar\",\n                \"role\": \"ADMIN\",\n                \"auth\": {\n                    \"email\": \"admin@example.com\"\n                }\n            }\n        },\n        {\n            \"id\": \"clxco1h1t000frbc2kod0krg4\",\n            \"userId\": \"clxco1g7f0004rbc2egd9ti6k\",\n            \"locationDistance\": 0.8,\n            \"problem\": \"REPORT\",\n            \"timeOfIncident\": \"2024-06-09T02:53:56.214Z\",\n            \"cost\": 600,\n            \"status\": \"PENDING\",\n            \"ahp\": {\n                \"id\": \"clxcuhm63000ceqern9ap9ozr\",\n                \"membershipId\": \"clxco1h1t000frbc2kod0krg4\",\n                \"ci\": 0.01452799263855701,\n                \"cr\": 0.01614221404284112,\n                \"rankScore\": 0.1373848453895941\n            },\n            \"user\": {\n                \"id\": \"clxco1g7f0004rbc2egd9ti6k\",\n                \"name\": \"Jane Smith\",\n                \"phoneNumber\": \"+9876543210\",\n                \"address\": \"Blitar\",\n                \"role\": \"ADMIN\",\n                \"auth\": {\n                    \"email\": \"admin@example.com\"\n                }\n            }\n        },\n        {\n            \"id\": \"clxco1gn80009rbc2ym5e93j5\",\n            \"userId\": \"clxco1g5y0002rbc2rxosgia5\",\n            \"locationDistance\": 0.2,\n            \"problem\": \"SPEED_INCREASE\",\n            \"timeOfIncident\": \"2024-06-11T02:53:56.213Z\",\n            \"cost\": 800,\n            \"status\": \"PENDING\",\n            \"ahp\": {\n                \"id\": \"clxcuhm610004eqerrrqw2kt2\",\n                \"membershipId\": \"clxco1gn80009rbc2ym5e93j5\",\n                \"ci\": 0.01452799263855701,\n                \"cr\": 0.01614221404284112,\n                \"rankScore\": 0.1172281282022552\n            },\n            \"user\": {\n                \"id\": \"clxco1g5y0002rbc2rxosgia5\",\n                \"name\": \"John Doe\",\n                \"phoneNumber\": \"+1234567890\",\n                \"address\": \"Blitar\",\n                \"role\": \"MEMBER\",\n                \"auth\": {\n                    \"email\": \"member@example.com\"\n                }\n            }\n        }\n    ]\n}"}],"_postman_id":"4ab1c968-b46f-42ff-b656-3a237bc043ae"},{"name":"membership","id":"2d310e9e-827a-409a-b00e-1b4266d78b21","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://team-a-spk-internet-service-provider.vercel.app/api/v1/memberships/clxcuhlsy0001eqerzpfesind","description":"<p>admin: mendapatkan data pengguna berdasarkan ID laporan</p>\n<p>member: mendapatkan data pengguna berdasarkan ID laporan &amp; id user (hanya laporan yang dimiliki user)</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseGNvMWc3ZjAwMDRyYmMyZWdkOXRpNmsiLCJuYW1lIjoiSmFuZSBTbWl0aCIsImVtYWlsIjoiYWRtaW5AZXhhbXBsZS5jb20iLCJwaG9uZU51bWJlciI6Iis5ODc2NTQzMjEwIiwiaWF0IjoxNzE4NDY3MDg1LCJleHAiOjE3MTg1NTM0ODV9.yRfqWXdnCGgAu84qzyYb97zrThxofvK7N5S7RwBAKJM"}]},"isInherited":true,"source":{"_postman_id":"2d816e8e-0a6f-46f9-b476-75978a806f94","id":"2d816e8e-0a6f-46f9-b476-75978a806f94","name":"SPKL","type":"collection"}},"urlObject":{"path":["memberships","clxcuhlsy0001eqerzpfesind"],"host":["https://team-a-spk-internet-service-provider.vercel.app/api/v1"],"query":[],"variable":[]}},"response":[{"id":"279f337e-b952-4f2f-bfb4-24efc6d38059","name":"success","originalRequest":{"method":"GET","header":[],"url":"https://team-a-spk-internet-service-provider.vercel.app/api/v1/memberships/clxcuhlsy0001eqerzpfesind"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"membership data retrieved successfully\",\n    \"data\": {\n        \"id\": \"clxcuhlsy0001eqerzpfesind\",\n        \"userId\": \"clxco1g7f0004rbc2egd9ti6k\",\n        \"locationDistance\": 0.8,\n        \"problem\": \"DAMAGE\",\n        \"timeOfIncident\": \"2024-06-07T03:45:41.134Z\",\n        \"cost\": 200,\n        \"status\": \"PENDING\",\n        \"user\": {\n            \"id\": \"clxco1g7f0004rbc2egd9ti6k\",\n            \"name\": \"Jane Smith\",\n            \"phoneNumber\": \"+9876543210\",\n            \"address\": \"Blitar\",\n            \"role\": \"ADMIN\",\n            \"auth\": {\n                \"email\": \"admin@example.com\"\n            }\n        },\n        \"ahp\": {\n            \"id\": \"clxcuhm63000eeqer0ku3d48t\",\n            \"membershipId\": \"clxcuhlsy0001eqerzpfesind\",\n            \"ci\": 0.01452799263855701,\n            \"cr\": 0.01614221404284112,\n            \"rankScore\": 0.231516888575721\n        }\n    }\n}"},{"id":"c143f30f-4dbf-407a-90fd-882f77057fa9","name":"not found","originalRequest":{"method":"GET","header":[],"url":"https://team-a-spk-internet-service-provider.vercel.app/api/v1/memberships/clxcuhlsy0001eqerzpfesind-"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"membership is not found\"\n}"}],"_postman_id":"2d310e9e-827a-409a-b00e-1b4266d78b21"},{"name":"membership","id":"02924f33-18ac-4432-bc9c-df7e1d0db82a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"locationDistance\": 0.8,\r\n    \"problem\": \"DAMAGE\",\r\n    \"status\": \"PENDING\",\r\n    // \"description\": \"masalah hidup\",\r\n    \"timeOfIncident\": \"2024-06-07T03:45:41.134Z\",\r\n    \"cost\": 200\r\n}","options":{"raw":{"language":"json"}}},"url":"https://team-a-spk-internet-service-provider.vercel.app/api/v1/memberships","description":"<p><strong>admin:</strong> membuat data membership by user logged in (admin sendiri)</p>\n<p><strong>member:</strong> membuat data membership by user logged in</p>\n<ul>\n<li>setelah membuat data, pembuat laporan akan menerima email terkait status laporan</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseGNvMWc3ZjAwMDRyYmMyZWdkOXRpNmsiLCJuYW1lIjoiSmFuZSBTbWl0aCIsImVtYWlsIjoiYWRtaW5AZXhhbXBsZS5jb20iLCJwaG9uZU51bWJlciI6Iis5ODc2NTQzMjEwIiwiaWF0IjoxNzE4NDY3MDg1LCJleHAiOjE3MTg1NTM0ODV9.yRfqWXdnCGgAu84qzyYb97zrThxofvK7N5S7RwBAKJM"}]},"isInherited":true,"source":{"_postman_id":"2d816e8e-0a6f-46f9-b476-75978a806f94","id":"2d816e8e-0a6f-46f9-b476-75978a806f94","name":"SPKL","type":"collection"}},"urlObject":{"path":["memberships"],"host":["https://team-a-spk-internet-service-provider.vercel.app/api/v1"],"query":[],"variable":[]}},"response":[{"id":"b58c0284-ea59-4ea6-bf99-5a89edc5ea87","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"locationDistance\": 0.5,\r\n    \"problem\": \"INSTALLATION\",\r\n    \"timeOfIncident\": \"2024-06-07T03:45:41.134Z\",\r\n    \"cost\": 2000\r\n}","options":{"raw":{"language":"json"}}},"url":"https://team-a-spk-internet-service-provider.vercel.app/api/v1/memberships"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"ahp calculated & membership data created successfully\"\n}"},{"id":"4fbf3c54-45a9-43d0-b28b-4b70d0049c31","name":"invalid input","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"locationDistance\": 0.8,\r\n    \"problem\": \"DAMAGE\",\r\n    \"timeOfIncident\": \"2024-06-07T03:45:41.134Z\",\r\n    \"cost\": 200\r\n}","options":{"raw":{"language":"json"}}},"url":"https://team-a-spk-internet-service-provider.vercel.app/api/v1/memberships"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"\\\"locationDistance\\\" is required\"\n}"}],"_postman_id":"02924f33-18ac-4432-bc9c-df7e1d0db82a"},{"name":"membership","id":"6c7ad77f-a24e-42d8-aa02-c3046e45b3d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"locationDistance\": 0.5,\r\n    \"problem\": \"DAMAGE\",\r\n    // \"cost\": 2000\r\n    \"status\": \"PENDING\",\r\n    \"description\": \"update description\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://team-a-spk-internet-service-provider.vercel.app/api/v1/memberships/clxgylfkg000913sz0r5la6bv","description":"<p><strong>admin:</strong> meng-update data membership by membership id / id laporan</p>\n<p><strong>member:</strong> update data membership by membership id / id laporan dan hanya data yang dimiliki user yag login</p>\n<ul>\n<li>setelah membuat data, pembuat laporan akan menerima email terkait status laporan terbaru</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseGNvMWc3ZjAwMDRyYmMyZWdkOXRpNmsiLCJuYW1lIjoiSmFuZSBTbWl0aCIsImVtYWlsIjoiYWRtaW5AZXhhbXBsZS5jb20iLCJwaG9uZU51bWJlciI6Iis5ODc2NTQzMjEwIiwiaWF0IjoxNzE4NDY3MDg1LCJleHAiOjE3MTg1NTM0ODV9.yRfqWXdnCGgAu84qzyYb97zrThxofvK7N5S7RwBAKJM"}]},"isInherited":true,"source":{"_postman_id":"2d816e8e-0a6f-46f9-b476-75978a806f94","id":"2d816e8e-0a6f-46f9-b476-75978a806f94","name":"SPKL","type":"collection"}},"urlObject":{"path":["memberships","clxgylfkg000913sz0r5la6bv"],"host":["https://team-a-spk-internet-service-provider.vercel.app/api/v1"],"query":[],"variable":[]}},"response":[{"id":"1c9908e9-fd4a-4b06-8993-712a425f79a0","name":"success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"locationDistance\": 0.5,\r\n    \"problem\": \"DAMAGE\",\r\n    \"timeOfIncident\": \"2024-06-07T03:45:41.134Z\",\r\n    \"cost\": 2000\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:2000/api/v1/memberships"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"ahp calculated & membership data updated successfully\"\n}"},{"id":"ba51b2b3-06e9-4a33-8686-23958f7f17d4","name":"forbidden","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"locationDistance\": 0.5,\r\n    \"problem\": \"DAMAGE\",\r\n    \"timeOfIncident\": \"2024-06-07T03:45:41.134Z\",\r\n    \"cost\": 2000\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:2000/api/v1/memberships/clx453seg000d3yb5e9c5zftx"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"you don't have access here\"\n}"},{"id":"29ab0884-281c-4799-b24c-fa310ec2c1f4","name":"not found","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"locationDistance\": 0.5,\r\n    \"problem\": \"DAMAGE\",\r\n    \"timeOfIncident\": \"2024-06-07T03:45:41.134Z\",\r\n    \"cost\": 2000\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:2000/api/v1/memberships/clx453sek000f3yb5k6fsdjpq"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"membership is not found\"\n}"},{"id":"3c40853f-92a0-42b6-9139-8b09b0ed9047","name":"invalid input","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"locationDistance\": 0.5,\r\n    \"problem\": \"DAMAGE\",\r\n    \"timeOfIncident\": \"2024-06-07T03:45:41.134Z\",\r\n    \"cost\": 2000\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:2000/api/v1/memberships/clx453seg000d3yb5e9c5zftx"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"\\\"cost\\\" must be greater than or equal to 0\"\n}"}],"_postman_id":"6c7ad77f-a24e-42d8-aa02-c3046e45b3d8"},{"name":"membership","id":"abb19c62-a041-41bd-9678-fce640594ca1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://team-a-spk-internet-service-provider.vercel.app/api/v1/memberships/clxgzu4220001adufk7fn0yxy","description":"<p><strong>admin:</strong> menghapus data membership by membership id / id laporan</p>\n<p><strong>member:</strong> menghapus data membership by membership id / id laporan dan hanya data yang dimiliki user yag login</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseGNvMWc3ZjAwMDRyYmMyZWdkOXRpNmsiLCJuYW1lIjoiSmFuZSBTbWl0aCIsImVtYWlsIjoiYWRtaW5AZXhhbXBsZS5jb20iLCJwaG9uZU51bWJlciI6Iis5ODc2NTQzMjEwIiwiaWF0IjoxNzE4NDY3MDg1LCJleHAiOjE3MTg1NTM0ODV9.yRfqWXdnCGgAu84qzyYb97zrThxofvK7N5S7RwBAKJM"}]},"isInherited":true,"source":{"_postman_id":"2d816e8e-0a6f-46f9-b476-75978a806f94","id":"2d816e8e-0a6f-46f9-b476-75978a806f94","name":"SPKL","type":"collection"}},"urlObject":{"path":["memberships","clxgzu4220001adufk7fn0yxy"],"host":["https://team-a-spk-internet-service-provider.vercel.app/api/v1"],"query":[],"variable":[]}},"response":[{"id":"4f465919-96ec-411e-bd07-f24e0bb1f3f7","name":"success","originalRequest":{"method":"DELETE","header":[],"url":"https://team-a-spk-internet-service-provider.vercel.app/api/v1/memberships/clx453seg000d3yb5e9c5zftx"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"membership data deleted successfully\"\n}"},{"id":"2ef7936a-33cb-4e9e-8474-0bb8d96907f7","name":"not found","originalRequest":{"method":"DELETE","header":[],"url":"https://team-a-spk-internet-service-provider.vercel.app/api/v1/memberships/clx453seg000d3yb5e9c5zftx"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"membership is not found\"\n}"},{"id":"f2ac1e24-f32b-4aff-a294-38809cdaf14f","name":"forbidden","originalRequest":{"method":"DELETE","header":[],"url":"https://team-a-spk-internet-service-provider.vercel.app/api/v1/memberships/clx453seg000d3yb5e9c5zftx"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"you don't have access here\"\n}"}],"_postman_id":"abb19c62-a041-41bd-9678-fce640594ca1"}],"id":"01c53d29-67cb-47ad-a5d3-fba6c388ed5a","description":"<p>data laporan pengguna</p>\n","_postman_id":"01c53d29-67cb-47ad-a5d3-fba6c388ed5a","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseGNvMWc3ZjAwMDRyYmMyZWdkOXRpNmsiLCJuYW1lIjoiSmFuZSBTbWl0aCIsImVtYWlsIjoiYWRtaW5AZXhhbXBsZS5jb20iLCJwaG9uZU51bWJlciI6Iis5ODc2NTQzMjEwIiwiaWF0IjoxNzE4NDY3MDg1LCJleHAiOjE3MTg1NTM0ODV9.yRfqWXdnCGgAu84qzyYb97zrThxofvK7N5S7RwBAKJM"}]},"isInherited":true,"source":{"_postman_id":"2d816e8e-0a6f-46f9-b476-75978a806f94","id":"2d816e8e-0a6f-46f9-b476-75978a806f94","name":"SPKL","type":"collection"}}},{"name":"auth","item":[{"name":"login","id":"ab0e06d7-a837-4031-b125-ff6f06808ffc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"viery15102002@gmail.com\",\r\n    \"password\": \"password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://team-a-spk-internet-service-provider.vercel.app/api/v1/auth/login","description":"<p>endpoint untuk login</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseGNvMWc3ZjAwMDRyYmMyZWdkOXRpNmsiLCJuYW1lIjoiSmFuZSBTbWl0aCIsImVtYWlsIjoiYWRtaW5AZXhhbXBsZS5jb20iLCJwaG9uZU51bWJlciI6Iis5ODc2NTQzMjEwIiwiaWF0IjoxNzE4NDY3MDg1LCJleHAiOjE3MTg1NTM0ODV9.yRfqWXdnCGgAu84qzyYb97zrThxofvK7N5S7RwBAKJM"}]},"isInherited":true,"source":{"_postman_id":"2d816e8e-0a6f-46f9-b476-75978a806f94","id":"2d816e8e-0a6f-46f9-b476-75978a806f94","name":"SPKL","type":"collection"}},"urlObject":{"path":["auth","login"],"host":["https://team-a-spk-internet-service-provider.vercel.app/api/v1"],"query":[],"variable":[]}},"response":[{"id":"6ef58062-5f2f-444d-b845-ec9f3dc5558f","name":"email not registered","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"admin@mail.com\",\r\n    \"password\": \"password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:2000/api/v1/auth/login"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"Email is not registered\"\n}"},{"id":"b869e3ae-f961-4802-bbf9-666ea34083e0","name":"wrong password","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"admin@mail.com\",\r\n    \"password\": \"password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:2000/api/v1/auth/login"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"Wrong password\"\n}"},{"id":"71f7b084-8b3f-4c69-929d-17226ac799ca","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"admin@mail.com\",\r\n    \"password\": \"password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:2000/api/v1/auth/login"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"login is successfully\",\n    \"_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseDNscTJkZDAwMDBpOWozcjMxNGJuZnkiLCJuYW1lIjoibWVtYmVyIGJhcnUiLCJlbWFpbCI6Im1lbWJlcmJhcnVAbWFpbC5jb20iLCJwaG9uZU51bWJlciI6IjA4MTExMTExMTExMSIsImlhdCI6MTcxNzY5OTkxMSwiZXhwIjoxNzE3Nzg2MzExfQ.kWoKCyXz38jYVr5vIub0PXxA3RJAEKh_0qv7ssRsI6k\"\n}"},{"id":"73d3dd8f-582b-4b50-8c5f-13bf80f1d01b","name":"invalid input","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"member@example.com\",\r\n    \"password\": \"password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:2000/api/v1/auth/login"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"\\\"email\\\" must be a valid email\"\n}"}],"_postman_id":"ab0e06d7-a837-4031-b125-ff6f06808ffc"},{"name":"register","id":"b7d20b18-fbfd-49e1-93e9-482f29755342","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"member baru\",\r\n    \"phoneNumber\": \"0895638069206\",\r\n    \"email\": \"memberbaru2@mail.com\",\r\n    \"password\": \"password\",\r\n    \"address\": \"Banggle, Kanigoro, Blitar\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:2000/api/v1/auth/register","description":"<p>endpoint untuk register</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseGNvMWc3ZjAwMDRyYmMyZWdkOXRpNmsiLCJuYW1lIjoiSmFuZSBTbWl0aCIsImVtYWlsIjoiYWRtaW5AZXhhbXBsZS5jb20iLCJwaG9uZU51bWJlciI6Iis5ODc2NTQzMjEwIiwiaWF0IjoxNzE4NDY3MDg1LCJleHAiOjE3MTg1NTM0ODV9.yRfqWXdnCGgAu84qzyYb97zrThxofvK7N5S7RwBAKJM"}]},"isInherited":true,"source":{"_postman_id":"2d816e8e-0a6f-46f9-b476-75978a806f94","id":"2d816e8e-0a6f-46f9-b476-75978a806f94","name":"SPKL","type":"collection"}},"urlObject":{"protocol":"http","port":"2000","path":["api","v1","auth","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"3e80d816-d833-493e-a5bf-c4f5ce82fccf","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"member baru\",\r\n    \"phoneNumber\": \"081111111111\",\r\n    \"email\": \"memberbaru@mail.com\",\r\n    \"password\": \"password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:2000/api/v1/auth/register"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"user registered successfully\",\n    \"data\": {\n        \"name\": \"member baru\",\n        \"address\": \"Banggle, Kanigoro, Blitar\",\n        \"email\": \"memberbaru2@mail.com\",\n        \"phoneNumber\": \"0895638069206\",\n        \"role\": \"MEMBER\"\n    }\n}"},{"id":"946902b7-a753-47ed-b7e6-b63149060e44","name":"email has been taken","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"member baru\",\r\n    \"phoneNumber\": \"081111111111\",\r\n    \"email\": \"memberbaru@mail.com\",\r\n    \"password\": \"password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:2000/api/v1/auth/register"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"Email has already been taken\"\n}"},{"id":"acc69e56-e5f4-4ef7-b348-d82df9ccb19e","name":"invalid input","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"member baru\",\r\n    \"phoneNumber\": \"081111111111\",\r\n    \"email\": \"memberbaru@mail.com\",\r\n    \"password\": \"password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:2000/api/v1/auth/register"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"\\\"phoneNumber\\\" length must be at least 11 characters long\"\n}"}],"_postman_id":"b7d20b18-fbfd-49e1-93e9-482f29755342"},{"name":"get user logged in","id":"35e2418e-90b8-4393-a0bf-81dcb88ef893","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://team-a-spk-internet-service-provider.vercel.app/api/v1/auth/me","description":"<p>get user logged in data</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseGNvMWc3ZjAwMDRyYmMyZWdkOXRpNmsiLCJuYW1lIjoiSmFuZSBTbWl0aCIsImVtYWlsIjoiYWRtaW5AZXhhbXBsZS5jb20iLCJwaG9uZU51bWJlciI6Iis5ODc2NTQzMjEwIiwiaWF0IjoxNzE4NDY3MDg1LCJleHAiOjE3MTg1NTM0ODV9.yRfqWXdnCGgAu84qzyYb97zrThxofvK7N5S7RwBAKJM"}]},"isInherited":true,"source":{"_postman_id":"2d816e8e-0a6f-46f9-b476-75978a806f94","id":"2d816e8e-0a6f-46f9-b476-75978a806f94","name":"SPKL","type":"collection"}},"urlObject":{"path":["auth","me"],"host":["https://team-a-spk-internet-service-provider.vercel.app/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"35e2418e-90b8-4393-a0bf-81dcb88ef893"}],"id":"947a1078-da87-4019-bf4c-db259f1b0e2b","description":"<p>resource terkait otentikasi</p>\n","_postman_id":"947a1078-da87-4019-bf4c-db259f1b0e2b","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseGNvMWc3ZjAwMDRyYmMyZWdkOXRpNmsiLCJuYW1lIjoiSmFuZSBTbWl0aCIsImVtYWlsIjoiYWRtaW5AZXhhbXBsZS5jb20iLCJwaG9uZU51bWJlciI6Iis5ODc2NTQzMjEwIiwiaWF0IjoxNzE4NDY3MDg1LCJleHAiOjE3MTg1NTM0ODV9.yRfqWXdnCGgAu84qzyYb97zrThxofvK7N5S7RwBAKJM"}]},"isInherited":true,"source":{"_postman_id":"2d816e8e-0a6f-46f9-b476-75978a806f94","id":"2d816e8e-0a6f-46f9-b476-75978a806f94","name":"SPKL","type":"collection"}}},{"name":"root","id":"c1e3c182-5741-4376-8c80-a3b12eb2c297","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:2000/api/v1/","description":"<p>root API</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseGNvMWc3ZjAwMDRyYmMyZWdkOXRpNmsiLCJuYW1lIjoiSmFuZSBTbWl0aCIsImVtYWlsIjoiYWRtaW5AZXhhbXBsZS5jb20iLCJwaG9uZU51bWJlciI6Iis5ODc2NTQzMjEwIiwiaWF0IjoxNzE4NDY3MDg1LCJleHAiOjE3MTg1NTM0ODV9.yRfqWXdnCGgAu84qzyYb97zrThxofvK7N5S7RwBAKJM"}]},"isInherited":true,"source":{"_postman_id":"2d816e8e-0a6f-46f9-b476-75978a806f94","id":"2d816e8e-0a6f-46f9-b476-75978a806f94","name":"SPKL","type":"collection"}},"urlObject":{"protocol":"http","port":"2000","path":["api","v1",""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"581b5f73-a31b-405e-b831-943ec1d83a1c","name":"success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:2000/api/v1"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"Welcome to API Akuhhh\"\n}"}],"_postman_id":"c1e3c182-5741-4376-8c80-a3b12eb2c297"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseGNvMWc3ZjAwMDRyYmMyZWdkOXRpNmsiLCJuYW1lIjoiSmFuZSBTbWl0aCIsImVtYWlsIjoiYWRtaW5AZXhhbXBsZS5jb20iLCJwaG9uZU51bWJlciI6Iis5ODc2NTQzMjEwIiwiaWF0IjoxNzE4NDY3MDg1LCJleHAiOjE3MTg1NTM0ODV9.yRfqWXdnCGgAu84qzyYb97zrThxofvK7N5S7RwBAKJM"}]}},"event":[{"listen":"prerequest","script":{"id":"cbdbff2a-cdab-4d06-9c3c-d315d2ec65bc","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"35da5bd2-2d3c-4c92-8f45-d575326b05ca","type":"text/javascript","packages":{},"exec":[""]}}],"variable":[{"key":"base_url","value":"https://team-a-spk-internet-service-provider.vercel.app/api/v1","type":"string"},{"key":"jwt_token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseGNvMWc3ZjAwMDRyYmMyZWdkOXRpNmsiLCJuYW1lIjoiSmFuZSBTbWl0aCIsImVtYWlsIjoiYWRtaW5AZXhhbXBsZS5jb20iLCJwaG9uZU51bWJlciI6Iis5ODc2NTQzMjEwIiwiaWF0IjoxNzE4NDY3MDg1LCJleHAiOjE3MTg1NTM0ODV9.yRfqWXdnCGgAu84qzyYb97zrThxofvK7N5S7RwBAKJM","type":"string"}]}