{"info":{"_postman_id":"32eab5db-53aa-439f-bec2-96f347df0574","name":"IPGuardian","description":"<html><head></head><body><p>IPGuardian is simple Laravel and React based application that allows you to list your IP addressesand their audit logs.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"9744215","collectionId":"32eab5db-53aa-439f-bec2-96f347df0574","publishedId":"2s9Ykq8gP8","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-12-21T13:31:12.000Z"},"item":[{"name":"Auth","item":[{"name":"Registration","id":"f6ae8c5d-4202-4d11-81aa-848049e771c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"X-XSRF-TOKEN","value":"","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Md Nayeem Hossain","type":"text"},{"key":"email","value":"test1212@example.com","type":"text"},{"key":"password","value":"password","type":"text"},{"key":"password_confirmation","value":"password","type":"text"}]},"url":"http://localhost:8000/api/v1/auth/register","description":"<p>Registration with name, email, password, password_confirmation</p>\n","urlObject":{"path":["auth","register"],"host":["http://localhost:8000/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"f6ae8c5d-4202-4d11-81aa-848049e771c8"},{"name":"Login","id":"44469c17-436d-4be5-94b3-d0ce75016d25","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"X-XSRF-TOKEN","value":"","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"email","value":"test@example.com","type":"text"},{"key":"password","value":"password","type":"text"},{"key":"password","value":"short","type":"text","disabled":true}]},"url":"http://localhost:8000/api/v1/auth/login","urlObject":{"path":["auth","login"],"host":["http://localhost:8000/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"44469c17-436d-4be5-94b3-d0ce75016d25"},{"name":"Logout","id":"d0ea2555-2f76-4423-80a1-1008f53728c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"X-XSRF-TOKEN","value":"","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:8000/api/v1/auth/logout","urlObject":{"path":["auth","logout"],"host":["http://localhost:8000/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"d0ea2555-2f76-4423-80a1-1008f53728c2"},{"name":"User","id":"2f9e5dad-45c4-414d-854f-7f55f967c920","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Referer","value":"localhost:3000","type":"text"}],"url":"http://localhost:8000/api/v1/user","description":"<p>Get the details of user</p>\n","urlObject":{"path":["user"],"host":["http://localhost:8000/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"2f9e5dad-45c4-414d-854f-7f55f967c920"}],"id":"d015f2a0-2ee2-4604-aa90-03c0331dbb0d","description":"<p>This Is for Authentication, auth is made by Sanctum with SPA. Make sure pass the csrf cookie in post/put request, also for authenticated url make sure to pass the Refferer</p>\n","_postman_id":"d015f2a0-2ee2-4604-aa90-03c0331dbb0d"},{"name":"IP Address","item":[{"name":"Index","id":"e7fa7d6e-a3eb-4699-bc30-ebba97a2af21","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Referer","value":"localhost:3000","type":"text"}],"url":"http://localhost:8000/api/v1/ip-addresses","urlObject":{"path":["ip-addresses"],"host":["http://localhost:8000/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"e7fa7d6e-a3eb-4699-bc30-ebba97a2af21"},{"name":"Store","id":"26807688-229a-4dfe-b77d-d2eea9d1adf7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Referer","value":"localhost:3000","type":"text"},{"key":"X-XSRF-TOKEN","value":"","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"ip_address\" : \"192.121.12.12\",\n    \"label\" : \"Updated\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/v1/ip-addresses","description":"<p>Create new IP Address</p>\n","urlObject":{"path":["ip-addresses"],"host":["http://localhost:8000/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"26807688-229a-4dfe-b77d-d2eea9d1adf7"},{"name":"Show","id":"97e7db36-2500-4822-b5e5-ef21e6eb8ce8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Referer","value":"localhost:3000","type":"text"}],"url":"http://localhost:8000/api/v1/ip-addresses/15","description":"<p>Show the detaild of a ip address by id</p>\n","urlObject":{"path":["ip-addresses","15"],"host":["http://localhost:8000/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"97e7db36-2500-4822-b5e5-ef21e6eb8ce8"},{"name":"Logs","id":"c5d6b364-9e17-4988-ae67-5e6108496b76","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Referer","value":"localhost:3000","type":"text"}],"url":"http://localhost:8000/api/v1/ip-addresses/15/logs","description":"<p>Get the logs of each ip address by id</p>\n","urlObject":{"path":["ip-addresses","15","logs"],"host":["http://localhost:8000/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"c5d6b364-9e17-4988-ae67-5e6108496b76"},{"name":"Update","id":"06584d45-371d-4fb9-aeb2-da50af806b7c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Referer","value":"localhost:3000","type":"text"},{"key":"X-XSRF-TOKEN","value":"","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"label\" : \"Updated\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/v1/ip-addresses/15","urlObject":{"path":["ip-addresses","15"],"host":["http://localhost:8000/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"06584d45-371d-4fb9-aeb2-da50af806b7c"}],"id":"f0534403-105e-4dab-b3f7-595263ec9d80","description":"<p>List of ip address that belogs to current user.</p>\n","_postman_id":"f0534403-105e-4dab-b3f7-595263ec9d80"},{"name":"Dashboard","item":[{"name":"Dashboard","id":"37b6da77-e86a-41a2-8a2f-5d4d01dcbc94","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Referer","value":"localhost:3000","type":"text"}],"url":"http://localhost:8000/api/v1/dashboard","description":"<p>IP Count in Dashboad</p>\n","urlObject":{"path":["dashboard"],"host":["http://localhost:8000/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"37b6da77-e86a-41a2-8a2f-5d4d01dcbc94"}],"id":"9f044bc0-dcc9-4127-a526-8b9a20c13add","_postman_id":"9f044bc0-dcc9-4127-a526-8b9a20c13add","description":""}],"event":[{"listen":"prerequest","script":{"id":"9b46cc48-0794-4f06-916c-1cb9f7402d15","type":"text/javascript","exec":["pm.request.headers.add({","    key: \"Accept\",","    value: \"application/json\"","});","pm.sendRequest({","    url: pm.collectionVariables.get('base_url')+'/sanctum/csrf-cookie',","    method: 'GET'","}, function (error, response, {cookies}) {","    if (!error){","        pm.collectionVariables.set('xsrf-cookie', cookies.get('XSRF-TOKEN'))","    }","})"]}},{"listen":"test","script":{"id":"2e83b430-eb8a-4d49-b277-a33fe2dacae6","type":"text/javascript","exec":[""]}}],"variable":[{"key":"base_url","value":"http://localhost:8000","type":"string"},{"key":"api_version","value":"v1","type":"string"},{"key":"api_url","value":"http://localhost:8000/api/v1","type":"string"},{"key":"xsrf-cookie","value":"","type":"string"},{"key":"host","value":"localhost:3000","type":"string"}]}