{"info":{"_postman_id":"76e2e264-c83c-4ed1-b368-1b1ff6d6a3df","name":"Bucket API v1","description":"<html><head></head><body><p>The API served through the bucket-webapp. Project found at: <a href=\"https://github.com/972C8/bucket-webapp\">https://github.com/972C8/bucket-webapp</a>.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"17679206","collectionId":"76e2e264-c83c-4ed1-b368-1b1ff6d6a3df","publishedId":"UVXerdXY","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-01-08T15:44:23.000Z"},"item":[{"name":"avatars","item":[{"name":"Get XSRF Token","event":[{"listen":"test","script":{"id":"69930ee6-e71e-4ded-ac49-d058fd86cc07","exec":[""],"type":"text/javascript"}}],"id":"6bbf7602-33b9-42e9-a3b2-7ecd3f4d56fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:8080/login","urlObject":{"path":["login"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"6bbf7602-33b9-42e9-a3b2-7ecd3f4d56fa"},{"name":"Login","id":"93f27b21-4ca6-4a62-98d3-188981e72631","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"{{auth_username}}\",\r\n  \"password\": \"{{auth_password}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/login","urlObject":{"path":["login"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"93f27b21-4ca6-4a62-98d3-188981e72631"},{"name":"Logout","id":"eeddad14-a4fb-40b0-bde3-e3dcb3368c39","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"X-XSRF-TOKEN","value":"{{xsrf-token}}","type":"default"}],"url":"localhost:8080/logout","urlObject":{"path":["logout"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"eeddad14-a4fb-40b0-bde3-e3dcb3368c39"},{"name":"Get profile","id":"227e3820-561e-4379-963e-4da1a447ec6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:8080/profile","urlObject":{"path":["profile"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"227e3820-561e-4379-963e-4da1a447ec6d"},{"name":"Create avatar","id":"2b7d2302-c72f-4911-8698-5c77e716b127","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"demo user\",\r\n    \"email\": \"{{auth_username}}\",\r\n    \"password\": \"{{auth_password}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/user/register","urlObject":{"path":["user","register"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"a3748b5a-bc55-462e-9d56-229b8de7b345","name":"Create avatar","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"user2\",\r\n    \"email\": \"user2@user.com\",\r\n    \"password\": \"password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/api/avatars"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Location","value":"http://localhost:8080/api/avatars/5"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 08 Jan 2022 15:09:37 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 5,\n    \"name\": \"user2\",\n    \"email\": \"user2@user.com\",\n    \"remember\": null\n}"}],"_postman_id":"2b7d2302-c72f-4911-8698-5c77e716b127"},{"name":"Upload new profile picture (for current avatar)","id":"b565a6eb-68ee-49c8-8e40-91c2ee08ceb4","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"image","type":"file","src":"/C:/Users/tibor/Pictures/sample.png"}]},"url":"localhost:8080/api/avatars/profile-picture","description":"<p>New profile picture is created and assigned to the current user</p>\n","urlObject":{"path":["api","avatars","profile-picture"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"b565a6eb-68ee-49c8-8e40-91c2ee08ceb4"},{"name":"Get avatar by id","id":"229f36cc-7a65-4c28-85cc-d0a368dbe073","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:8080/api/avatars/:avatar-id","urlObject":{"path":["api","avatars",":avatar-id"],"host":["localhost:8080"],"query":[],"variable":[{"type":"any","value":"1","key":"avatar-id"}]}},"response":[{"id":"486c3e2c-fc38-4ca9-9d1f-ed7d3316d255","name":"Get avatar by id","originalRequest":{"method":"GET","header":[],"url":{"raw":"localhost:8080/api/avatars/:avatar-id","host":["localhost:8080"],"path":["api","avatars",":avatar-id"],"variable":[{"key":"avatar-id","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 08 Jan 2022 15:18:13 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"name\": \"user\",\n    \"email\": \"user@user.com\",\n    \"remember\": null\n}"}],"_postman_id":"229f36cc-7a65-4c28-85cc-d0a368dbe073"},{"name":"Get profile picture of current avatar","id":"f05398e4-98a4-4985-85f3-ba70337dda59","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:8080/api/avatars/profile-picture","urlObject":{"path":["api","avatars","profile-picture"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"f05398e4-98a4-4985-85f3-ba70337dda59"},{"name":"Edit avatar","id":"6d34c392-bcce-4d63-8fa2-0666c0b8899c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"user3\",\r\n    \"email\": \"user3@user.com\",\r\n    \"password\": \"password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/api/avatars/:avatar-id","urlObject":{"path":["api","avatars",":avatar-id"],"host":["localhost:8080"],"query":[],"variable":[{"type":"any","value":"1","key":"avatar-id"}]}},"response":[],"_postman_id":"6d34c392-bcce-4d63-8fa2-0666c0b8899c"},{"name":"Delete avatar","id":"090d1aab-e436-4fe1-a11f-5ef111b1b6b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"localhost:8080/api/avatars/:avatar-id","urlObject":{"path":["api","avatars",":avatar-id"],"host":["localhost:8080"],"query":[],"variable":[{"type":"any","value":"2","key":"avatar-id"}]}},"response":[],"_postman_id":"090d1aab-e436-4fe1-a11f-5ef111b1b6b1"}],"id":"e6e2f295-ec06-4dfd-b1b0-5596a4d8fd13","description":"<p>API requests concerning the avatars (users)</p>\n","_postman_id":"e6e2f295-ec06-4dfd-b1b0-5596a4d8fd13"},{"name":"bucket-items","item":[{"name":"Create bucket item","id":"152c7e1e-7d65-4413-8824-7d5992ccf32c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"new bucket item\",\r\n    \"description\": \"great description of the item\",\r\n    \"completed\": true,\r\n    \"dateToAccomplish\": \"2022-12-01\",\r\n    \"dateAccomplishedOn\": \"2022-11-12\",\r\n    \"bucket\": {\r\n        \"id\": 4\r\n    },\r\n    \"image\": {\r\n        \"id\": 5\r\n    },\r\n    \"location\": {\r\n        \"id\": 3\r\n    },\r\n    \"labels\": [\r\n        {\r\n            \"id\": 2\r\n        },\r\n        {\r\n            \"id\": 6\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/api/bucket-items","description":"<p>Create a new bucket item and reference prior created bucket, location, image, and labels using the example format.</p>\n","urlObject":{"path":["api","bucket-items"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"e5026a73-be77-4a2f-b86e-fdf8f2b54cb0","name":"Create bucket item","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"new bucket item\",\r\n    \"description\": \"great description of the item\",\r\n    \"completed\": true,\r\n    \"dateToAccomplish\": \"2022-12-01\",\r\n    \"dateAccomplishedOn\": \"2022-11-12\",\r\n    \"bucket\": {\r\n        \"id\": 4\r\n    },\r\n    \"image\": {\r\n        \"id\": 5\r\n    },\r\n    \"location\": {\r\n        \"id\": 3\r\n    },\r\n    \"labels\": [\r\n        {\r\n            \"id\": 2\r\n        },\r\n        {\r\n            \"id\": 6\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/api/bucket-items"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Location","value":"http://localhost:8080/api/bucket-items/8"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 08 Jan 2022 15:23:31 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 8,\n    \"title\": \"new bucket item\",\n    \"description\": \"great description of the item\",\n    \"created\": \"2022-01-08T15:23:31.345477400Z\",\n    \"dateToAccomplish\": \"2022-12-01\",\n    \"completed\": true,\n    \"dateAccomplishedOn\": \"2022-11-12\",\n    \"bucket\": {\n        \"id\": 4,\n        \"name\": \"Category 1\",\n        \"color\": \"#FFFFF\",\n        \"icon\": null\n    },\n    \"image\": {\n        \"id\": 5\n    },\n    \"location\": {\n        \"id\": 3,\n        \"address\": \"Tellstrasse+25%2C+5000+Aarau%2C+Switzerland\",\n        \"googleMapsUrl\": \"https://www.google.com/maps/place/\"\n    },\n    \"labels\": [\n        {\n            \"id\": 2,\n            \"name\": \"Hiking\"\n        },\n        {\n            \"id\": 6,\n            \"name\": \"Hiking\"\n        }\n    ]\n}"}],"_postman_id":"152c7e1e-7d65-4413-8824-7d5992ccf32c"},{"name":"Upload new  image for bucket item","id":"5314cf18-156f-48b7-9d7c-b55ca59a5d3f","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"image","type":"file","src":"/C:/Users/tibor/Pictures/sample.png"}]},"url":"localhost:8080/api/bucket-items/images","description":"<p>Upload new image that can be referenced when creating a new bucket item</p>\n","urlObject":{"path":["api","bucket-items","images"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"5314cf18-156f-48b7-9d7c-b55ca59a5d3f"},{"name":"Get bucket item by id","id":"38995708-7f05-49e9-868e-dd62895ca066","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:8080/api/bucket-items/:item-id","urlObject":{"path":["api","bucket-items",":item-id"],"host":["localhost:8080"],"query":[],"variable":[{"type":"any","value":"8","key":"item-id"}]}},"response":[{"id":"303c2e50-8e6e-48af-8a7f-53553ee73549","name":"Get bucket item by id","originalRequest":{"method":"GET","header":[],"url":{"raw":"localhost:8080/api/bucket-items/:item-id","host":["localhost:8080"],"path":["api","bucket-items",":item-id"],"variable":[{"key":"item-id","value":"8"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 08 Jan 2022 15:25:16 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 8,\n    \"title\": \"new bucket item\",\n    \"description\": \"great description of the item\",\n    \"created\": \"2022-01-08T15:23:31.345477Z\",\n    \"dateToAccomplish\": \"2022-12-01\",\n    \"completed\": true,\n    \"dateAccomplishedOn\": \"2022-11-12\",\n    \"bucket\": {\n        \"id\": 4,\n        \"name\": \"Category 1\",\n        \"color\": \"#FFFFF\",\n        \"icon\": null\n    },\n    \"image\": {\n        \"id\": 5\n    },\n    \"location\": {\n        \"id\": 3,\n        \"address\": \"Tellstrasse+25%2C+5000+Aarau%2C+Switzerland\",\n        \"googleMapsUrl\": \"https://www.google.com/maps/place/\"\n    },\n    \"labels\": [\n        {\n            \"id\": 2,\n            \"name\": \"Hiking\"\n        },\n        {\n            \"id\": 6,\n            \"name\": \"Hiking\"\n        }\n    ]\n}"}],"_postman_id":"38995708-7f05-49e9-868e-dd62895ca066"},{"name":"Get image of bucket item by item id","id":"8e44db3f-f8e9-4885-ae52-8bb893efd564","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:8080/api/bucket-items/images/:bucket-item-id","urlObject":{"path":["api","bucket-items","images",":bucket-item-id"],"host":["localhost:8080"],"query":[],"variable":[{"type":"any","value":"3","key":"bucket-item-id"}]}},"response":[],"_postman_id":"8e44db3f-f8e9-4885-ae52-8bb893efd564"},{"name":"Edit bucket item","id":"48e0bdd7-3dc9-4a29-b409-4d2a6bbb43ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"new bucket item 2\",\r\n    \"description\": \"great description of the item 2\",\r\n    \"dateToAccomplish\": \"tomorrow?\",\r\n    \"bucket\": {\r\n        \"id\": 5\r\n    },\r\n    \"image\": {\r\n        \"id\": 4\r\n    },\r\n    \"labels\": [\r\n        {\r\n            \"id\": 2\r\n        },\r\n        {\r\n            \"id\": 3\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/api/bucket-items/:item-id","urlObject":{"path":["api","bucket-items",":item-id"],"host":["localhost:8080"],"query":[],"variable":[{"type":"any","value":"2","key":"item-id"}]}},"response":[],"_postman_id":"48e0bdd7-3dc9-4a29-b409-4d2a6bbb43ff"},{"name":"Delete bucket item","id":"581a513e-bb15-4660-ab0e-299aa8227a72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"localhost:8080/api/bucket-items/:item-id","urlObject":{"path":["api","bucket-items",":item-id"],"host":["localhost:8080"],"query":[],"variable":[{"type":"any","value":"3","key":"item-id"}]}},"response":[],"_postman_id":"581a513e-bb15-4660-ab0e-299aa8227a72"},{"name":"Get all bucket items (of current avatar)","id":"8bc76849-6f91-41a5-b26d-cf779c42ef17","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:8080/api/bucket-items","description":"<p>Filter the results using the provided query params.</p>\n","urlObject":{"path":["api","bucket-items"],"host":["localhost:8080"],"query":[{"disabled":true,"key":"completed","value":"true"},{"disabled":true,"key":"bucketId","value":"4"},{"disabled":true,"key":"labelId","value":"2"},{"disabled":true,"key":"limit","value":"10"}],"variable":[]}},"response":[{"id":"df67d4cf-0b8b-4e6c-937f-a059bdbc7862","name":"Get all bucket items (of current avatar)","originalRequest":{"method":"GET","header":[],"url":{"raw":"localhost:8080/api/bucket-items","host":["localhost:8080"],"path":["api","bucket-items"],"query":[{"key":"completed","value":"true","type":"default","disabled":true},{"key":"bucketId","value":"4","disabled":true},{"key":"labelId","value":"2","type":"default","disabled":true},{"key":"limit","value":"10","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 08 Jan 2022 15:25:24 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 7,\n        \"title\": \"new bucket item\",\n        \"description\": \"great description of the item\",\n        \"created\": \"2022-01-08T15:21:25.682159Z\",\n        \"dateToAccomplish\": null,\n        \"completed\": true,\n        \"dateAccomplishedOn\": null,\n        \"bucket\": {\n            \"id\": 4,\n            \"name\": \"Category 1\",\n            \"color\": \"#FFFFF\",\n            \"icon\": null\n        },\n        \"image\": {\n            \"id\": 5\n        },\n        \"location\": {\n            \"id\": 3,\n            \"address\": \"Tellstrasse+25%2C+5000+Aarau%2C+Switzerland\",\n            \"googleMapsUrl\": \"https://www.google.com/maps/place/\"\n        },\n        \"labels\": [\n            {\n                \"id\": 2,\n                \"name\": \"Hiking\"\n            },\n            {\n                \"id\": 6,\n                \"name\": \"Hiking\"\n            }\n        ]\n    },\n    {\n        \"id\": 8,\n        \"title\": \"new bucket item\",\n        \"description\": \"great description of the item\",\n        \"created\": \"2022-01-08T15:23:31.345477Z\",\n        \"dateToAccomplish\": \"2022-12-01\",\n        \"completed\": true,\n        \"dateAccomplishedOn\": \"2022-11-12\",\n        \"bucket\": {\n            \"id\": 4,\n            \"name\": \"Category 1\",\n            \"color\": \"#FFFFF\",\n            \"icon\": null\n        },\n        \"image\": {\n            \"id\": 5\n        },\n        \"location\": {\n            \"id\": 3,\n            \"address\": \"Tellstrasse+25%2C+5000+Aarau%2C+Switzerland\",\n            \"googleMapsUrl\": \"https://www.google.com/maps/place/\"\n        },\n        \"labels\": [\n            {\n                \"id\": 2,\n                \"name\": \"Hiking\"\n            },\n            {\n                \"id\": 6,\n                \"name\": \"Hiking\"\n            }\n        ]\n    }\n]"}],"_postman_id":"8bc76849-6f91-41a5-b26d-cf779c42ef17"}],"id":"9462f8ad-807c-4480-9066-efa6c981acfc","description":"<p>API requests concerning the bucket items</p>\n","_postman_id":"9462f8ad-807c-4480-9066-efa6c981acfc"},{"name":"buckets","item":[{"name":"Create bucket","id":"c5868dd7-0724-425c-b67f-c9cd5f9e758a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Category 1\",\r\n    \"color\": \"#FFFFF\",\r\n    \"icon\": \"apple\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/api/buckets","urlObject":{"path":["api","buckets"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"729a8236-608c-460a-a9dd-b5c77c907624","name":"Create bucket","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Category 1\",\r\n    \"color\": \"#FFFFF\",\r\n    \"icon\": \"apple\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/api/buckets"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Location","value":"http://localhost:8080/api/buckets/9"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 08 Jan 2022 15:27:50 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 9,\n    \"name\": \"Category 1\",\n    \"color\": \"#FFFFF\",\n    \"icon\": \"apple\"\n}"}],"_postman_id":"c5868dd7-0724-425c-b67f-c9cd5f9e758a"},{"name":"Get bucket by id","id":"325e497f-3a49-4812-a2eb-b98e4ed071f1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:8080/api/buckets/:bucket-id","urlObject":{"path":["api","buckets",":bucket-id"],"host":["localhost:8080"],"query":[],"variable":[{"type":"any","value":"9","key":"bucket-id"}]}},"response":[{"id":"ff093811-9f46-4059-89cf-2967014a2c55","name":"Get bucket by id","originalRequest":{"method":"GET","header":[],"url":{"raw":"localhost:8080/api/buckets/:bucket-id","host":["localhost:8080"],"path":["api","buckets",":bucket-id"],"variable":[{"key":"bucket-id","value":"9"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 08 Jan 2022 15:28:07 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 9,\n    \"name\": \"Category 1\",\n    \"color\": \"#FFFFF\",\n    \"icon\": \"apple\"\n}"}],"_postman_id":"325e497f-3a49-4812-a2eb-b98e4ed071f1"},{"name":"Edit bucket","id":"2d772093-4d01-426c-ac16-0320efbf0c13","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Category 1 NEW\",\r\n    \"color\": \"#FFFFF NEW\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/api/buckets/:bucket-id","urlObject":{"path":["api","buckets",":bucket-id"],"host":["localhost:8080"],"query":[],"variable":[{"type":"any","value":"2","key":"bucket-id"}]}},"response":[],"_postman_id":"2d772093-4d01-426c-ac16-0320efbf0c13"},{"name":"Delete bucket","id":"eb7f93a4-0add-4865-a9da-9b244970ef9d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"localhost:8080/api/buckets/:bucket-id","urlObject":{"path":["api","buckets",":bucket-id"],"host":["localhost:8080"],"query":[],"variable":[{"type":"any","value":"2","key":"bucket-id"}]}},"response":[],"_postman_id":"eb7f93a4-0add-4865-a9da-9b244970ef9d"},{"name":"Get buckets (of current avatar)","id":"422d8d17-cc1c-4c26-867a-452b0c8da7c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:8080/api/buckets","urlObject":{"path":["api","buckets"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"2116f8d8-6735-4537-863f-c5b9fd101871","name":"Get buckets (of current avatar)","originalRequest":{"method":"GET","header":[],"url":"localhost:8080/api/buckets"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 08 Jan 2022 15:28:12 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 4,\n        \"name\": \"Category 1\",\n        \"color\": \"#FFFFF\",\n        \"icon\": null\n    },\n    {\n        \"id\": 9,\n        \"name\": \"Category 1\",\n        \"color\": \"#FFFFF\",\n        \"icon\": \"apple\"\n    }\n]"}],"_postman_id":"422d8d17-cc1c-4c26-867a-452b0c8da7c7"}],"id":"86bc0b43-07d2-42bc-8e6b-e53f4f4718d5","description":"<p>API requests concerning the buckets (categories of bucket items)</p>\n","_postman_id":"86bc0b43-07d2-42bc-8e6b-e53f4f4718d5"},{"name":"labels","item":[{"name":"Create label","id":"c9376481-01b0-45a4-8744-9b8baa812ccc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Hiking\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/api/labels","urlObject":{"path":["api","labels"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"5e016b70-1cac-43ff-8d8f-001b5377f32c","name":"Create label","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Hiking\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/api/labels"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Location","value":"http://localhost:8080/api/labels/10"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 08 Jan 2022 15:29:18 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 10,\n    \"name\": \"Hiking\"\n}"}],"_postman_id":"c9376481-01b0-45a4-8744-9b8baa812ccc"},{"name":"Get label by id","id":"44ede9af-6448-4ada-9985-47326467c30d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:8080/api/labels/:label-id","urlObject":{"path":["api","labels",":label-id"],"host":["localhost:8080"],"query":[],"variable":[{"type":"any","value":"10","key":"label-id"}]}},"response":[{"id":"7cca0ade-e3c6-4ed9-9b90-80040ecad7c1","name":"Get label by id","originalRequest":{"method":"GET","header":[],"url":{"raw":"localhost:8080/api/labels/:label-id","host":["localhost:8080"],"path":["api","labels",":label-id"],"variable":[{"key":"label-id","value":"10"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 08 Jan 2022 15:29:25 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 10,\n    \"name\": \"Hiking\"\n}"}],"_postman_id":"44ede9af-6448-4ada-9985-47326467c30d"},{"name":"Edit label","id":"dbb82d49-8d8d-43a1-ba5c-1c4c7f2e9318","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Label 2 NEW\",\r\n    \"color\": \"#FFFFF NEW\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/api/labels/:label-id","urlObject":{"path":["api","labels",":label-id"],"host":["localhost:8080"],"query":[],"variable":[{"type":"any","value":"4","key":"label-id"}]}},"response":[],"_postman_id":"dbb82d49-8d8d-43a1-ba5c-1c4c7f2e9318"},{"name":"Delete label","id":"cbc294b6-8e5e-41a9-af0b-7af1223baff2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"localhost:8080/api/labels/:label-id","urlObject":{"path":["api","labels",":label-id"],"host":["localhost:8080"],"query":[],"variable":[{"type":"any","value":"3","key":"label-id"}]}},"response":[],"_postman_id":"cbc294b6-8e5e-41a9-af0b-7af1223baff2"},{"name":"Get labels (of current avatar)","id":"f9bd3c9a-4239-4acc-ab8d-cf4a19c939d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:8080/api/labels","urlObject":{"path":["api","labels"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"5008353d-d4b1-49a6-969a-176ec651ad7f","name":"Get labels (of current avatar)","originalRequest":{"method":"GET","header":[],"url":"localhost:8080/api/labels"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 08 Jan 2022 15:29:28 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 2,\n        \"name\": \"Hiking\"\n    },\n    {\n        \"id\": 6,\n        \"name\": \"Hiking\"\n    },\n    {\n        \"id\": 10,\n        \"name\": \"Hiking\"\n    }\n]"}],"_postman_id":"f9bd3c9a-4239-4acc-ab8d-cf4a19c939d6"}],"id":"d94ae066-a000-4b06-8834-a7c94ec68192","description":"<p>API requests concerning the labels (assigned to bucket items)</p>\n","_postman_id":"d94ae066-a000-4b06-8834-a7c94ec68192"},{"name":"locations","item":[{"name":"Create location","id":"11ae6643-2169-44a4-ad03-9758906f17b3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"address","value":"Tellstrasse 25, 5000 Aarau, Switzerland","type":"default"}]},"url":"localhost:8080/api/locations","urlObject":{"path":["api","locations"],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"b9f7c70e-9907-450d-8115-49ef2b4c8d6a","name":"Create location","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"address","value":"Tellstrasse 25, 5000 Aarau, Switzerland","type":"default"}],"options":{"raw":{"language":"json"}}},"url":"localhost:8080/api/locations"},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 08 Jan 2022 15:30:34 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 11,\n    \"address\": \"Tellstrasse+25%2C+5000+Aarau%2C+Switzerland\",\n    \"googleMapsUrl\": \"https://www.google.com/maps/place/\"\n}"}],"_postman_id":"11ae6643-2169-44a4-ad03-9758906f17b3"},{"name":"Get location by id","id":"9fb91915-3adc-4afe-a5e6-12ebf52651b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:8080/api/locations/:location-id","description":"<p>Returns the address in url encoded format and ready to be used by google maps</p>\n","urlObject":{"path":["api","locations",":location-id"],"host":["localhost:8080"],"query":[],"variable":[{"type":"any","value":"11","key":"location-id"}]}},"response":[{"id":"4bf21c8a-f45d-478d-af83-22f089628767","name":"Get location by id","originalRequest":{"method":"GET","header":[],"url":{"raw":"localhost:8080/api/locations/:location-id","host":["localhost:8080"],"path":["api","locations",":location-id"],"variable":[{"key":"location-id","value":"11"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sat, 08 Jan 2022 15:30:45 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 11,\n    \"address\": \"Tellstrasse+25%2C+5000+Aarau%2C+Switzerland\",\n    \"googleMapsUrl\": \"https://www.google.com/maps/place/\"\n}"}],"_postman_id":"9fb91915-3adc-4afe-a5e6-12ebf52651b9"},{"name":"Get locations","id":"3c4352b2-6e05-4737-b4a5-34ad7538d815","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:8080/api/locations/","description":"<p>Returns the address in url encoded format and ready to be used by google maps</p>\n","urlObject":{"path":["api","locations",""],"host":["localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"cac9a942-8eee-4378-82f6-fbc398e8d8fb","name":"Get locations","originalRequest":{"method":"GET","header":[],"url":"localhost:8080/api/locations/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Sun, 09 Jan 2022 13:33:51 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 2,\n        \"address\": \"Tellstrasse+25%2C+5000+Aarau%2C+Switzerland\",\n        \"googleMapsUrl\": \"https://www.google.com/maps/place/\"\n    }\n]"}],"_postman_id":"3c4352b2-6e05-4737-b4a5-34ad7538d815"},{"name":"Delete location","id":"1de23d64-9ac2-4a94-8b20-6b563368b16a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"localhost:8080/api/locations/:location-id","urlObject":{"path":["api","locations",":location-id"],"host":["localhost:8080"],"query":[],"variable":[{"type":"any","value":"3","key":"location-id"}]}},"response":[],"_postman_id":"1de23d64-9ac2-4a94-8b20-6b563368b16a"}],"id":"4d230e66-5fe6-44d4-a397-4e08e8592e7e","description":"<p>API requests concerning the location where the bucket item takes place (assigned to bucket items)</p>\n","_postman_id":"4d230e66-5fe6-44d4-a397-4e08e8592e7e"},{"name":"Test connection","id":"1b36492c-5bb5-4d91-b3d5-e55395c03439","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"HEAD","header":[],"url":"localhost:8080","description":"<p>Test whether the local server is running</p>\n","urlObject":{"host":["localhost:8080"],"query":[],"variable":[]}},"response":[],"_postman_id":"1b36492c-5bb5-4d91-b3d5-e55395c03439"}],"event":[{"listen":"prerequest","script":{"id":"b9d2de76-2459-48cc-80d2-f14ee5dbf1d5","type":"text/javascript","exec":["const remote = pm.environment.get('remote')","","if (remote == 'true') {","    const token = pm.environment.get('xsrf-token')","","    if (token) {","        pm.request.addHeader({","            key: \"X-XSRF-TOKEN\",","            value: token","        })","    }","} else {","    const username = pm.environment.get('auth_username')","    const password = pm.environment.get('auth_password')","","    const base64 = btoa(`${username}:${password}`)","","    pm.request.addHeader({","        key: \"Authorization\",","        value: `Basic ${base64}`","    })","    ","}"]}},{"listen":"test","script":{"id":"1511e465-227f-4325-ad2d-1dcb3d02f16c","type":"text/javascript","exec":["const remote = pm.environment.get('remote')","","if (remote == 'true') {","    const token = pm.cookies.get('XSRF-TOKEN')","","    if (token) {","    pm.environment.set(\"xsrf-token\", token)","    }","","}"]}}],"variable":[{"key":"baseUrl","value":"localhost:8080"}]}