{"info":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"11169543","collectionId":"1efe00cb-c91a-4251-a3e6-8842319ed862","publishedId":"Szf9URou","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-04-22T10:18:23.000Z"},"item":[{"name":"Auth","item":[{"name":"Login","id":"ac00a95e-30e0-41b4-adc1-765a8132d223","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"email\": \"john.scott@shop.com\",\n\t\"password\": \"ImJohnScott\"\n}","options":{"raw":{"language":"json"}}},"url":"/auth/login","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["auth","login"],"query":[],"variable":[]}},"response":[{"id":"01018800-0001-498a-9472-467aa81a2320","name":"Wrong email","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"email\": \"john.scott.wrong@example.com\",\n\t\"password\": \"ImJohnScotteeeeeeee\"\n}","options":{"raw":{"language":"json"}}},"url":"/auth/login"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Wed, 22 Apr 2020 10:32:15 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.24-0ubuntu0.18.04.4"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": true,\n    \"status\": 401,\n    \"message\": \"Wrong email\"\n}"},{"id":"445224dd-1ec7-46d3-9d99-9b2e37cea36b","name":"Sucessful login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"email\": \"john.scott@example.com\",\n\t\"password\": \"ImJohnScott\"\n}","options":{"raw":{"language":"json"}}},"url":"/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Wed, 22 Apr 2020 10:29:29 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.24-0ubuntu0.18.04.4"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"user\": {\r\n        \"shop\": {\r\n            \"id\": 9,\r\n            \"longitude\": 300.123444,\r\n            \"latitude\": 100.123459,\r\n            \"address\": \"123 Fake Street\",\r\n            \"name\": \"Mr. Shop2\",\r\n            \"city\": \"New York\",\r\n            \"count\": 1\r\n        },\r\n        \"id\": 16,\r\n        \"name\": \"John\",\r\n        \"surname\": \"Scott\",\r\n        \"email\": \"john.scott@shop.com\",\r\n        \"role\": \"OWNER\",\r\n        \"shopId\": 9\r\n    },\r\n    \"accessToken\": \"9YTcZiO8kYuDh5Fow9DfJIlKodIFqUZifZG3S5felokiifx69ofdChh9CDRUijfEn5iy0Xs8n1xrEFCGB+tnxw==\"\r\n}"},{"id":"517e1e0c-382e-480f-ab10-7bb76f22399b","name":"Wrong password","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"email\": \"john.scott@example.com\",\n\t\"password\": \"ImJohnScotteeeeeeee\"\n}","options":{"raw":{"language":"json"}}},"url":"/auth/login"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Wed, 22 Apr 2020 10:30:20 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.24-0ubuntu0.18.04.4"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": true,\n    \"status\": 401,\n    \"message\": \"Wrong password\"\n}"}],"_postman_id":"ac00a95e-30e0-41b4-adc1-765a8132d223"},{"name":"Logout","id":"f50b4414-d19d-4d1f-bc1f-36a2e6743f9f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/auth/logout","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["auth","logout"],"query":[],"variable":[]}},"response":[{"id":"1c5cab1f-0f02-4f9a-bad3-2b35189ee066","name":"Logout without being logged in","originalRequest":{"method":"GET","header":[],"url":"/auth/logout"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Wed, 22 Apr 2020 10:41:34 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.24-0ubuntu0.18.04.4"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": true,\n    \"status\": 401,\n    \"message\": \"\"\n}"},{"id":"97cd432b-00d9-40b3-9176-57dd106f60f7","name":"Successful login","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer TK2G/LL+G0kPM0lUHiUWiwgTOkS5B6m4CEkE2dQ0ZXc=","type":"text"}],"url":"/auth/logout"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Wed, 22 Apr 2020 10:42:26 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.24-0ubuntu0.18.04.4"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{}"}],"_postman_id":"f50b4414-d19d-4d1f-bc1f-36a2e6743f9f"},{"name":"Sign Up","id":"291793b4-3cf4-4e47-b07a-0f10d22448ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"name\": \"John\",\n\t\"surname\": \"Scott\",\n\t\"email\": \"john@scott.com\",\n\t\"password\": \"SecurePassword\"\n}","options":{"raw":{"language":"json"}}},"url":"/auth/signup","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["auth","signup"],"query":[],"variable":[]}},"response":[{"id":"930c9208-4e40-41ff-89b6-cea217199451","name":"Sign Up","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"name\": \"John\",\n\t\"surname\": \"Scott\",\n\t\"email\": \"john@scott.com\",\n\t\"password\": \"SecurePassword\"\n}","options":{"raw":{"language":"json"}}},"url":"/auth/signup"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Sun, 10 May 2020 07:13:42 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.24-0ubuntu0.18.04.4"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"shop\": null,\n    \"id\": 24,\n    \"name\": \"John\",\n    \"surname\": \"Scott\",\n    \"email\": \"john@scott.com\",\n    \"role\": \"USER\",\n    \"shopId\": null\n}"}],"_postman_id":"291793b4-3cf4-4e47-b07a-0f10d22448ce"},{"name":"Validate email","id":"2ea3e4dc-9697-407d-b249-540a1b5e82ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/auth/validate/john.scott@example.com/VeryLongRandomCode","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["auth","validate","john.scott@example.com","VeryLongRandomCode"],"query":[],"variable":[]}},"response":[],"_postman_id":"2ea3e4dc-9697-407d-b249-540a1b5e82ff"}],"id":"0f2adb29-68cb-4526-a496-a86c973106fc","_postman_id":"0f2adb29-68cb-4526-a496-a86c973106fc","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}}},{"name":"Shop","item":[{"name":"Add shop","id":"3c3a6457-a1dc-497a-a1d8-626484b9760b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"address\": \"123 Fake Street\",\n    \"name\": \"Mr. Shop\",\n    \"latitude\": 100.123456,\n    \"longitude\": 200.123456,\n    \"city\": \"New York\"\n}","options":{"raw":{"language":"json"}}},"url":"/shops","description":"<p>Add a new shop \nAn owner account must be created separately</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["shops"],"query":[],"variable":[]}},"response":[{"id":"9830e518-4ae6-4419-a953-afed0b993e5a","name":"Add shop","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"address\": \"123 Fake Street\",\n    \"name\": \"Mr. Shop\",\n    \"latitude\": 100.123456,\n    \"longitude\": 200.123456,\n    \"city\": \"New York\"\n}","options":{"raw":{"language":"json"}}},"url":"/shops"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Wed, 22 Apr 2020 15:12:19 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.24-0ubuntu0.18.04.4"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n\t\"id\": 1,\n    \"address\": \"123 Fake Street\",\n    \"name\": \"Mr. Shop\",\n    \"latitude\": 100.123456,\n    \"longitude\": 200.123456,\n    \"city\": \"New York\",\n    \"count\": 0\n}"}],"_postman_id":"3c3a6457-a1dc-497a-a1d8-626484b9760b"},{"name":"Get near shops","id":"fef71ef0-731f-454c-b295-4cdbe0193534","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/shops/nearby?lat=10.0&lon=20.0","description":"<p>Sorted by distance</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["shops","nearby"],"query":[{"description":{"content":"<p>User's latitude</p>\n","type":"text/plain"},"key":"lat","value":"10.0"},{"description":{"content":"<p>User's longitude</p>\n","type":"text/plain"},"key":"lon","value":"20.0"}],"variable":[]}},"response":[{"id":"1e822558-3065-44a4-b5b7-e95d95deee1d","name":"Get near shops","originalRequest":{"method":"GET","header":[],"url":{"raw":"/shops/nearby?lat=10.0&lon=20.0","path":["shops","nearby"],"query":[{"key":"lat","value":"10.0","description":"User's latitude"},{"key":"lon","value":"20.0","description":"User's longitude"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Thu, 23 Apr 2020 15:30:25 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.24-0ubuntu0.18.04.4"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\r\n\t{\r\n\t\t\"id\": 9,\r\n\t\t\"longitude\": 300.123444,\r\n\t\t\"latitude\": 100.123459,\r\n\t\t\"address\": \"123 Fake Street\",\r\n\t\t\"name\": \"Mr. Shop2\",\r\n\t\t\"city\": \"New York\",\r\n\t\t\"isFavourite\": true\r\n\t},\r\n    {\r\n\t\t\"id\": 1,\r\n\t\t\"longitude\": 200.123459,\r\n\t\t\"latitude\": 100.123459,\r\n\t\t\"address\": \"123 Fake Street\",\r\n\t\t\"name\": \"Mr. Shop\",\r\n\t\t\"city\": \"New York\",\r\n\t\t\"isFavourite\": true\r\n\t}\r\n]\r\n"},{"id":"28877fdb-8f00-42e7-8255-33f7c28852ab","name":"Get near shops and search by name","originalRequest":{"method":"GET","header":[],"url":{"raw":"/shops/nearby?lat=10.0&lon=20.0&query=shop2","path":["shops","nearby"],"query":[{"key":"lat","value":"10.0","description":"User's latitude"},{"key":"lon","value":"20.0","description":"User's longitude"},{"key":"query","value":"shop2","description":"Search into shop's name"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Thu, 23 Apr 2020 15:32:35 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.24-0ubuntu0.18.04.4"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\r\n\t{\r\n\t\t\"id\": 9,\r\n\t\t\"longitude\": 300.123444,\r\n\t\t\"latitude\": 100.123459,\r\n\t\t\"address\": \"123 Fake Street\",\r\n\t\t\"name\": \"Mr. Shop2\",\r\n\t\t\"city\": \"New York\",\r\n\t\t\"isFavourite\": true\r\n\t}\r\n]"}],"_postman_id":"fef71ef0-731f-454c-b295-4cdbe0193534"},{"name":"Update a shop","id":"ed70a4c3-04d5-4737-90d1-44cd401ea643","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n\t\"latitude\": 1.0,\n\t\"longitude\": 2.0,\n\t\"name\": \"Hello\",\n\t\"address\": \"Fake street\",\n\t\"city\": \"New York\"\n}","options":{"raw":{"language":"json"}}},"url":"/shops/1","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["shops","1"],"query":[],"variable":[]}},"response":[{"id":"60a4e367-5e33-47ed-b06a-fc004b3e39e8","name":"Update a shop","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n\t\"latitude\": 1.0,\n\t\"longitude\": 2.0,\n\t\"name\": \"Hello\",\n\t\"address\": \"Fake street\",\n\t\"city\": \"New York\"\n}","options":{"raw":{"language":"json"}}},"url":"/shops/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Sun, 26 Apr 2020 06:49:36 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.24-0ubuntu0.18.04.4"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"longitude\": 2,\n    \"latitude\": 1,\n    \"address\": \"Fake street\",\n    \"name\": \"Hello\",\n    \"city\": \"New York\",\n    \"count\": 1\n}"}],"_postman_id":"ed70a4c3-04d5-4737-90d1-44cd401ea643"},{"name":"Delete a shop","id":"407ddb1f-2260-42db-9123-54090cc3c2fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/shops/1","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["shops","1"],"query":[],"variable":[]}},"response":[{"id":"8f8a7118-db6c-4368-ab21-acb87861ae02","name":"Delete a shop","originalRequest":{"method":"DELETE","header":[],"url":"/shops/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Sun, 26 Apr 2020 06:55:03 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.24-0ubuntu0.18.04.4"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"null"}],"_postman_id":"407ddb1f-2260-42db-9123-54090cc3c2fe"},{"name":"List all shops ","id":"a3a5a329-2335-4cf5-af00-8c92ce2ce2dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/shops/?page=0","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["shops",""],"query":[{"key":"page","value":"0"}],"variable":[]}},"response":[{"id":"1ff218ee-4e75-42a6-9f49-85b1a80661b6","name":"List all shops ","originalRequest":{"method":"GET","header":[],"url":{"raw":"/shops/?page=0","path":["shops",""],"query":[{"key":"page","value":"0"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Sun, 26 Apr 2020 15:08:57 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.24-0ubuntu0.18.04.4"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"page\": 0,\n    \"totalPages\": 1,\n    \"totalItems\": 1,\n    \"data\": [\n        {\n            \"id\": 9,\n            \"longitude\": 300.123444,\n            \"latitude\": 100.123459,\n            \"address\": \"123 Fake Street\",\n            \"name\": \"Mr. Shop2\",\n            \"city\": \"New York\",\n            \"count\": 1\n        }\n    ]\n}"}],"_postman_id":"a3a5a329-2335-4cf5-af00-8c92ce2ce2dd"},{"name":"Get a shop by ID","id":"13d0c5fd-394a-40f0-a464-3ad582016032","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/shops/9","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["shops","9"],"query":[],"variable":[]}},"response":[{"id":"722881e9-78cc-412e-a75e-94c7f5474de5","name":"Get a shop by ID","originalRequest":{"method":"GET","header":[],"url":"/shops/9"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Thu, 30 Apr 2020 15:24:54 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.24-0ubuntu0.18.04.4"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 9,\n    \"longitude\": 300.123444,\n    \"latitude\": 100.123459,\n    \"address\": \"123 Fake Street\",\n    \"name\": \"Mr. Shop2\",\n    \"city\": \"New York\",\n    \"count\": 1\n}"}],"_postman_id":"13d0c5fd-394a-40f0-a464-3ad582016032"}],"id":"a1f9031b-f1ed-4e19-b1b7-0969f505e89a","_postman_id":"a1f9031b-f1ed-4e19-b1b7-0969f505e89a","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}}},{"name":"Bookings","item":[{"name":"Add a new booking to a shop","id":"824b0286-0759-4133-93cc-81e95197cb7e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"/shops/1/bookings","description":"<p>User role required</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["shops","1","bookings"],"query":[],"variable":[]}},"response":[{"id":"01e9ca4b-8793-40b2-be37-399e26ba3c01","name":"Unknown shop ID","originalRequest":{"method":"POST","header":[],"url":"/shops/1009/bookings"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Sat, 25 Apr 2020 12:39:00 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.24-0ubuntu0.18.04.4"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": true,\n    \"status\": 404,\n    \"message\": \"Foreign key condition failed\"\n}"},{"id":"0db2a420-4b96-4bab-ad31-09249537513f","name":"Add a new booking to a shop","originalRequest":{"method":"POST","header":[],"url":"/shops/1/bookings"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Sat, 25 Apr 2020 12:26:51 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.24-0ubuntu0.18.04.4"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"bookingId\": 16,\r\n    \"createdAt\": 1587821587,\r\n    \"user\": {\r\n        \"id\": 11,\r\n        \"name\": \"John\",\r\n        \"surname\": \"Scott\",\r\n        \"email\": \"john.scott@user.com\",\r\n        \"role\": \"USER\",\r\n        \"shopId\": null\r\n    },\r\n    \"shop\": {\r\n        \"id\": 1,\r\n        \"longitude\": 200.123459,\r\n        \"latitude\": 100.123459,\r\n        \"address\": \"123 Fake Street\",\r\n        \"name\": \"Mr. Shop\",\r\n        \"city\": \"New York\",\r\n        \"count\": 3\r\n    }\r\n}"},{"id":"df1ce631-a3f7-42bd-be54-e72f0d302a83","name":"Duplicate booking","originalRequest":{"method":"POST","header":[],"url":"/shops/1/bookings"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Sat, 25 Apr 2020 12:27:19 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.24-0ubuntu0.18.04.4"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": true,\n    \"status\": 409,\n    \"message\": \"Duplicate value\"\n}"}],"_postman_id":"824b0286-0759-4133-93cc-81e95197cb7e"},{"name":"Get bookings by shop ID","id":"2759f338-92e5-41f8-88c4-d90eb3dc4dae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/shops/1/bookings","description":"<p>Admins can access to everything\nShop owners can only access to their own shops</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["shops","1","bookings"],"query":[],"variable":[]}},"response":[{"id":"fbe2fe66-90f2-4488-aa10-f1ecb34bd61a","name":"Get bookings by shop ID","originalRequest":{"method":"GET","header":[],"url":"/shops/1/bookings"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Sat, 25 Apr 2020 14:22:57 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.24-0ubuntu0.18.04.4"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"bookingId\": 1,\n        \"createdAt\": 1587811471,\n        \"user\": {\n            \"id\": 1,\n            \"name\": \"John\",\n            \"surname\": \"Scott\",\n            \"email\": \"john.scott@example.com\",\n            \"role\": \"ADMIN\",\n            \"shopId\": null\n        },\n        \"shop\": {\n            \"id\": 1,\n            \"longitude\": 200.123459,\n            \"latitude\": 100.123459,\n            \"address\": \"123 Fake Street\",\n            \"name\": \"Mr. Shop\",\n            \"city\": \"New York\",\n            \"count\": 1\n        }\n    },\n    {\n        \"bookingId\": 16,\n        \"createdAt\": 1587821587,\n        \"user\": {\n            \"id\": 11,\n            \"name\": \"John\",\n            \"surname\": \"Scott\",\n            \"email\": \"john.scott@user.com\",\n            \"role\": \"USER\",\n            \"shopId\": null\n        },\n        \"shop\": {\n            \"id\": 1,\n            \"longitude\": 200.123459,\n            \"latitude\": 100.123459,\n            \"address\": \"123 Fake Street\",\n            \"name\": \"Mr. Shop\",\n            \"city\": \"New York\",\n            \"count\": 3\n        }\n    }\n]"}],"_postman_id":"2759f338-92e5-41f8-88c4-d90eb3dc4dae"},{"name":"Get bookings by user ID","id":"b11a5fd4-59a5-4a97-8207-30e7d2b368cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/users/1/bookings","description":"<p>Admins can access everything</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["users","1","bookings"],"query":[],"variable":[]}},"response":[{"id":"c0f03520-7d5d-4dd9-9d22-245fadc6b474","name":"Get bookings by user ID","originalRequest":{"method":"GET","header":[],"url":"/users/1/bookings"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Sat, 25 Apr 2020 14:30:58 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.24-0ubuntu0.18.04.4"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\r\n    {\r\n        \"queueCount\": 0,\r\n        \"bookingId\": 2,\r\n        \"createdAt\": 1588581861000,\r\n        \"user\": {\r\n            \"id\": 10,\r\n            \"name\": \"Mr.\",\r\n            \"surname\": \"Boss\",\r\n            \"email\": \"mr@bee2550.com\",\r\n            \"role\": \"ADMIN\",\r\n            \"shopId\": null\r\n        },\r\n        \"shop\": {\r\n            \"id\": 9,\r\n            \"longitude\": -122.432152,\r\n            \"latitude\": 37.776104,\r\n            \"address\": \"942 Hayes Street, San Francisco, California 94117, United States\",\r\n            \"name\": \"Mr. Shop2\",\r\n            \"count\": 1\r\n        }\r\n    },\r\n    {\r\n        \"queueCount\": 2,\r\n        \"bookingId\": 1,\r\n        \"createdAt\": 1588923736000,\r\n        \"user\": {\r\n            \"id\": 10,\r\n            \"name\": \"Mr.\",\r\n            \"surname\": \"Boss\",\r\n            \"email\": \"mr@bee2550.com\",\r\n            \"role\": \"ADMIN\",\r\n            \"shopId\": null\r\n        },\r\n        \"shop\": {\r\n            \"id\": 11,\r\n            \"longitude\": 12.484326,\r\n            \"latitude\": 41.895763,\r\n            \"address\": \"Foro Traiano 86, 00187 Roma Roma, Italy\",\r\n            \"name\": \"TEST Ueeee\",\r\n            \"count\": 3\r\n        }\r\n    }\r\n]"}],"_postman_id":"b11a5fd4-59a5-4a97-8207-30e7d2b368cd"},{"name":"Delete a booking by ID","id":"6bdfb51f-f556-445c-b6b2-b23e5f346336","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/bookings/1","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["bookings","1"],"query":[],"variable":[]}},"response":[{"id":"f17ecf4a-b9a0-4e73-95ce-b714ce6c6012","name":"Delete a booking by ID","originalRequest":{"method":"DELETE","header":[],"url":"/bookings/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Sat, 25 Apr 2020 14:50:05 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.24-0ubuntu0.18.04.4"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{}"}],"_postman_id":"6bdfb51f-f556-445c-b6b2-b23e5f346336"},{"name":"Call first user in the queue","id":"d1cb8d1a-0e42-4c86-aa9f-8757e1843aa1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"/shops/33/bookings/next","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["shops","33","bookings","next"],"query":[],"variable":[]}},"response":[{"id":"8a9658ad-d940-458d-b789-c8ff1d42f4eb","name":"Call first user in the queue","originalRequest":{"method":"POST","header":[],"url":"/shops/1/bookings/next"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Sat, 25 Apr 2020 17:46:39 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.24-0ubuntu0.18.04.4"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"bookingId\": 1,\n    \"createdAt\": 1587811471,\n    \"user\": {\n        \"id\": 1,\n        \"name\": \"John\",\n        \"surname\": \"Scott\",\n        \"email\": \"john.scott@example.com\",\n        \"role\": \"ADMIN\",\n        \"shopId\": null\n    },\n    \"shop\": {\n        \"id\": 1,\n        \"longitude\": 200.123459,\n        \"latitude\": 100.123459,\n        \"address\": \"123 Fake Street\",\n        \"name\": \"Mr. Shop\",\n        \"city\": \"New York\"\n    }\n}"},{"id":"ce9bc931-97a0-4f0d-a6da-e11e4c4a7a5c","name":"Empty queue","originalRequest":{"method":"POST","header":[],"url":"/shops/1/bookings/next"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Sat, 25 Apr 2020 17:47:00 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.24-0ubuntu0.18.04.4"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"null"}],"_postman_id":"d1cb8d1a-0e42-4c86-aa9f-8757e1843aa1"},{"name":"Delete all bookings of a shop","id":"07cc4170-e5e0-45d2-94e8-e065ee4bb3c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/shops/33/bookings","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["shops","33","bookings"],"query":[],"variable":[]}},"response":[],"_postman_id":"07cc4170-e5e0-45d2-94e8-e065ee4bb3c7"}],"id":"60201689-6b56-4c31-ac5a-44c89d5cd42e","_postman_id":"60201689-6b56-4c31-ac5a-44c89d5cd42e","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}}},{"name":"User","item":[{"name":"Create a new user","id":"35f9eabe-fa06-4b6e-ac73-c711bc1d4974","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"name\": \"John\",\n\t\"surname\": \"Scott\",\n\t\"email\": \"john.scott@example.com\",\n\t\"password\": \"ImJohnScott\",\n\t\"role\": \"ADMIN\",\n    \"active\": true\n}","options":{"raw":{"language":"json"}}},"url":"/users","description":"<p>Create a new simple user\nOnly admins can create new specialized users</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["users"],"query":[],"variable":[]}},"response":[{"id":"4be97825-cd36-4a74-b906-44243031bce4","name":"Email already used","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"name\": \"John\",\n\t\"surname\": \"Scott\",\n\t\"email\": \"john.scott@example.com\",\n\t\"password\": \"ImJohnScott\"\n}","options":{"raw":{"language":"json"}}},"url":"/users"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Wed, 22 Apr 2020 10:29:56 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.24-0ubuntu0.18.04.4"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": true,\n    \"status\": 409,\n    \"message\": \"Duplicate value\"\n}"},{"id":"68dca476-a76d-42ce-942d-3586455c7385","name":"Create a new shop owner","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"name\": \"John\",\n\t\"surname\": \"Scott\",\n\t\"email\": \"john.scott@shop.com\",\n\t\"password\": \"ImJohnScott\",\n\t\"role\": \"OWNER\",\n\t\"shopId\": 1\n}","options":{"raw":{"language":"json"}}},"url":"/users"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Sun, 26 Apr 2020 10:12:38 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.24-0ubuntu0.18.04.4"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 16,\n    \"name\": \"John\",\n    \"surname\": \"Scott\",\n    \"email\": \"john.scott@shop.com\",\n    \"role\": \"OWNER\",\n    \"shopId\": 1,\n    \"shop\": {\n    \t\"id\": 1,\n    \t\"longitude\": 300.123444,\n    \t\"latitude\": 100.123459,\n    \t\"address\": \"123 Fake Street\",\n    \t\"name\": \"Mr. Shop2\",\n    \t\"city\": \"New York\",\n    \t\"count\": 1\n\t}\n}"},{"id":"816953fa-813a-41b1-b41a-853ebce42c98","name":"Create a simple user","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"name\": \"John\",\n\t\"surname\": \"Scott\",\n\t\"email\": \"john.scott@example.com\",\n\t\"password\": \"ImJohnScott\",\n\t\"role\": \"USER\"\n}","options":{"raw":{"language":"json"}}},"url":"/users"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Wed, 22 Apr 2020 10:16:42 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.24-0ubuntu0.18.04.4"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"id\": 1,\r\n    \"name\": \"John\",\r\n    \"surname\": \"Scott\",\r\n    \"email\": \"john.scott@example.com\",\r\n    \"role\": \"USER\",\r\n    \"shopId\": null\r\n}"},{"id":"d640a6b4-77e9-4cc6-933d-a97e6768b287","name":"Create a new admin","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"name\": \"John\",\n\t\"surname\": \"Scott\",\n\t\"email\": \"john.scott@admin.com\",\n\t\"password\": \"ImJohnScott\",\n\t\"role\": \"ADMIN\"\n}","options":{"raw":{"language":"json"}}},"url":"/users"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Sun, 26 Apr 2020 10:10:49 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.24-0ubuntu0.18.04.4"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 15,\n    \"name\": \"John\",\n    \"surname\": \"Scott\",\n    \"email\": \"john.scott@admin.com\",\n    \"role\": \"ADMIN\",\n    \"shopId\": null\n}"}],"_postman_id":"35f9eabe-fa06-4b6e-ac73-c711bc1d4974"},{"name":"Get a user by ID","id":"61f2b834-d79d-4625-8b89-e260b9493e37","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/users/1","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["users","1"],"query":[],"variable":[]}},"response":[{"id":"d6b67c8c-dcaa-4a29-98f1-dd4ec5c2a083","name":"Get a user by ID","originalRequest":{"method":"GET","header":[],"url":"/users/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Sun, 26 Apr 2020 10:37:29 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.24-0ubuntu0.18.04.4"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"name\": \"John\",\n    \"surname\": \"Scott\",\n    \"email\": \"john.scott@example.com\",\n    \"role\": \"ADMIN\",\n    \"shopId\": null\n}"}],"_postman_id":"61f2b834-d79d-4625-8b89-e260b9493e37"},{"name":"Get current user","id":"f8ce609b-85ca-4435-859a-8c6a573158e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/users/me","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["users","me"],"query":[],"variable":[]}},"response":[{"id":"23a6984a-b306-4f64-8a35-7f301ae39c5f","name":"Get current user","originalRequest":{"method":"GET","header":[],"url":"/users/me"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Sun, 26 Apr 2020 10:38:17 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.24-0ubuntu0.18.04.4"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\r\n\t\"shop\": {\r\n\t\t\"id\": 9,\r\n\t\t\"longitude\": 300.123444,\r\n\t\t\"latitude\": 100.123459,\r\n\t\t\"address\": \"123 Fake Street\",\r\n\t\t\"name\": \"Mr. Shop2\",\r\n\t\t\"city\": \"New York\",\r\n\t\t\"count\": 1\r\n\t},\r\n\t\"id\": 16,\r\n\t\"name\": \"John\",\r\n\t\"surname\": \"Scott\",\r\n\t\"email\": \"john.scott@shop.com\",\r\n\t\"role\": \"OWNER\",\r\n\t\"shopId\": 9\r\n}"}],"_postman_id":"f8ce609b-85ca-4435-859a-8c6a573158e0"},{"name":"Delete a user","id":"216b54a3-3003-417f-958c-b1b74962078b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/users/2","description":"<p>Admins only</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["users","2"],"query":[],"variable":[]}},"response":[],"_postman_id":"216b54a3-3003-417f-958c-b1b74962078b"},{"name":"List users","id":"aaeeb410-aeb5-4e4f-8232-a498f0ce1032","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/users?page=0","description":"<p>Only admins\nIt uses pagination</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["users"],"query":[{"key":"page","value":"0"}],"variable":[]}},"response":[{"id":"10e219e3-89c5-498e-9312-161796f569e1","name":"List users","originalRequest":{"method":"GET","header":[],"url":{"raw":"/users?page=0","path":["users"],"query":[{"key":"page","value":"0"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Sun, 26 Apr 2020 12:54:16 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.24-0ubuntu0.18.04.4"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"page\": 0,\r\n    \"totalPages\": 1,\r\n    \"totalItems\": 8,\r\n    \"data\": [\r\n        {\r\n            \"shop\": {\r\n                \"id\": 9,\r\n                \"longitude\": 300.123444,\r\n                \"latitude\": 100.123459,\r\n                \"address\": \"123 Fake Street\",\r\n                \"name\": \"Mr. Shop2\",\r\n                \"city\": \"New York\",\r\n                \"count\": 1\r\n            },\r\n            \"id\": 10,\r\n            \"name\": \"Mr.\",\r\n            \"surname\": \"Boss\",\r\n            \"email\": \"mr@bee2550.com\",\r\n            \"role\": \"OWNER\",\r\n            \"shopId\": 9\r\n        },\r\n        {\r\n            \"shop\": {\r\n                \"id\": 9,\r\n                \"longitude\": 300.123444,\r\n                \"latitude\": 100.123459,\r\n                \"address\": \"123 Fake Street\",\r\n                \"name\": \"Mr. Shop2\",\r\n                \"city\": \"New York\",\r\n                \"count\": 1\r\n            },\r\n            \"id\": 16,\r\n            \"name\": \"John\",\r\n            \"surname\": \"Scott\",\r\n            \"email\": \"john.scott@shop.com\",\r\n            \"role\": \"OWNER\",\r\n            \"shopId\": 9\r\n        },\r\n        {\r\n            \"shop\": null,\r\n            \"id\": 1,\r\n            \"name\": \"John\",\r\n            \"surname\": \"Scott\",\r\n            \"email\": \"john.scott@example.com\",\r\n            \"role\": \"ADMIN\",\r\n            \"shopId\": null\r\n        },\r\n        {\r\n            \"shop\": {\r\n                \"id\": 6,\r\n                \"longitude\": null,\r\n                \"latitude\": null,\r\n                \"address\": null,\r\n                \"name\": null,\r\n                \"city\": null,\r\n                \"count\": null\r\n            },\r\n            \"id\": 7,\r\n            \"name\": \"Mr.\",\r\n            \"surname\": \"Boss\",\r\n            \"email\": \"mr@boss2250.com\",\r\n            \"role\": \"OWNER\",\r\n            \"shopId\": 6\r\n        },\r\n        {\r\n            \"shop\": {\r\n                \"id\": 7,\r\n                \"longitude\": null,\r\n                \"latitude\": null,\r\n                \"address\": null,\r\n                \"name\": null,\r\n                \"city\": null,\r\n                \"count\": null\r\n            },\r\n            \"id\": 8,\r\n            \"name\": \"Mr.\",\r\n            \"surname\": \"Boss\",\r\n            \"email\": \"mr@boss22550.com\",\r\n            \"role\": \"OWNER\",\r\n            \"shopId\": 7\r\n        },\r\n        {\r\n            \"shop\": null,\r\n            \"id\": 11,\r\n            \"name\": \"John\",\r\n            \"surname\": \"Scott\",\r\n            \"email\": \"john.scott@user.com\",\r\n            \"role\": \"USER\",\r\n            \"shopId\": null\r\n        },\r\n        {\r\n            \"shop\": null,\r\n            \"id\": 15,\r\n            \"name\": \"John\",\r\n            \"surname\": \"Scott\",\r\n            \"email\": \"john.scott@admin.com\",\r\n            \"role\": \"ADMIN\",\r\n            \"shopId\": null\r\n        },\r\n        {\r\n            \"shop\": null,\r\n            \"id\": 18,\r\n            \"name\": \"Simone\",\r\n            \"surname\": \"Sestito\",\r\n            \"email\": \"a@a.com\",\r\n            \"role\": \"USER\",\r\n            \"shopId\": null\r\n        }\r\n    ]\r\n}"},{"id":"40d410d3-9f03-45ee-89ad-8ef6afcdf62e","name":"List users filtering by name","originalRequest":{"method":"GET","header":[],"url":{"raw":"/users?page=0&query=Mr. Bo","path":["users"],"query":[{"key":"page","value":"0"},{"key":"query","value":"Mr. Bo"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Sat, 02 May 2020 17:29:52 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.24-0ubuntu0.18.04.4"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"page\": 0,\r\n    \"totalPages\": 1,\r\n    \"totalItems\": 3,\r\n    \"data\": [\r\n        {\r\n            \"shop\": {\r\n                \"id\": 9,\r\n                \"longitude\": 300.123444,\r\n                \"latitude\": 100.123459,\r\n                \"address\": \"123 Fake Street\",\r\n                \"name\": \"Mr. Shop2\",\r\n                \"city\": \"New York\",\r\n                \"count\": 1\r\n            },\r\n            \"id\": 10,\r\n            \"name\": \"Mr.\",\r\n            \"surname\": \"Boss\",\r\n            \"email\": \"mr@bee2550.com\",\r\n            \"role\": \"OWNER\",\r\n            \"shopId\": 9\r\n        },\r\n        {\r\n            \"shop\": {\r\n                \"id\": 6,\r\n                \"longitude\": null,\r\n                \"latitude\": null,\r\n                \"address\": null,\r\n                \"name\": null,\r\n                \"city\": null,\r\n                \"count\": null\r\n            },\r\n            \"id\": 7,\r\n            \"name\": \"Mr.\",\r\n            \"surname\": \"Boss\",\r\n            \"email\": \"mr@boss2250.com\",\r\n            \"role\": \"OWNER\",\r\n            \"shopId\": 6\r\n        },\r\n        {\r\n            \"shop\": {\r\n                \"id\": 7,\r\n                \"longitude\": null,\r\n                \"latitude\": null,\r\n                \"address\": null,\r\n                \"name\": null,\r\n                \"city\": null,\r\n                \"count\": null\r\n            },\r\n            \"id\": 8,\r\n            \"name\": \"Mr.\",\r\n            \"surname\": \"Boss\",\r\n            \"email\": \"mr@boss22550.com\",\r\n            \"role\": \"OWNER\",\r\n            \"shopId\": 7\r\n        }\r\n    ]\r\n}"},{"id":"b0c597ba-0cc3-4b2b-bc54-fccdd5646591","name":"List users filtering by shop ID","originalRequest":{"method":"GET","header":[],"url":{"raw":"/users?page=0&shopId=9","path":["users"],"query":[{"key":"page","value":"0"},{"key":"shopId","value":"9"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Sat, 02 May 2020 18:07:03 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.24-0ubuntu0.18.04.4"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"page\": 0,\r\n    \"totalPages\": 1,\r\n    \"totalItems\": 2,\r\n    \"data\": [\r\n        {\r\n            \"shop\": {\r\n                \"id\": 9,\r\n                \"longitude\": 300.123444,\r\n                \"latitude\": 100.123459,\r\n                \"address\": \"123 Fake Street\",\r\n                \"name\": \"Mr. Shop2\",\r\n                \"city\": \"New York\",\r\n                \"count\": 1\r\n            },\r\n            \"id\": 10,\r\n            \"name\": \"Mr.\",\r\n            \"surname\": \"Boss\",\r\n            \"email\": \"mr@bee2550.com\",\r\n            \"role\": \"OWNER\",\r\n            \"shopId\": 9\r\n        },\r\n        {\r\n            \"shop\": {\r\n                \"id\": 9,\r\n                \"longitude\": 300.123444,\r\n                \"latitude\": 100.123459,\r\n                \"address\": \"123 Fake Street\",\r\n                \"name\": \"Mr. Shop2\",\r\n                \"city\": \"New York\",\r\n                \"count\": 1\r\n            },\r\n            \"id\": 16,\r\n            \"name\": \"John\",\r\n            \"surname\": \"Scott\",\r\n            \"email\": \"john.scott@shop.com\",\r\n            \"role\": \"OWNER\",\r\n            \"shopId\": 9\r\n        }\r\n    ]\r\n}"}],"_postman_id":"aaeeb410-aeb5-4e4f-8232-a498f0ce1032"},{"name":"Update user","id":"6f5850f7-f174-4571-8408-2104467778a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"John\",\n    \"surname\": \"Scott\",\n    \"email\": \"a@a.co\",\n    \"role\": \"OWNER\",\n    \"shopId\": 1,\n    \"active\": true\n}","options":{"raw":{"language":"json"}}},"url":"/users/16","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["users","16"],"query":[],"variable":[]}},"response":[],"_postman_id":"6f5850f7-f174-4571-8408-2104467778a7"},{"name":"Update current user","id":"d8deb14d-26af-427d-8092-074b8c824719","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Paul\",\n    \"surname\": \"Scott\",\n    \"email\": \"john.scott@shop.com\"\n}","options":{"raw":{"language":"json"}}},"url":"/users/me","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["users","me"],"query":[],"variable":[]}},"response":[{"id":"82e59ccf-6a3c-4f1e-b5ed-28a29dd366fd","name":"Update current user","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Paul\",\n    \"surname\": \"Scott\",\n    \"email\": \"john.scott@shop.com\"\n}","options":{"raw":{"language":"json"}}},"url":"/users/me"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Wed, 13 May 2020 09:51:47 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.30-1+ubuntu18.04.1+deb.sury.org+1"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"shop\": {\n        \"id\": 34,\n        \"longitude\": 12.54223,\n        \"latitude\": 41.971184,\n        \"address\": \"Viale Franco Arcalli, 00139 Roma Roma, Italy\",\n        \"name\": \"Galleria Porta Di Roma\",\n        \"count\": 0\n    },\n    \"id\": 16,\n    \"name\": \"Paul\",\n    \"surname\": \"Scott\",\n    \"email\": \"john.scott@shop.com\",\n    \"role\": \"OWNER\",\n    \"shopId\": 34\n}"}],"_postman_id":"d8deb14d-26af-427d-8092-074b8c824719"}],"id":"3299f098-3882-45c8-a617-911170360de2","_postman_id":"3299f098-3882-45c8-a617-911170360de2","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}}},{"name":"Favourites","item":[{"name":"Get user's favourites","id":"97ecbccb-ff78-45a3-8421-4739d8f88522","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/users/1/favourites","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["users","1","favourites"],"query":[],"variable":[]}},"response":[{"id":"e0679ef2-d2c3-4de3-a1fb-515fa4e8aafc","name":"Get user's favourites","originalRequest":{"method":"GET","header":[],"url":"/users/1/favourites"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Sun, 26 Apr 2020 15:00:12 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.24-0ubuntu0.18.04.4"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 9,\n        \"longitude\": 300.123444,\n        \"latitude\": 100.123459,\n        \"address\": \"123 Fake Street\",\n        \"name\": \"Mr. Shop2\",\n        \"city\": \"New York\",\n        \"count\": 0\n    }\n]"}],"_postman_id":"97ecbccb-ff78-45a3-8421-4739d8f88522"},{"name":"Add a new favourite","id":"71162ebf-fe98-4624-8d41-d134ee9f49ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"/users/1/favourites/9","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["users","1","favourites","9"],"query":[],"variable":[]}},"response":[{"id":"ac2d03b9-b814-4024-ba72-791ab54a499e","name":"Add a new favourite","originalRequest":{"method":"POST","header":[],"url":"/users/1/favourites/9"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Sun, 26 Apr 2020 14:59:53 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.24-0ubuntu0.18.04.4"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"null"}],"_postman_id":"71162ebf-fe98-4624-8d41-d134ee9f49ec"},{"name":"Remove user's favourites","id":"c1d598e0-0167-4e49-9b1e-93c71ba06268","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/users/1/favourites/2","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["users","1","favourites","2"],"query":[],"variable":[]}},"response":[{"id":"015020e6-7c35-4beb-b3b1-5ac14ea88a3a","name":"Remove user's favourites","originalRequest":{"method":"DELETE","header":[],"url":"/users/1/favourites/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Sun, 26 Apr 2020 15:16:00 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.24-0ubuntu0.18.04.4"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"null"}],"_postman_id":"c1d598e0-0167-4e49-9b1e-93c71ba06268"}],"id":"a1746aea-b17d-48d7-9cbf-9871cc29ce02","description":"<p>User's favourite shops</p>\n","_postman_id":"a1746aea-b17d-48d7-9cbf-9871cc29ce02","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}}},{"name":"FCM","item":[{"name":"Add FCM token","id":"55b6f4b6-2cf9-4680-8bd8-4216213d3435","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"token\": \"AAAABBBBBCCCCC:1234567890\"\n}","options":{"raw":{"language":"json"}}},"url":"/users/me/fcm","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["users","me","fcm"],"query":[],"variable":[]}},"response":[{"id":"43132840-4fef-4beb-96d6-3b90b6c79271","name":"Add FCM token","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"token\": \"AAAABBBBBCCCCC:1234567890\"\n}","options":{"raw":{"language":"json"}}},"url":"/users/me/fcm"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Sun, 10 May 2020 11:04:04 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.24-0ubuntu0.18.04.4"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"null"}],"_postman_id":"55b6f4b6-2cf9-4680-8bd8-4216213d3435"}],"id":"299e11e5-be17-40ea-8d0b-b0ccb18f289a","description":"<p>Firebase Cloud Messaging related endpoints</p>\n","_postman_id":"299e11e5-be17-40ea-8d0b-b0ccb18f289a","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}}},{"name":"Sessions","item":[{"name":"List current user's session","id":"3d4c8494-9ed7-4a96-a402-58e79c1a5350","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/users/me/sessions","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["users","me","sessions"],"query":[],"variable":[]}},"response":[{"id":"8365ed83-0479-4c27-8717-8ff009073c47","name":"List current user's session","originalRequest":{"method":"GET","header":[],"url":"/users/me/sessions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Wed, 13 May 2020 10:52:39 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.30-1+ubuntu18.04.1+deb.sury.org+1"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 59,\n        \"loginDate\": 0,\n        \"lastUsageDate\": 0,\n        \"currentSession\": true\n    },\n    {\n        \"id\": 69,\n        \"loginDate\": 0,\n        \"lastUsageDate\": 0,\n        \"currentSession\": false\n    }\n]"}],"_postman_id":"3d4c8494-9ed7-4a96-a402-58e79c1a5350"},{"name":"Revoke session","id":"796b3c16-c172-4a20-bc18-026b4f2a7017","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/sessions/69","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["sessions","69"],"query":[],"variable":[]}},"response":[{"id":"eeb1fa09-0996-4d3d-aa2a-494135c29f17","name":"Revoke session","originalRequest":{"method":"DELETE","header":[],"url":"/sessions/69"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:1234"},{"key":"Date","value":"Wed, 13 May 2020 10:53:13 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.2.30-1+ubuntu18.04.1+deb.sury.org+1"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"null"}],"_postman_id":"796b3c16-c172-4a20-bc18-026b4f2a7017"}],"id":"214a66f1-b6c3-4374-b466-e345e4bc94f2","_postman_id":"214a66f1-b6c3-4374-b466-e345e4bc94f2","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}}},{"name":"Products","item":[{"name":"Get all products of a shop","id":"f70652fa-74ca-4ad0-bf28-689342ab52dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/shops/17/products","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["shops","17","products"],"query":[],"variable":[]}},"response":[{"id":"b79d85a3-31eb-4ab6-82ee-fcc9a36eedeb","name":"Get all products of a shop","originalRequest":{"method":"GET","header":[],"url":"/shops/17/products"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 03 Jun 2020 08:46:32 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"031af5677f0000be46c9b1f200000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"59d824ebffeebe46-MXP"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3-27=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"name\": \"Test\",\n        \"ean\": \"7501031311309\",\n        \"price\": 13.5\n    }\n]"}],"_postman_id":"f70652fa-74ca-4ad0-bf28-689342ab52dd"},{"name":"Add product to a shop","id":"703debd6-2d57-4a78-8b6e-ed8eed802b10","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Hello\",\n\t\"ean\": \"7501031311300\",\n\t\"price\": 20.0\n}","options":{"raw":{"language":"json"}}},"url":"/products","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["products"],"query":[],"variable":[]}},"response":[{"id":"49b3f9da-6270-4a44-9200-c6ebab16811a","name":"Add product to a shop","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Hello\",\n\t\"ean\": \"7501031311300\",\n\t\"price\": 20.0\n}","options":{"raw":{"language":"json"}}},"url":"/products"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 03 Jun 2020 08:50:05 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"031af8a9050000be46c9b6e200000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"59d82a21aea3be46-MXP"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3-27=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 4,\n    \"name\": \"Hello\",\n    \"ean\": \"7501031311300\",\n    \"price\": 20\n}"}],"_postman_id":"703debd6-2d57-4a78-8b6e-ed8eed802b10"},{"name":"Delete a product of mine","id":"fecef8d5-b603-449c-8c54-11a82544003f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/products/1","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["products","1"],"query":[],"variable":[]}},"response":[{"id":"2d54801a-8517-4206-9ada-188debdcdd51","name":"Delete a product of mine","originalRequest":{"method":"DELETE","header":[],"url":"/products/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 03 Jun 2020 08:51:11 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"031af9a98f0000be46c9b77200000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"59d82bbc1c9abe46-MXP"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3-27=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"null"}],"_postman_id":"fecef8d5-b603-449c-8c54-11a82544003f"},{"name":"Edit a product of mine","id":"08599d2f-2ad0-4474-a70d-57910852fdb0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Hello\",\n\t\"ean\": \"7501031311309\",\n\t\"price\": 20.5\n}","options":{"raw":{"language":"json"}}},"url":"/products/4","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["products","4"],"query":[],"variable":[]}},"response":[{"id":"28e2c411-1580-49ce-8349-196f394069d7","name":"Edit a product of mine","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Hello\",\n\t\"ean\": \"7501031311309\",\n\t\"price\": 20.5\n}","options":{"raw":{"language":"json"}}},"url":"/products/4"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 03 Jun 2020 08:52:42 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"031afb0e050000be46c9bb0200000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"59d82df66f27be46-MXP"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3-27=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 4,\n    \"name\": \"Hello\",\n    \"ean\": \"7501031311309\",\n    \"price\": 20.5\n}"}],"_postman_id":"08599d2f-2ad0-4474-a70d-57910852fdb0"}],"id":"f96f03e8-e058-4eb3-b8f1-44b4fa75877e","_postman_id":"f96f03e8-e058-4eb3-b8f1-44b4fa75877e","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}}},{"name":"Shopping List","item":[{"name":"Create a shopping list","id":"0e8b8f72-4def-446e-9796-f5c9b6acc686","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"productIds\": [\n\t\t1,\n\t\t4\n\t]\n}","options":{"raw":{"language":"json"}}},"url":"/lists","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["lists"],"query":[],"variable":[]}},"response":[{"id":"1c259e76-5025-4863-af6b-d77af237323e","name":"Create a shopping list","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"productIds\": [\n\t\t1,\n\t\t4\n\t]\n}","options":{"raw":{"language":"json"}}},"url":"/lists"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 03 Jun 2020 09:06:35 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"031b07c0b50000be46c9932200000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"59d842478b65be46-MXP"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3-27=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"id\": 3,\r\n    \"createdAt\": 1591174692000,\r\n    \"userId\": 4,\r\n    \"isReady\": false,\r\n    \"shop\": {\r\n        \"id\": 17,\r\n        \"longitude\": 12.586009,\r\n        \"latitude\": 41.900032,\r\n        \"address\": \"Viale Giorgio De Chirico 86, 00155 Roma Roma, Italy\",\r\n        \"name\": \"Carrefour\",\r\n        \"count\": 2\r\n    },\r\n    \"total\": 13.5,\r\n    \"products\": [\r\n        {\r\n            \"id\": 1,\r\n            \"name\": \"Test\",\r\n            \"ean\": \"7501031311309\",\r\n            \"price\": 13.5\r\n        }\r\n    ]\r\n}"}],"_postman_id":"0e8b8f72-4def-446e-9796-f5c9b6acc686"},{"name":"Get my shopping lists","id":"cd8d2b95-715f-4e4f-be4a-ba65eb73de1f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/users/me/lists","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["users","me","lists"],"query":[],"variable":[]}},"response":[{"id":"363df40e-2e7a-4c3a-a096-82dfc2175d08","name":"Get my shopping lists","originalRequest":{"method":"GET","header":[],"url":"/users/me/lists"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 03 Jun 2020 09:18:12 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"031b1265680000be46c9bd3200000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"59d8534f0b17be46-MXP"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3-27=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"[\r\n    {\r\n        \"id\": 4,\r\n        \"createdAt\": 1591174831000,\r\n        \"userId\": 4,\r\n        \"isReady\": false,\r\n        \"shop\": {\r\n            \"id\": 17,\r\n            \"longitude\": 12.586009,\r\n            \"latitude\": 41.900032,\r\n            \"address\": \"Viale Giorgio De Chirico 86, 00155 Roma Roma, Italy\",\r\n            \"name\": \"Carrefour\",\r\n            \"count\": 2\r\n        },\r\n        \"total\": 13.5,\r\n        \"products\": [\r\n            {\r\n                \"id\": 1,\r\n                \"name\": \"Test\",\r\n                \"ean\": \"7501031311309\",\r\n                \"price\": 13.5\r\n            }\r\n        ]\r\n    },\r\n    {\r\n        \"id\": 5,\r\n        \"createdAt\": 1591174914000,\r\n        \"userId\": 4,\r\n        \"isReady\": false,\r\n        \"shop\": {\r\n            \"id\": 17,\r\n            \"longitude\": 12.586009,\r\n            \"latitude\": 41.900032,\r\n            \"address\": \"Viale Giorgio De Chirico 86, 00155 Roma Roma, Italy\",\r\n            \"name\": \"Carrefour\",\r\n            \"count\": 2\r\n        },\r\n        \"total\": 13.5,\r\n        \"products\": [\r\n            {\r\n                \"id\": 1,\r\n                \"name\": \"Test\",\r\n                \"ean\": \"7501031311309\",\r\n                \"price\": 13.5\r\n            }\r\n        ]\r\n    },\r\n    {\r\n        \"id\": 6,\r\n        \"createdAt\": 1591175082000,\r\n        \"userId\": 4,\r\n        \"isReady\": false,\r\n        \"shop\": {\r\n            \"id\": 17,\r\n            \"longitude\": 12.586009,\r\n            \"latitude\": 41.900032,\r\n            \"address\": \"Viale Giorgio De Chirico 86, 00155 Roma Roma, Italy\",\r\n            \"name\": \"Carrefour\",\r\n            \"count\": 2\r\n        },\r\n        \"total\": 34,\r\n        \"products\": [\r\n            {\r\n                \"id\": 1,\r\n                \"name\": \"Test\",\r\n                \"ean\": \"7501031311309\",\r\n                \"price\": 13.5\r\n            },\r\n            {\r\n                \"id\": 4,\r\n                \"name\": \"Hello\",\r\n                \"ean\": \"7501031311300\",\r\n                \"price\": 20.5\r\n            }\r\n        ]\r\n    },\r\n    {\r\n        \"id\": 7,\r\n        \"createdAt\": 1591175138000,\r\n        \"userId\": 4,\r\n        \"isReady\": false,\r\n        \"shop\": {\r\n            \"id\": 17,\r\n            \"longitude\": 12.586009,\r\n            \"latitude\": 41.900032,\r\n            \"address\": \"Viale Giorgio De Chirico 86, 00155 Roma Roma, Italy\",\r\n            \"name\": \"Carrefour\",\r\n            \"count\": 2\r\n        },\r\n        \"total\": 34,\r\n        \"products\": [\r\n            {\r\n                \"id\": 1,\r\n                \"name\": \"Test\",\r\n                \"ean\": \"7501031311309\",\r\n                \"price\": 13.5\r\n            },\r\n            {\r\n                \"id\": 4,\r\n                \"name\": \"Hello\",\r\n                \"ean\": \"7501031311300\",\r\n                \"price\": 20.5\r\n            }\r\n        ]\r\n    },\r\n    {\r\n        \"id\": 8,\r\n        \"createdAt\": 1591175195000,\r\n        \"userId\": 4,\r\n        \"isReady\": false,\r\n        \"shop\": {\r\n            \"id\": 17,\r\n            \"longitude\": 12.586009,\r\n            \"latitude\": 41.900032,\r\n            \"address\": \"Viale Giorgio De Chirico 86, 00155 Roma Roma, Italy\",\r\n            \"name\": \"Carrefour\",\r\n            \"count\": 2\r\n        },\r\n        \"total\": 34,\r\n        \"products\": [\r\n            {\r\n                \"id\": 1,\r\n                \"name\": \"Test\",\r\n                \"ean\": \"7501031311309\",\r\n                \"price\": 13.5\r\n            },\r\n            {\r\n                \"id\": 4,\r\n                \"name\": \"Hello\",\r\n                \"ean\": \"7501031311300\",\r\n                \"price\": 20.5\r\n            }\r\n        ]\r\n    }\r\n]"}],"_postman_id":"cd8d2b95-715f-4e4f-be4a-ba65eb73de1f"},{"name":"Delete or cancel a list","id":"aa36e541-2cd3-4d25-a1c5-3a68763750a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/lists/2","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["lists","2"],"query":[],"variable":[]}},"response":[],"_postman_id":"aa36e541-2cd3-4d25-a1c5-3a68763750a2"},{"name":"Set a shopping list as ready","id":"433672ab-557f-459e-b7ec-0f9481678e60","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"/lists/3","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["lists","3"],"query":[],"variable":[]}},"response":[{"id":"4ac9e68e-c54a-476d-8543-830db1f699ba","name":"Set a shopping list as ready","originalRequest":{"method":"POST","header":[],"url":"/lists/3"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 03 Jun 2020 09:30:29 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"031b1da3910000be46c9b0f200000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"59d8654c1fcbbe46-MXP"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3-27=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"id\": 3,\r\n    \"createdAt\": 1591174692000,\r\n    \"userId\": 4,\r\n    \"isReady\": true,\r\n    \"shop\": {\r\n        \"id\": 17,\r\n        \"longitude\": 12.586009,\r\n        \"latitude\": 41.900032,\r\n        \"address\": \"Viale Giorgio De Chirico 86, 00155 Roma Roma, Italy\",\r\n        \"name\": \"Carrefour\",\r\n        \"count\": 2\r\n    },\r\n    \"total\": 13.5,\r\n    \"products\": [\r\n        {\r\n            \"id\": 1,\r\n            \"name\": \"Test\",\r\n            \"ean\": \"7501031311309\",\r\n            \"price\": 13.5\r\n        }\r\n    ]\r\n}"}],"_postman_id":"433672ab-557f-459e-b7ec-0f9481678e60"},{"name":"Get orders on my shop","id":"262cbd0f-fd01-497a-a616-5f8b693a67ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/shops/me/lists","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}},"urlObject":{"path":["shops","me","lists"],"query":[],"variable":[]}},"response":[{"id":"7f7a872b-0c11-43ec-be14-0c28b5721523","name":"Get orders on my shop","originalRequest":{"method":"GET","header":[],"url":"/shops/me/lists"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 04 Jun 2020 11:37:44 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"0320b880c200000f86aebf3200000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"59e15d146d290f86-MXP"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3-27=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 5,\n        \"createdAt\": 1591174914000,\n        \"userId\": 4,\n        \"userName\": \"John\",\n        \"isReady\": false,\n        \"shop\": {\n            \"id\": 17,\n            \"longitude\": 12.586009,\n            \"latitude\": 41.900032,\n            \"address\": \"Viale Giorgio De Chirico 86, 00155 Roma Roma, Italy\",\n            \"name\": \"Carrefour\",\n            \"count\": 2\n        },\n        \"total\": 13.5,\n        \"products\": [\n            {\n                \"id\": 1,\n                \"name\": \"Test\",\n                \"ean\": \"7501031311309\",\n                \"price\": 13.5\n            }\n        ]\n    },\n    {\n        \"id\": 6,\n        \"createdAt\": 1591175082000,\n        \"userId\": 4,\n        \"userName\": \"John\",\n        \"isReady\": false,\n        \"shop\": {\n            \"id\": 17,\n            \"longitude\": 12.586009,\n            \"latitude\": 41.900032,\n            \"address\": \"Viale Giorgio De Chirico 86, 00155 Roma Roma, Italy\",\n            \"name\": \"Carrefour\",\n            \"count\": 2\n        },\n        \"total\": 13.5,\n        \"products\": [\n            {\n                \"id\": 1,\n                \"name\": \"Test\",\n                \"ean\": \"7501031311309\",\n                \"price\": 13.5\n            }\n        ]\n    },\n    {\n        \"id\": 7,\n        \"createdAt\": 1591175138000,\n        \"userId\": 4,\n        \"userName\": \"John\",\n        \"isReady\": false,\n        \"shop\": {\n            \"id\": 17,\n            \"longitude\": 12.586009,\n            \"latitude\": 41.900032,\n            \"address\": \"Viale Giorgio De Chirico 86, 00155 Roma Roma, Italy\",\n            \"name\": \"Carrefour\",\n            \"count\": 2\n        },\n        \"total\": 13.5,\n        \"products\": [\n            {\n                \"id\": 1,\n                \"name\": \"Test\",\n                \"ean\": \"7501031311309\",\n                \"price\": 13.5\n            }\n        ]\n    },\n    {\n        \"id\": 8,\n        \"createdAt\": 1591175195000,\n        \"userId\": 4,\n        \"userName\": \"John\",\n        \"isReady\": false,\n        \"shop\": {\n            \"id\": 17,\n            \"longitude\": 12.586009,\n            \"latitude\": 41.900032,\n            \"address\": \"Viale Giorgio De Chirico 86, 00155 Roma Roma, Italy\",\n            \"name\": \"Carrefour\",\n            \"count\": 2\n        },\n        \"total\": 13.5,\n        \"products\": [\n            {\n                \"id\": 1,\n                \"name\": \"Test\",\n                \"ean\": \"7501031311309\",\n                \"price\": 13.5\n            }\n        ]\n    },\n    {\n        \"id\": 9,\n        \"createdAt\": 1591266947000,\n        \"userId\": 4,\n        \"userName\": \"John\",\n        \"isReady\": false,\n        \"shop\": {\n            \"id\": 17,\n            \"longitude\": 12.586009,\n            \"latitude\": 41.900032,\n            \"address\": \"Viale Giorgio De Chirico 86, 00155 Roma Roma, Italy\",\n            \"name\": \"Carrefour\",\n            \"count\": 2\n        },\n        \"total\": 13.5,\n        \"products\": [\n            {\n                \"id\": 1,\n                \"name\": \"Test\",\n                \"ean\": \"7501031311309\",\n                \"price\": 13.5\n            }\n        ]\n    }\n]"}],"_postman_id":"262cbd0f-fd01-497a-a616-5f8b693a67ec"}],"id":"78721897-f77f-4ad7-bb0b-0886d172bf94","_postman_id":"78721897-f77f-4ad7-bb0b-0886d172bf94","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]},"isInherited":true,"source":{"_postman_id":"1efe00cb-c91a-4251-a3e6-8842319ed862","id":"1efe00cb-c91a-4251-a3e6-8842319ed862","name":"Shops Queue API","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]}},"event":[{"listen":"prerequest","script":{"id":"74ca8b93-9ca2-4b02-8aba-35e8e3ae52ba","type":"text/javascript","exec":["pm.request.url = 'https://shopsqueue.simonesestito.com' + pm.request.url",""]}},{"listen":"test","script":{"id":"4893eb15-67cd-4b98-891a-8481a5bb942e","type":"text/javascript","exec":[""]}}],"variable":[{"key":"ADMIN_TOKEN","value":"xFD15KWIiwbRhAjMUHie1q3waUhCMClJdt4f3bzfenmJPVfRQVBrKywMrYzV+7coUwqANBeSDiKPf8wATmu6NQ=="}]}