{"info":{"_postman_id":"d863aec6-46cd-74ae-3055-b713aaf1e2a6","name":"Icaro","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"3364668","collectionId":"d863aec6-46cd-74ae-3055-b713aaf1e2a6","publishedId":"7LjC4mU","public":true,"customColor":{"top-bar":"303030","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2018-02-01T13:49:43.000Z"},"item":[{"name":"Manager","item":[{"name":"/accounts","id":"0766e313-16f5-37d9-85df-020ef3aa0076","request":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{hostname}}/api/accounts?page=:page&limit=:limit&hotspot=:hotspot_id","description":"<p>Get list of all account</p>\n","urlObject":{"protocol":"https","path":["api","accounts"],"host":["{{hostname}}"],"query":[{"key":"page","value":":page"},{"key":"limit","value":":limit"},{"key":"hotspot","value":":hotspot_id"}],"variable":[]}},"response":[{"id":"f5aebb30-6f6d-210f-e094-e55662e7af7c","name":"/accounts","originalRequest":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"https://{{hostname}}/api/accounts?page=1&limit=25","protocol":"https","host":["{{hostname}}"],"path":["api","accounts"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"25"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"data\": [\n        {\n            \"id\": 2,\n            \"creator_id\": 1,\n            \"uuid\": \"uuid-gen-12345\",\n            \"type\": \"reseller\",\n            \"name\": \"My Name\",\n            \"username\": \"firstuser\",\n            \"password\": \"mypass\",\n            \"email\": \"test@example.org\",\n            \"created\": \"2017-12-20T13:59:05Z\",\n            \"hotspot_id\": 1,\n            \"hotspot_name\": \"test\",\n            \"subscription_plan_id\": 1,\n            \"subscription_plan_name\": \"free\",\n            \"subscription\": {\n                \"id\": 1,\n                \"valid_from\": \"0001-01-01T00:00:00Z\",\n                \"valid_until\": \"0001-01-01T00:00:00Z\",\n                \"created\": \"0001-01-01T00:00:00Z\",\n                \"account_id\": 1,\n                \"subscription_plan\": {\n                    \"id\": 1,\n                    \"code\": \"free\",\n                    \"name\": \"test\",\n                    \"description\": \"my plan\",\n                    \"price\": 0,\n                    \"period\": 365,\n                    \"included_sms\": 300,\n                    \"max_units\": 10,\n                    \"advanced_report\": false,\n                    \"wings_customization\": false,\n                    \"social_analytics\": false\n                },\n                \"expired\": true\n            }\n        },\n        ...\n    ],\n    \"total\": 50\n}"}],"_postman_id":"0766e313-16f5-37d9-85df-020ef3aa0076"},{"name":"/accounts/:id","id":"5697979a-92d4-39fa-3ec9-44bcedbe162a","request":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":"https://{{hostname}}/api/accounts/:id","description":"<p>Get account detail by its id</p>\n","urlObject":{"protocol":"https","path":["api","accounts",":id"],"host":["{{hostname}}"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"1c75b0ef-9e50-88a0-5ba3-0b31d294f2ef","name":"/accounts/:id","originalRequest":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":"https://{{hostname}}/api/accounts/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n            \"id\": 2,\n            \"creator_id\": 1,\n            \"uuid\": \"uuid-gen-12345\",\n            \"type\": \"reseller\",\n            \"name\": \"My Name\",\n            \"username\": \"firstuser\",\n            \"password\": \"mypass\",\n            \"email\": \"test@example.org\",\n            \"created\": \"2017-12-20T13:59:05Z\",\n            \"hotspot_id\": 1,\n            \"hotspot_name\": \"test\",\n            \"subscription_plan_id\": 1,\n            \"subscription_plan_name\": \"free\",\n            \"subscription\": {\n                \"id\": 1,\n                \"valid_from\": \"0001-01-01T00:00:00Z\",\n                \"valid_until\": \"0001-01-01T00:00:00Z\",\n                \"created\": \"0001-01-01T00:00:00Z\",\n                \"account_id\": 1,\n                \"subscription_plan\": {\n                    \"id\": 1,\n                    \"code\": \"free\",\n                    \"name\": \"test\",\n                    \"description\": \"my plan\",\n                    \"price\": 0,\n                    \"period\": 365,\n                    \"included_sms\": 300,\n                    \"max_units\": 10,\n                    \"advanced_report\": false,\n                    \"wings_customization\": false,\n                    \"social_analytics\": false\n                },\n                \"expired\": true\n            }\n        }"}],"_postman_id":"5697979a-92d4-39fa-3ec9-44bcedbe162a"},{"name":"/accounts","id":"646dbd15-f76f-0bca-05f3-b15d43f4e7f6","request":{"method":"POST","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"uuid\": \"string\",\n    \"type\": \"string\",\n    \"name\": \"string\",\n    \"username\": \"string\",\n    \"password\": \"string\",\n    \"email\": \"string\",\n    \"hotspot_id\": \"integer, if type != customer or desk use 0\",\n    \"subscription_plan_id\": \"integer, if type == reseller\"\n}"},"url":"https://{{hostname}}/api/accounts","description":"<p>Create a account</p>\n","urlObject":{"protocol":"https","path":["api","accounts"],"host":["{{hostname}}"],"query":[],"variable":[]}},"response":[{"id":"0f8756ef-423a-7aa8-58a2-d8190c8bf3f2","name":"/accounts","originalRequest":{"method":"POST","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"uuid\": \"e659c57e-5276-4b32-9a0e-c7c7b1fea199\",\n    \"type\": \"reseller\",\n    \"name\": \"account one\",\n    \"username\": \"accountone\",\n    \"password\": \"mycoolpassword\",\n    \"email\": \"accountone@example.com\",\n    \"hotspot_id\": 0,\n    \"subscription_plan_id\": 1\n}"},"url":"https://{{hostname}}/api/accounts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"id\": 1,\n    \"status\": \"success\"\n}"},{"id":"bf6da76f-7216-2677-eb2c-ab82e059f106","name":"/accounts customer","originalRequest":{"method":"POST","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"uuid\": \"e659c57e-5276-4b32-9a0e-c7c7b1fea177\",\n    \"type\": \"customer\",\n    \"name\": \"customer one\",\n    \"username\": \"customerone\",\n    \"password\": \"mycoolpassword\",\n    \"email\": \"customerone@example.com\",\n    \"hotspot_id\": 1\n}"},"url":"https://{{hostname}}/api/accounts"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n\t\"id\": \"1\",\n\t\"status\": \"success\"\n}"}],"_postman_id":"646dbd15-f76f-0bca-05f3-b15d43f4e7f6"},{"name":"/accounts/:id","id":"c536dc21-7b97-6040-1632-3e6290375a76","request":{"method":"PUT","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"string\",\n    \"username\": \"string\",\n    \"password\": \"string\",\n    \"email\": \"string\"\n}"},"url":"https://{{hostname}}/api/accounts/:id","description":"<p>Update account's info</p>\n","urlObject":{"protocol":"https","path":["api","accounts",":id"],"host":["{{hostname}}"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"99be997c-c836-3906-7335-872213be4882","name":"/accounts/:id","originalRequest":{"method":"PUT","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"account one\",\n    \"username\": \"accountone\",\n    \"password\": \"mycoolpassword\",\n    \"email\": \"accountone@example.com\"\n}"},"url":"https://{{hostname}}/api/accounts/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"status\": \"success\"\n}"}],"_postman_id":"c536dc21-7b97-6040-1632-3e6290375a76"},{"name":"/accounts/:id","id":"edc095e5-c8c4-2a2b-5be6-612193a81d10","request":{"method":"DELETE","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":"https://{{hostname}}/api/accounts/:id","description":"<p>Delete a account by its id</p>\n","urlObject":{"protocol":"https","path":["api","accounts",":id"],"host":["{{hostname}}"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"97b24561-039b-9b29-5744-867fcf670a07","name":"/accounts/:id","originalRequest":{"method":"DELETE","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":"https://{{hostname}}/api/accounts/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"status\": \"success\"\n}"}],"_postman_id":"edc095e5-c8c4-2a2b-5be6-612193a81d10"},{"name":"/devices","id":"514be437-5e91-b6ef-2c63-a3b1e5e5f364","request":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":"https://{{hostname}}/api/devices?page=:page&limit=:limit&hotspot=:hotspot_id","description":"<p>Get list of devices</p>\n","urlObject":{"protocol":"https","path":["api","devices"],"host":["{{hostname}}"],"query":[{"key":"page","value":":page"},{"key":"limit","value":":limit"},{"key":"hotspot","value":":hotspot_id"}],"variable":[]}},"response":[{"id":"cc0c1087-352f-ba9a-b276-b0dacbb59324","name":"devices","originalRequest":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":{"raw":"https://{{hostname}}/api/devices?page=1&limit=25","protocol":"https","host":["{{hostname}}"],"path":["api","devices"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"25"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"data\": [\n        {\n            \"id\": 1,\n            \"hotspot_id\": 1,\n            \"user_id\": 1,\n            \"mac_address\": \"78-F8-82-A2-FE-0E\",\n            \"description\": \"Nexus 5X\",\n            \"created\": \"2017-12-13 11:59:10\"\n        },\n        {\n            \"id\": 2,\n            \"hotspot_id\": 1,\n            \"user_id\": 2,\n            \"mac_address\": \"78-F8-82-A2-FE-AA\",\n            \"description\": \"iPhone 7\",\n            \"created\": \"2017-12-14 11:59:10\"\n        }\n    ],\n    \"total\": 200\n}"}],"_postman_id":"514be437-5e91-b6ef-2c63-a3b1e5e5f364"},{"name":"/devices/:id","id":"de94e074-9f5c-6eec-342b-84c16c08d7fc","request":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":"https://{{hostname}}/api/devices/:id","description":"<p>Get one device details</p>\n","urlObject":{"protocol":"https","path":["api","devices",":id"],"host":["{{hostname}}"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"115c5257-2b8c-4450-fc0a-ba02544754b4","name":"device","originalRequest":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":"https://{{hostname}}/api/device/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"id\": 2,\n    \"hotspot_id\": 1,\n    \"user_id\": 2,\n    \"mac_address\": \"78-F8-82-A2-FE-AA\",\n    \"description\": \"iPhone 7\",\n    \"created\": \"2017-12-13 11:59:10\"\n}"}],"_postman_id":"de94e074-9f5c-6eec-342b-84c16c08d7fc"},{"name":"/histories","id":"2e55abdf-1217-cb95-b400-2f0ae23e08d5","request":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":"https://{{hostname}}/api/histories?page=:page&limit=:limit&hotspot=:hotspot_id","description":"<p>Get all sessions list</p>\n","urlObject":{"protocol":"https","path":["api","histories"],"host":["{{hostname}}"],"query":[{"key":"page","value":":page"},{"key":"limit","value":":limit"},{"key":"hotspot","value":":hotspot_id"}],"variable":[]}},"response":[{"id":"239108ea-7419-ea5d-cce7-9a6520469e0c","name":"sessions history","originalRequest":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":{"raw":"https://{{hostname}}/api/histories?page=1&limit=25","protocol":"https","host":["{{hostname}}"],"path":["api","histories"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"25"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"data\": [\n        {\n            \"id\": 1,\n            \"session_id\": 1,\n            \"unit_id\": 1,\n            \"hotspot_id\": 1,\n            \"device_id\": 1,\n            \"user_id\": 1,\n            \"bytes_up\": 15663,\n            \"bytes_down\": 24080,\n            \"duration\": 328,\n            \"auth_time\": \"2017-12-12 09:48:27\",\n            \"start_time\": \"2017-12-12 09:48:27\",\n            \"update_time\": \"2017-12-12 09:53:55\",\n            \"stop_time\": \"2017-12-12 09:53:55\",\n            \"session_key\": \"151324142000000001000DB9417CF8843A4B1144D410103\"\n        },\n        {\n            \"id\": 2,\n            \"session_id\": 2,\n            \"unit_id\": 1,\n            \"hotspot_id\": 1,\n            \"device_id\": 1,\n            \"user_id\": 1,\n            \"bytes_up\": 1511077,\n            \"bytes_down\": 2163304,\n            \"duration\": 1435,\n            \"auth_time\": \"2017-12-12 09:48:27\",\n            \"start_time\": \"2017-12-12 09:48:27\",\n            \"update_time\": \"2017-12-12 09:53:55\",\n            \"stop_time\": \"2017-12-12 09:53:55\",\n            \"session_key\": \"151324142000000001000DB9417CF8843A4B1144D410105\"\n        }\n    ],\n    \"total\": 200\n}"}],"_postman_id":"2e55abdf-1217-cb95-b400-2f0ae23e08d5"},{"name":"/histories/:id","id":"de575bab-044b-0339-8f55-b064dba492b9","request":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":"https://{{hostname}}/api/histories/:id","description":"<p>Get one session details</p>\n","urlObject":{"protocol":"https","path":["api","histories",":id"],"host":["{{hostname}}"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"ab241a51-1f9b-72e7-b20e-eecddea976dd","name":"session history","originalRequest":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":"https://{{hostname}}/api/histories/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"id\": 1,\n    \"session_id\": 1,\n    \"unit_id\": 1,\n    \"hotspot_id\": 1,\n    \"device_id\": 1,\n    \"user_id\": 1,\n    \"bytes_up\": 15663,\n    \"bytes_down\": 24080,\n    \"duration\": 328,\n    \"auth_time\": \"2017-12-12 09:48:27\",\n    \"start_time\": \"2017-12-12 09:48:27\",\n    \"update_time\": \"2017-12-12 09:53:55\",\n    \"stop_time\": \"2017-12-12 09:53:55\",\n    \"session_key\": \"151324142000000001000DB9417CF8843A4B1144D410107\"\n}"}],"_postman_id":"de575bab-044b-0339-8f55-b064dba492b9"},{"name":"/hotspots","id":"1db5f3f1-0396-7526-34de-bee509c0ee8a","request":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":"https://{{hostname}}/api/hotspots?page=:page&limit=:limit","description":"<p>Get list of all hotspots</p>\n","urlObject":{"protocol":"https","path":["api","hotspots"],"host":["{{hostname}}"],"query":[{"key":"page","value":":page"},{"key":"limit","value":":limit"}],"variable":[]}},"response":[{"id":"0ae66ec9-27d3-29f7-e309-93f9cfacb977","name":"/hotspots","originalRequest":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":{"raw":"https://{{hostname}}/api/hotspots?page=1&limit=25","protocol":"https","host":["{{hostname}}"],"path":["api","hotspots"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"25"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"data\": [\n        {\n            \"id\": 1,\n            \"account_id\": 10,\n            \"name\": \"My cool hotspot\",\n            \"description\": \"This is the hotspot area for hotels\",\n            \"business_name\": \"Great Hotel Ltd\",\n            \"business_vat\": \"12345679800\",\n\t\t\t\"business_address\": \"Street of Null\",\n    \t\t\"business_email\": \"hotel@example.org\",\n            \"created\": \"2017-12-15 10:30:00\"\n        },\n        {\n            \"id\": 2,\n            \"account_id\": 4,\n            \"name\": \"My cool hotspot 2\",\n            \"description\": \"This is the hotspot area for seconds hotels\",\n            \"business_name\": \"Great Hotel Ltd\",\n            \"business_vat\": \"12345679800\",\n    \t\t\"business_address\": \"Street of Null\",\n    \t\t\"business_email\": \"hotel@example.org\",\n            \"created\": \"2017-12-17 11:30:00\"\n        }\n    ],\n    \"total\": 100\n}"}],"_postman_id":"1db5f3f1-0396-7526-34de-bee509c0ee8a"},{"name":"/hotspots/:id","id":"0e3e1c6c-de5a-3bd3-5b0a-0c5b20fb4c5d","request":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":"https://{{hostname}}/api/hotspots/:id","description":"<p>Get hotspot details by its id</p>\n","urlObject":{"protocol":"https","path":["api","hotspots",":id"],"host":["{{hostname}}"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"8b2e5abe-d17b-e172-8028-739885e4b84b","name":"/hotspots","originalRequest":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":"https://{{hostname}}/api/hotspots/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"id\": 2,\n    \"account_id\": 4,\n    \"name\": \"My cool hotspot 2\",\n    \"description\": \"This is the hotspot area for seconds hotels\",\n    \"business_name\": \"Great Hotel Ltd\",\n    \"business_vat\": \"12345679800\",\n    \"business_address\": \"Street of Null\",\n    \"business_email\": \"hotel@example.org\",\n    \"created\": \"2017-12-17 11:30:00\"\n}"}],"_postman_id":"0e3e1c6c-de5a-3bd3-5b0a-0c5b20fb4c5d"},{"name":"/hotspots","id":"3c84448a-acb0-77af-7533-65b06e39545d","request":{"method":"POST","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"string\",\n  \"description\": \"string\",\n  \"business_name\": \"string\",\n  \"business_vat\": \"string\",\n  \"business_address\": \"string\",\n  \"business_email\": \"string\"\n}"},"url":"https://{{hostname}}/api/hotspots","description":"<p>Create new hotspot</p>\n","urlObject":{"protocol":"https","path":["api","hotspots"],"host":["{{hostname}}"],"query":[],"variable":[]}},"response":[{"id":"65cdd876-e70b-7c3f-2da9-7ab3e6c63958","name":"/hotspots","originalRequest":{"method":"POST","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"My cool hotspot\",\n\t\"description\": \"Hotspot area for my hotels\",\n\t\"business_name\": \"Great Hotel Ltd\",\n\t\"business_vat\": \"12345679800\",\n    \"business_address\": \"Street of Null\",\n    \"business_email\": \"hotel@example.org\"\n}"},"url":"https://{{hostname}}/api/hotspots"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"id\": 1,\n  \"status\": \"success\"\n}"}],"_postman_id":"3c84448a-acb0-77af-7533-65b06e39545d"},{"name":"/hotspots/:id","id":"581eca52-bd21-b2e6-ebe7-becc5e85fcf6","request":{"method":"PUT","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"description\": \"string\",\n  \"business_name\": \"string\",\n  \"business_vat\": \"string\",\n  \"business_address\": \"string\",\n  \"business_email\": \"string\"\n}"},"url":"https://{{hostname}}/api/hotspots/:id","description":"<p>Update hotspot's info</p>\n","urlObject":{"protocol":"https","path":["api","hotspots",":id"],"host":["{{hostname}}"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"968c1d2c-0b5d-b95a-07e4-3d26b14f56b7","name":"/hotspots/:id","originalRequest":{"method":"PUT","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"description\": \"my cool description updated\",\n\t\"business_name\": \"Great Hotel Ltd\",\n\t\"business_vat\": \"12345679800\",\n    \"business_address\": \"Street of Null\",\n    \"business_email\": \"hotel@example.org\"\n}"},"url":"https://{{hostname}}/api/hotspots/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"status\": \"success\"\n}"}],"_postman_id":"581eca52-bd21-b2e6-ebe7-becc5e85fcf6"},{"name":"/hotspots/:id","id":"65f22503-296b-4a2b-1320-aecf23d5ad0b","request":{"method":"DELETE","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":"https://{{hostname}}/api/hotspots/:id","description":"<p>Delete an hotspot by its id</p>\n","urlObject":{"protocol":"https","path":["api","hotspots",":id"],"host":["{{hostname}}"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"004ecbcc-1259-85b2-9f9c-498a36376ad5","name":"/hotspots/:id","originalRequest":{"method":"DELETE","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":"https://{{hostname}}/api/hotspots/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n\t\"status\": \"success\"\n}"}],"_postman_id":"65f22503-296b-4a2b-1320-aecf23d5ad0b"},{"name":"/login","id":"0ad832c5-261f-a95a-0465-8667e3ee7b57","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"username\": \"string\",\n\t\"password\": \"string\"\n}"},"url":"https://{{hostname}}/api/login","description":"<p>Used to authenticate user</p>\n","urlObject":{"protocol":"https","path":["api","login"],"host":["{{hostname}}"],"query":[],"variable":[]}},"response":[{"id":"20dd61f0-2a9d-59a1-041b-bc7737ca9c81","name":"/login Invalid username","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"username\": \"mybaduser\",\n\t\"password\": \"mypass\"\n}"},"url":"https://{{hostname}}/api/login"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\"message\":\"No username found!\"}"},{"id":"7e48cd91-3dc9-a618-47ad-779fc42090b3","name":"/login OK","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"username\": \"myuser\",\n\t\"password\": \"mypass\"\n}"},"url":"https://{{hostname}}/api/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"status\": \"success\",\n    \"account_type\": \"desk\",\n    \"token\": \"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d\",\n    \"expires\": \"2017-12-21 11:13:05.377926455 +0000 UTC\",\n    \"id\": 1,\n\n            \"subscription\": {\n                \"id\": 1,\n                \"valid_from\": \"0001-01-01T00:00:00Z\",\n                \"valid_until\": \"0001-01-01T00:00:00Z\",\n                \"created\": \"0001-01-01T00:00:00Z\",\n                \"account_id\": 1,\n                \"subscription_plan\": {\n                    \"id\": 1,\n                    \"code\": \"free\",\n                    \"name\": \"test\",\n                    \"description\": \"my plan\",\n                    \"price\": 0,\n                    \"period\": 365,\n                    \"included_sms\": 300,\n                    \"max_units\": 10,\n                    \"advanced_report\": false,\n                    \"wings_customization\": false,\n                    \"social_analytics\": false\n                },\n                \"expired\": true\n            }\n        \n}"},{"id":"ec648731-c4c0-78d4-2fdd-544fc3711d18","name":"/login Invalid password","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"username\": \"myuser\",\n\t\"password\": \"mybadpassword\"\n}"},"url":"https://{{hostname}}/api/login"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\"message\":\"Password is invalid\"}"}],"_postman_id":"0ad832c5-261f-a95a-0465-8667e3ee7b57"},{"name":"/logout","id":"fd5b831d-fcc4-355b-2eae-db588e6010b6","request":{"method":"POST","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":"https://{{hostname}}/api/logout","description":"<p>Logout the user</p>\n","urlObject":{"protocol":"https","path":["api","logout"],"host":["{{hostname}}"],"query":[],"variable":[]}},"response":[{"id":"71b1af70-e55d-f1ca-b870-3a561eeb11bd","name":"/logout","originalRequest":{"method":"POST","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":"https://{{hostname}}/api/logout"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\"status\": \"success\"}"}],"_postman_id":"fd5b831d-fcc4-355b-2eae-db588e6010b6"},{"name":"/preferences/accounts","id":"4eaf31b7-33dd-361a-121b-8991dbc56118","request":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{hostname}}/api/preferences/accounts","description":"<p>Get all preferences for account</p>\n","urlObject":{"protocol":"https","path":["api","preferences","accounts"],"host":["{{hostname}}"],"query":[],"variable":[]}},"response":[{"id":"3e54be08-267b-acf5-e3d1-7359cb164063","name":"/preferences/accounts","originalRequest":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d","warning":""}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{hostname}}/api/preferences/accounts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n\t\"pref1_key\": \"pref1_val\",\n\t\"pref2_key\": \"pref2_val\",\n\t\"pref3_key\": \"pref3_val\",\n\t\"pref4_key\": \"pref4_val\"\n}"}],"_postman_id":"4eaf31b7-33dd-361a-121b-8991dbc56118"},{"name":"/preferences/accounts","id":"6c6f54d3-0b40-2b10-24c5-ae2776325849","request":{"method":"PUT","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"key\": \"string\",\n\t\"value\": \"string\"\n}"},"url":"https://{{hostname}}/api/preferences/accounts","description":"<p>Create a preference for account</p>\n","urlObject":{"protocol":"https","path":["api","preferences","accounts"],"host":["{{hostname}}"],"query":[],"variable":[]}},"response":[{"id":"4fd2ec03-7f8d-39c3-b043-048b51812b84","name":"/preferences/accounts","originalRequest":{"method":"PUT","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"key\": \"pref1_key\",\n\t\"value\": \"pref1_val\"\n}"},"url":"https://{{hostname}}/api/preferences/accounts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"status\": \"success\"\n}"}],"_postman_id":"6c6f54d3-0b40-2b10-24c5-ae2776325849"},{"name":"/preferences/hotspots","id":"01f4bfbc-38b8-e844-1b2a-d200efb71889","request":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{hostname}}/api/preferences/hotspots/:id","description":"<p>Get hotspot preferences</p>\n","urlObject":{"protocol":"https","path":["api","preferences","hotspots",":id"],"host":["{{hostname}}"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"2d5ba91e-6b4e-e26e-2b1b-c341febf1160","name":"/preferences/hotspots","originalRequest":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{hostname}}/api/preferences/hotspots/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"19","body":"{\n    \"pref1_key\": \"pref1_val\",\n    \"pref2_key\": \"pref2_val\",\n    \"pref3_key\": \"pref3_val\",\n    \"pref4_key\": \"pref4_val\"\n}"}],"_postman_id":"01f4bfbc-38b8-e844-1b2a-d200efb71889"},{"name":"/preferences/hotspots","id":"b1c2ed91-23d4-b43d-9c58-6d5668675759","request":{"method":"PUT","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"key\": \"string\",\n  \"value\": \"string\"\n}"},"url":"https://{{hostname}}/api/preferences/hotspots/:id","description":"<p>Create hotspot preference</p>\n","urlObject":{"protocol":"https","path":["api","preferences","hotspots",":id"],"host":["{{hostname}}"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"9b6aad09-b4bc-5968-004f-30b37c4f30aa","name":"/preferences/hotspots","originalRequest":{"method":"PUT","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"key\": \"pref1_key\",\n\t\"value\": \"pref1_val\"\n}"},"url":"https://{{hostname}}/api/preferences/hotspots/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"status\": \"success\"\n}"}],"_postman_id":"b1c2ed91-23d4-b43d-9c58-6d5668675759"},{"name":"/sessions","id":"6601ba87-cf29-0366-af9d-61a96686498b","request":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":"https://{{hostname}}/api/sessions?page=:page&limit=:limit&hotspot=:hotspot_id&user=:user_id&unit=:unit_id&from=:from_date&to=:to_date","description":"<p>Get all sessions list</p>\n","urlObject":{"protocol":"https","path":["api","sessions"],"host":["{{hostname}}"],"query":[{"key":"page","value":":page"},{"key":"limit","value":":limit"},{"key":"hotspot","value":":hotspot_id"},{"key":"user","value":":user_id"},{"key":"unit","value":":unit_id"},{"key":"from","value":":from_date"},{"key":"to","value":":to_date"}],"variable":[]}},"response":[{"id":"942c1c04-9554-9527-75c9-8c708bdf015c","name":"sessions","originalRequest":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":{"raw":"https://{{hostname}}/api/sessions?page=1&limit=25","protocol":"https","host":["{{hostname}}"],"path":["api","sessions"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"25"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"data\": [\n        {\n            \"id\": 1,\n            \"unit_id\": 1,\n            \"hotspot_id\": 1,\n            \"device_id\": 1,\n            \"user_id\": 1,\n            \"bytes_up\": 15663,\n            \"bytes_down\": 24080,\n            \"duration\": 328,\n            \"auth_time\": \"2017-12-12 09:48:27\",\n            \"start_time\": \"2017-12-12 09:48:27\",\n            \"update_time\": \"2017-12-12 09:53:55\",\n            \"stop_time\": \"2017-12-12 09:53:55\",\n            \"session_key\": \"151324142000000001000DB9417CF8843A4B1144D410103\"\n        },\n        {\n            \"id\": 2,\n            \"unit_id\": 1,\n            \"hotspot_id\": 1,\n            \"device_id\": 1,\n            \"user_id\": 1,\n            \"bytes_up\": 1511077,\n            \"bytes_down\": 2163304,\n            \"duration\": 1435,\n            \"auth_time\": \"2017-12-12 09:48:27\",\n            \"start_time\": \"2017-12-12 09:48:27\",\n            \"update_time\": \"2017-12-12 09:53:55\",\n            \"stop_time\": \"2017-12-12 09:53:55\",\n            \"session_key\": \"151324142000000001000DB9417CF8843A4B1144D410105\"\n        }\n    ],\n    \"total\": 200\n}"}],"_postman_id":"6601ba87-cf29-0366-af9d-61a96686498b"},{"name":"/sessions/:id","id":"d6370c9c-3f98-f507-b4f6-ff65d453b7b7","request":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":"https://{{hostname}}/api/sessions/:id","description":"<p>Get one session details</p>\n","urlObject":{"protocol":"https","path":["api","sessions",":id"],"host":["{{hostname}}"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"142f44f2-d464-63eb-f465-15aef0c1c31c","name":"session","originalRequest":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":"https://{{hostname}}/api/sessions/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"id\": 1,\n    \"unit_id\": 1,\n    \"hotspot_id\": 1,\n    \"device_id\": 1,\n    \"user_id\": 1,\n    \"bytes_up\": 15663,\n    \"bytes_down\": 24080,\n    \"duration\": 328,\n    \"auth_time\": \"2017-12-12 09:48:27\",\n    \"start_time\": \"2017-12-12 09:48:27\",\n    \"update_time\": \"2017-12-12 09:53:55\",\n    \"stop_time\": \"2017-12-12 09:53:55\",\n    \"session_key\": \"151324142000000001000DB9417CF8843A4B1144D410107\"\n}"}],"_postman_id":"d6370c9c-3f98-f507-b4f6-ff65d453b7b7"},{"name":"/subscription_plans","id":"b764aa0b-dabd-9751-2e6d-48cef451c886","request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{hostname}}/api/subscription_plans","description":"<p>Get list of subscription plans</p>\n","urlObject":{"protocol":"https","path":["api","subscription_plans"],"host":["{{hostname}}"],"query":[],"variable":[]}},"response":[{"id":"ea83db1e-bbc0-f3b0-054d-b506adf19c11","name":"/subscription_plans","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Ik1FSTNOalZGUXpFM04wWXdSak0xTWpSR1FrRTRPVEExUkVWQ09VRkJOamRGUTBZMFJEQkZRUSJ9.eyJpc3MiOiJodHRwczovL3NjcmliYS5hdXRoMC5jb20vIiwic3ViIjoiYXV0aDB8NWE4NWFjMzBmNWM4MjEzY2IyN2M0OTNiIiwiYXVkIjpbImh0dHA6Ly9sb2NhbGhvc3Q6ODA4MCIsImh0dHBzOi8vc2NyaWJhLmF1dGgwLmNvbS91c2VyaW5mbyJdLCJpYXQiOjE1MTkwMjkxOTEsImV4cCI6MTUxOTAzNjM5MSwiYXpwIjoicnZ3aDZvY1FWZG92Q2RtQVd4UUJvUThwNUIyTEVkVVYiLCJzY29wZSI6Im9wZW5pZCBwcm9maWxlIGVtYWlsIn0.4DXCHLGCv_weeFe3X2L37-dJCGs4cs7BDQNKIGv5WcrDQdy4q89hNRroiNNe6PZiEWjSb3hwcz_XqA04Eo7Hdpx9KCDGEd-MLYGpx5fU2Rw1cgolblwsPyJjPXPVHdE08jvZQN4hiyXjoETAuhcmC2SVxGABq-Oq5bnfIiJSCGJHhTeBTqlv1cIY8ArURW_n07msZdiSvcOnv1UcnjFz_1NBWv41bA3j8MODy9x_jY9QJ9bawIh_9EkUOrkFv5sgdESnUTSzWt9oqSC6DM99ukgUJ0osTKqJxCx8WZD-zpShY_hcL1dIDgZ8Zaun81uz3VIbrtab3yzz9JwyqeZZZZ"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{hostname}}/api/subscription_plans"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"[{\"id\":1,\"code\":\"free\",\"name\":\"Free\",\"description\":\"Free limited plan\",\"price\":0,\"period\":365,\"included_sms\":0,\"max_units\":1,\"advanced_report\":false,\"wings_customization\":false,\"social_analytics\":false},{\"id\":2,\"code\":\"basic\",\"name\":\"Basic\",\"description\":\"Basic plan\",\"price\":0,\"period\":365,\"included_sms\":500,\"max_units\":1,\"advanced_report\":true,\"wings_customization\":false,\"social_analytics\":false},{\"id\":3,\"code\":\"standard\",\"name\":\"Standard\",\"description\":\"Standard lan\",\"price\":0,\"period\":365,\"included_sms\":1000,\"max_units\":10,\"advanced_report\":true,\"wings_customization\":true,\"social_analytics\":false},{\"id\":4,\"code\":\"premium\",\"name\":\"Premium\",\"description\":\"Premium plan\",\"price\":0,\"period\":3650,\"included_sms\":2000,\"max_units\":100,\"advanced_report\":true,\"wings_customization\":true,\"social_analytics\":true}]"}],"_postman_id":"b764aa0b-dabd-9751-2e6d-48cef451c886"},{"name":"/units","id":"56d10f33-30e7-ee03-d976-ee76581d7c51","request":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":"https://{{hostname}}/api/units?page=:page&limit=:limit&hotspot=:hotspot_id","description":"<p>Get list of access points</p>\n","urlObject":{"protocol":"https","path":["api","units"],"host":["{{hostname}}"],"query":[{"key":"page","value":":page"},{"key":"limit","value":":limit"},{"key":"hotspot","value":":hotspot_id"}],"variable":[]}},"response":[],"_postman_id":"56d10f33-30e7-ee03-d976-ee76581d7c51"},{"name":"/units/:id","id":"70a19b54-1445-b062-1871-f1ca40ec60fc","request":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":"https://{{hostname}}/api/units/:id","description":"<p>Get one access point details</p>\n","urlObject":{"protocol":"https","path":["api","units",":id"],"host":["{{hostname}}"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"1322a684-d8bd-f3fd-6a17-3382c339c070","name":"unit","originalRequest":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":"https://{{hostname}}/api/units/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"id\": 1,\n    \"hotspot_id\": 1,\n    \"mac_address\": \"00-0D-B9-41-7C-F8\",\n    \"description\": \"hotel one's ap\",\n    \"uuid\": \"e659c57e-5276-4b32-9a0e-c7c7b1fea199\",\n    \"secret\": \"60b725f10c9c85c70d97880dfe8191b5\"\n}"}],"_postman_id":"70a19b54-1445-b062-1871-f1ca40ec60fc"},{"name":"/units","id":"06ce07fc-56bc-22c6-f52d-260c4e5a0206","request":{"method":"POST","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"mac_address\": \"string\",\n  \"name\": \"string\",\n  \"description\": \"string\",\n  \"uuid\": \"string\",\n  \"secret\": \"string\",\n  \"hotspot_id\": \"integer\"\n}"},"url":"https://{{hostname}}/api/units","description":"<p>Create new unit</p>\n","urlObject":{"protocol":"https","path":["api","units"],"host":["{{hostname}}"],"query":[],"variable":[]}},"response":[{"id":"091ea8e6-2dda-46a4-5edf-5d03901cbe17","name":"/units","originalRequest":{"method":"POST","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"mac_address\": \"00-0D-B9-41-7C-AA\",\n\t\"name\": \"myunit.example.org\",\n\t\"description\": \"cool description\",\n\t\"uuid\": \"e659c57e-5276-4b32-9a0e-c7c7b1fea199\",\n\t\"secret\": \"mysecret\",\n\t\"hotspot_id\": 1\n}"},"url":"https://{{hostname}}/api/units"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"id\": 1,\n    \"status\": \"success\"\n}"}],"_postman_id":"06ce07fc-56bc-22c6-f52d-260c4e5a0206"},{"name":"/units/:id","id":"2d7a7783-8f45-04f0-8d2c-2311f992de77","request":{"method":"DELETE","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":"https://{{hostname}}/api/units/:id","description":"<p>Delete an unit by its id</p>\n","urlObject":{"protocol":"https","path":["api","units",":id"],"host":["{{hostname}}"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"a21fe883-5312-6ba7-cecf-adc685ab06c3","name":"/units/:id","originalRequest":{"method":"DELETE","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":"https://{{hostname}}/api/units/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"status\": \"success\"\n}"}],"_postman_id":"2d7a7783-8f45-04f0-8d2c-2311f992de77"},{"name":"/users","id":"e98d54f1-0414-8550-a8a7-9ba18168b3b3","request":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":"https://{{hostname}}/api/users?page=:page&limit=:limit&hotspot=:hotspot_id&type=:account_type","description":"<p>Get all users</p>\n","urlObject":{"protocol":"https","path":["api","users"],"host":["{{hostname}}"],"query":[{"key":"page","value":":page"},{"key":"limit","value":":limit"},{"key":"hotspot","value":":hotspot_id"},{"key":"type","value":":account_type"}],"variable":[]}},"response":[{"id":"4623c2f9-6ed0-e050-a868-ca65dbc818e3","name":"users","originalRequest":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":{"raw":"https://{{hostname}}/api/users?page=1&limit=25","protocol":"https","host":["{{hostname}}"],"path":["api","users"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"25"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"data\": [\n        {\n            \"id\": 1,\n            \"hotspot_id\": 1,\n            \"name\": \"john doe\",\n            \"username\": \"user@email.com\",\n            \"email\": \"user@email.com\",\n            \"account_type\": \"facebook\",\n            \"kbps_down\": 750,\n            \"kbps_up\": 150,\n            \"valid_from\": \"2017-12-16 00:00:00\",\n            \"valid_until\": \"2017-12-25 23:59:59\",\n            \"created\": \"2017-12-15 10:30:00\"\n        },\n        {\n            \"id\": 2,\n            \"hotspot_id\": 1,\n            \"tname\": \"john bovi\",\n            \"username\": \"user2@email.com\",\n            \"email\": \"user2@email.com\",\n            \"account_type\": \"twitter\",\n            \"kbps_down\": 750,\n            \"kbps_up\": 150,\n            \"valid_from\": \"2017-12-16 00:00:00\",\n            \"valid_until\": \"2017-12-25 23:59:59\",\n            \"created\": \"2017-12-15 10:30:00\"\n        }\n    ],\n    \"total\": 200\n}"}],"_postman_id":"e98d54f1-0414-8550-a8a7-9ba18168b3b3"},{"name":"/users:/id","id":"795da5ec-6553-106e-f091-568d452886b0","request":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":"https://{{hostname}}/api/users/:id","description":"<p>Get one user by its id</p>\n","urlObject":{"protocol":"https","path":["api","users",":id"],"host":["{{hostname}}"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"e86a5521-0c5d-0d25-b518-c2228723b8d6","name":"user","originalRequest":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":"https://{{hostname}}/api/users/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"id\": 1,\n    \"hotspot_id\": 1,\n    \"name\": \"john doe\",\n    \"username\": \"user@email.com\",\n    \"email\": \"user@email.com\",\n    \"account_type\": \"facebook\",\n    \"kbps_down\": 750,\n    \"kbps_up\": 150,\n    \"valid_from\": \"2017-12-16 00:00:00\",\n    \"valid_until\": \"2017-12-25 23:59:59\",\n    \"created\": \"2017-12-15 10:30:00\"\n}"}],"_postman_id":"795da5ec-6553-106e-f091-568d452886b0"},{"name":"users/:id","id":"e6f4a6f2-c5c1-3593-40fb-1da536a28fe6","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"string\",\n  \"email\": \"string\",\n  \"kbps_down\": \"integer\",\n  \"kbps_up\": \"integer\",\n  \"valid_from\": \"date\",\n  \"valid_until\": \"date\"\n}"},"url":"https://{{hostname}}/api/users/:id","description":"<p>Update user's info</p>\n","urlObject":{"protocol":"https","path":["api","users",":id"],"host":["{{hostname}}"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"671f922b-aaa0-515f-f60b-d90e8150fd4f","name":"users/:id","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"newname\",\n  \"email\": \"newmail\",\n  \"kbps_down\": 250,\n  \"kbps_up\": 250,\n  \"valid_from\": \"2017-12-15T10:30:00.000000000Z\",\n  \"valid_until\": \"2017-12-18T10:30:00.000000000Z\"\n}"},"url":"https://{{hostname}}/api/users/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n\t\"status\": \"success\"\n}"}],"_postman_id":"e6f4a6f2-c5c1-3593-40fb-1da536a28fe6"},{"name":"/users/:id","id":"f8e088ec-f5c3-cb56-7f3c-f44f575a0a04","request":{"method":"DELETE","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":"https://{{hostname}}/api/users/:id","description":"<p>Delete a user by its id</p>\n","urlObject":{"protocol":"https","path":["api","users",":id"],"host":["{{hostname}}"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"f3bb5124-aae0-8e4d-cda3-c8a71d2ddbb0","name":"users","originalRequest":{"method":"DELETE","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":"https://{{hostname}}/api/users/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n\t\"status\": \"success\"\n}"}],"_postman_id":"f8e088ec-f5c3-cb56-7f3c-f44f575a0a04"},{"name":"/vouchers","id":"6377cf35-ea0d-e7ce-0632-91571887ee57","request":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":"https://{{hostname}}/api/vouchers?page=:page&limit=:limit","description":"<p>Get list of vouchers</p>\n","urlObject":{"protocol":"https","path":["api","vouchers"],"host":["{{hostname}}"],"query":[{"key":"page","value":":page"},{"key":"limit","value":":limit"}],"variable":[]}},"response":[{"id":"73d05818-23d5-dd43-2d9a-8252549e3b75","name":"vouchers","originalRequest":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":{"raw":"https://{{hostname}}/api/vouchers?page=1&limit=25","protocol":"https","host":["{{hostname}}"],"path":["api","vouchers"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"25"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"data\": [\n        {\n            \"id\": 1,\n            \"hotspot_id\": 1,\n            \"code\": \"asd-123-asd\",\n            \"expires\": \"2017-12-12 09:48:27\",\n            \"auto_login\": true,\n            \"bandwidth_down\": 150,\n            \"bandwidth_up\": 50,\n            \"duration\": 7,\n            \"remain_use\": -1\n        },\n        {\n            \"id\": 2,\n            \"hotspot_id\": 2,\n            \"code\": \"asd-456-asd\",\n            \"expires\": \"2017-12-13 09:48:27\",\n            \"auto_login\": true,\n    \"bandwidth_down\": 150,\n    \"bandwidth_up\": 50,\n    \"duration\": 7,\n    \"remain_use\": -1\n        }\n    ],\n    \"total\": 20\n}"}],"_postman_id":"6377cf35-ea0d-e7ce-0632-91571887ee57"},{"name":"/vouchers","id":"ee95fc08-4957-39cd-087b-c2e5a010dbf9","request":{"method":"POST","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"auto_login\": \"boolean\",\n\t\"bandwidth_down\": \"integer\",\n\t\"bandwidth_up\": \"integer\",\n\t\"code\": \"string\",\n\t\"duration\": \"integer | days number\",\n\t\"expiration\": \"integer\",\n\t\"hotspot_id\": \"integer\",\n\t\"max_time\": \"integer\",\n\t\"max_traffic\": \"integer\",\n\t\"remain_use\": \"integer | -1 limitless\",\n\t\"time\": \"duration | expiration\",\n\t\"type\": \"auth | normal\",\n\t\"user_mail\": \"string\",\n\t\"user_name\": \"string\"\n}"},"url":"https://{{hostname}}/api/vouchers","description":"<p>Create new unit</p>\n","urlObject":{"protocol":"https","path":["api","vouchers"],"host":["{{hostname}}"],"query":[],"variable":[]}},"response":[{"id":"05222f8c-fff4-fc0f-71a1-a9880c2186a3","name":"/vouchers","originalRequest":{"method":"POST","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"},{"key":"Content-Type","type":"text","name":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"auto_login\": \"true\",\n\t\"bandwidth_down\": 0,\n\t\"bandwidth_up\": 0,\n\t\"code\": \"78mlo606\",\n\t\"duration\": 7,\n\t\"expiration\": 13,\n\t\"hotspot_id\": 51,\n\t\"max_time\": 0,\n\t\"max_traffic\": 0,\n\t\"remain_use\": -1,\n\t\"time\": \"duration\",\n\t\"type\": \"auth\",\n\t\"user_mail\": \"edoardo@nethesis.it\",\n\t\"user_name\": \"edoardo\"\n}"},"url":"https://{{hostname}}/api/vouchers"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"id\": 1,\n    \"status\": \"success\"\n}"}],"_postman_id":"ee95fc08-4957-39cd-087b-c2e5a010dbf9"},{"name":"/vouchers/:id","id":"253ce234-87b2-f1a2-2d7a-4e0ae0bf2326","request":{"method":"PUT","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"printed\": \"boolean\"\n}"},"url":"https://{{hostname}}/api/vouchers/:id","description":"<p>Delete an voucher by its id</p>\n","urlObject":{"protocol":"https","path":["api","vouchers",":id"],"host":["{{hostname}}"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"65572e4f-d2d9-638e-0ccf-6862484f5c51","name":"/vouchers/:id","originalRequest":{"method":"PUT","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"},{"key":"Content-Type","name":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"printed\": true\n}"},"url":"https://{{hostname}}/api/vouchers/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"status\": \"success\"\n}"}],"_postman_id":"253ce234-87b2-f1a2-2d7a-4e0ae0bf2326"},{"name":"/vouchers/:id","id":"78f22983-1fdb-dcee-df2d-8b736eb49529","request":{"method":"DELETE","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":"https://{{hostname}}/api/vouchers/:id","description":"<p>Delete an voucher by its id</p>\n","urlObject":{"protocol":"https","path":["api","vouchers",":id"],"host":["{{hostname}}"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"fab55cd9-b914-9228-ef57-7f1d6b9cd934","name":"/vouchers/:id","originalRequest":{"method":"DELETE","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":"https://{{hostname}}/api/vouchers/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"status\": \"success\"\n}"}],"_postman_id":"78f22983-1fdb-dcee-df2d-8b736eb49529"}],"id":"fd09162b-ed57-d307-d2eb-a4e71e31e4da","_postman_id":"fd09162b-ed57-d307-d2eb-a4e71e31e4da","description":""},{"name":"Captive Portal","item":[{"name":"/wax/marketings/:user_id","id":"63db6af5-60bb-147c-05a5-d83ff1042e3f","request":{"method":"DELETE","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":"https://{{hostname}}/wax/marketings/:user_id?digest=md5(:secret+:uuid)&uuid=:uuid&session_key=:session:key","description":"<p>Delete an voucher by its id</p>\n","urlObject":{"protocol":"https","path":["wax","marketings",":user_id"],"host":["{{hostname}}"],"query":[{"key":"digest","value":"md5(:secret+:uuid)"},{"key":"uuid","value":":uuid"},{"key":"session_key","value":":session:key"}],"variable":[{"type":"any","value":"","key":"user_id"}]}},"response":[{"id":"2bd20136-944e-f370-53a9-ee4db73a749a","name":"/wax/marketings/:user_id","originalRequest":{"method":"DELETE","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"url":{"raw":"https://{{hostname}}/wax/marketings/90?digest=md5(:secret+:uuid)&uuid=:uuid&session_key=:session:key","protocol":"https","host":["{{hostname}}"],"path":["wax","marketings","90"],"query":[{"key":"digest","value":"md5(:secret+:uuid)"},{"key":"uuid","value":":uuid"},{"key":"session_key","value":":session:key"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"status\": \"success\"\n}"}],"_postman_id":"63db6af5-60bb-147c-05a5-d83ff1042e3f"},{"name":"/wax/preferences","id":"b2944f66-a248-ea44-19db-be68e7c38881","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://{{hostname}}/wax/preferences?digest=md5(:secret+:uuid)&uuid=:uuid&session_key=:session:key","description":"<p>Make a social authentication using facebook</p>\n","urlObject":{"protocol":"http","path":["wax","preferences"],"host":["{{hostname}}"],"query":[{"key":"digest","value":"md5(:secret+:uuid)"},{"key":"uuid","value":":uuid"},{"key":"session_key","value":":session:key"}],"variable":[]}},"response":[{"id":"4b699ad3-2c33-c787-7b78-a9e4b09130fb","name":"/wax/preferences","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"http://{{hostname}}/wax/preferences?digest=51727302dfae5af28ed1faf6ae87aadc&uuid=1610fe6d-8578-4247-b4a2-c40dced94bdd&session_key=1515667915000000001","protocol":"http","host":["{{hostname}}"],"path":["wax","preferences"],"query":[{"key":"digest","value":"51727302dfae5af28ed1faf6ae87aadc"},{"key":"uuid","value":"1610fe6d-8578-4247-b4a2-c40dced94bdd"},{"key":"session_key","value":"1515667915000000001"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"hotspot_id\": 1,\n    \"hotspot_name\": \"hs-test\",\n    \"preferences\": {\n        \"captive_1_redir\": \"https://nethesis.github.io/icaro\",\n        \"captive_2_title\": \"Icaro Wings Portal\",\n        \"captive_3_logo\": \"data:image/png;base64,...\",\n        \"captive_4_subtitle\": \"Welcome\",\n        \"captive_5_banner\": \"data:image/png;base64,...\",\n        \"captive_6_description\": \"<p><strong>qwerty</strong></p><p><em>qwerty</em></p><p><em>qwerty</em></p>\",\n        \"captive_7_background\": \"#7ED321\",\n        \"email_login\": \"true\",\n        \"facebook_login\": \"true\",\n        \"facebook_login_page\": \"https://www.facebook.com/your_page\",\n        \"instagram_login\": \"true\",\n        \"linkedin_login\": \"true\",\n        \"sms_login\": \"true\",\n        \"temp_session_duration\": \"300\",\n        \"user_expiration_days\": \"30\",\n        \"voucher_expiration_days\": \"1\",\n        \"voucher_login\": \"false\"\n    },\n    \"disclaimers\": {\n        \"terms_of_use\": \"This is a disclaimer test\\n\\n - asdasd\\n - asdasd\",\n        \"marketing_use\": \"This is marketing information\"\n    },\n    \"socials\": {\n        \"facebook_client_id\": \"fb_id\",\n        \"linkedin_client_id\": \"lk_id\",\n        \"instagram_client_id\": \"ig_id\"\n    }\n}"}],"_postman_id":"b2944f66-a248-ea44-19db-be68e7c38881"},{"name":"/register/social/facebook","id":"a72ef1db-702b-3c4b-2ff0-98f0d2d6459c","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://{{hostname}}/wax/register/social/facebook/FB_ACCESS_TOKEN?digest=md5(:secret+:uuid)&uuid=:uuid&session_key=:session:key","description":"<p>Make a social authentication using facebook</p>\n","urlObject":{"protocol":"http","path":["wax","register","social","facebook","FB_ACCESS_TOKEN"],"host":["{{hostname}}"],"query":[{"key":"digest","value":"md5(:secret+:uuid)"},{"key":"uuid","value":":uuid"},{"key":"session_key","value":":session:key"}],"variable":[]}},"response":[{"id":"33639b40-2538-3140-8e6a-5276b2e33a48","name":"/register/social/facebook","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"http://{{hostname}}/wax/register/social/facebook/AQCZdfARtXpS1RERIUWMB3zngSTsq2iMyyBvnY78UoOJtmbmp5g3JRSD7Q2BVqD65emzWckXmsEUlqwPa6puRUNoQWS4vcTTbFgwjLNwL4Jb6pX7cpFsczSxc0_pnpjDoNsJ3itd0uKeDPkNEdHFNEMvZTpDjE3z5MLv-H9ODlSn84PttogJPH_IAyPeSsOku_NAPTepEZUfHUZFgqQoUnQAMIEd8vE62Q-cwC_69P2iSYYPpmyq9voZMWX8V2ChwuLHUdpTXEZBkfVhYKPb7RRhW94N9-c8DOga7BE1cQ5sJcSFDMWl7vK4cUCCf5S3f_94QXEBEr9qOa31pZPWNfTD?digest=51727302dfae5af28ed1faf6ae87aadc&uuid=1610fe6d-8578-4247-b4a2-c40dced94bdd&session_key=1515667915000000001","protocol":"http","host":["{{hostname}}"],"path":["wax","register","social","facebook","AQCZdfARtXpS1RERIUWMB3zngSTsq2iMyyBvnY78UoOJtmbmp5g3JRSD7Q2BVqD65emzWckXmsEUlqwPa6puRUNoQWS4vcTTbFgwjLNwL4Jb6pX7cpFsczSxc0_pnpjDoNsJ3itd0uKeDPkNEdHFNEMvZTpDjE3z5MLv-H9ODlSn84PttogJPH_IAyPeSsOku_NAPTepEZUfHUZFgqQoUnQAMIEd8vE62Q-cwC_69P2iSYYPpmyq9voZMWX8V2ChwuLHUdpTXEZBkfVhYKPb7RRhW94N9-c8DOga7BE1cQ5sJcSFDMWl7vK4cUCCf5S3f_94QXEBEr9qOa31pZPWNfTD"],"query":[{"key":"digest","value":"51727302dfae5af28ed1faf6ae87aadc"},{"key":"uuid","value":"1610fe6d-8578-4247-b4a2-c40dced94bdd"},{"key":"session_key","value":"1515667915000000001"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"user_id\": \"12345678900987654321\"\n}"}],"_postman_id":"a72ef1db-702b-3c4b-2ff0-98f0d2d6459c"},{"name":"/register/social/google","id":"a48ba974-c6dc-6b06-eaa1-d5174820ce54","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://{{hostname}}/wax/register/social/google/GL_ACCESS_TOKEN?digest=md5(:secret+:uuid)&uuid=:uuid&session_key=:session:key","description":"<p>Make a social authentication using google</p>\n","urlObject":{"protocol":"http","path":["wax","register","social","google","GL_ACCESS_TOKEN"],"host":["{{hostname}}"],"query":[{"key":"digest","value":"md5(:secret+:uuid)"},{"key":"uuid","value":":uuid"},{"key":"session_key","value":":session:key"}],"variable":[]}},"response":[{"id":"95702b75-cf61-e163-120b-7ab092b9d9bf","name":"/register/social/google","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"http://{{hostname}}/wax/register/social/google/ya29.Glw3BR0ysZznIAMxKsCg8lqp2aZiCQyaDalr2v53fKk7StkZQs8aVmbxtdvyDR7OkITitgiiU0gY3tQqkZXTkJ7g8pnbWmuhG3JEYLE_ifj2a_b6pzvDwQo_AQeOAw?digest=51727302dfae5af28ed1faf6ae87aadc&uuid=1610fe6d-8578-4247-b4a2-c40dced94bdd&session_key=1515667915000000001","protocol":"http","host":["{{hostname}}"],"path":["wax","register","social","google","ya29.Glw3BR0ysZznIAMxKsCg8lqp2aZiCQyaDalr2v53fKk7StkZQs8aVmbxtdvyDR7OkITitgiiU0gY3tQqkZXTkJ7g8pnbWmuhG3JEYLE_ifj2a_b6pzvDwQo_AQeOAw"],"query":[{"key":"digest","value":"51727302dfae5af28ed1faf6ae87aadc"},{"key":"uuid","value":"1610fe6d-8578-4247-b4a2-c40dced94bdd"},{"key":"session_key","value":"1515667915000000001"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"user_id\": \"12345678900987654321\"\n}"}],"_postman_id":"a48ba974-c6dc-6b06-eaa1-d5174820ce54"},{"name":"/register/social/linkedin","id":"a0332072-32de-fbb9-fe06-9a78653e246f","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://{{hostname}}/wax/register/social/google/GL_ACCESS_TOKEN?digest=md5(:secret+:uuid)&uuid=:uuid&session_key=:session:key","description":"<p>Make a social authentication using linkedin</p>\n","urlObject":{"protocol":"http","path":["wax","register","social","google","GL_ACCESS_TOKEN"],"host":["{{hostname}}"],"query":[{"key":"digest","value":"md5(:secret+:uuid)"},{"key":"uuid","value":":uuid"},{"key":"session_key","value":":session:key"}],"variable":[]}},"response":[{"id":"71fb2903-c0da-0c16-ff37-960220e67fe4","name":"/register/social/linkedin","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://{{hostname}}/wax/register/social/linkedin/AQSK9XtTbp8gsumxzbac2Nct-qzxNySPglncPBznUdx7z2prgBC-oCe8dYkE_vq5eCy9upyJd0pjiBNL3D8UsZIp56LGtfEsW-bU7z6dK6Kyh719E2S_2JUJKRxATzebs36F06chcad_pGkdh2kLIZ0nDXZMgQ&session_key=1515667915000000001"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"user_id\": \"eScJYvty8Q\"\n}"}],"_postman_id":"a0332072-32de-fbb9-fe06-9a78653e246f"},{"name":"/register/sms","id":"be78a527-3bb5-30cb-561b-264f638baf8f","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://{{hostname}}/wax/register/sms/PHONE_NUMBER?digest=md5(:secret+:uuid)&uuid=:uuid&session_key=:session:key","description":"<p>Make an authentication using sms</p>\n","urlObject":{"protocol":"http","path":["wax","register","sms","PHONE_NUMBER"],"host":["{{hostname}}"],"query":[{"key":"digest","value":"md5(:secret+:uuid)"},{"key":"uuid","value":":uuid"},{"key":"session_key","value":":session:key"}],"variable":[]}},"response":[{"id":"4557de97-a315-0646-1a19-a0a943b273b7","name":"/register/sms","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"http://{{hostname}}/wax/register/sms/5559696478?digest=51727302dfae5af28ed1faf6ae87aadc&uuid=1610fe6d-8578-4247-b4a2-c40dced94bdd&session_key=1515667915000000001","protocol":"http","host":["{{hostname}}"],"path":["wax","register","sms","5559696478"],"query":[{"key":"digest","value":"51727302dfae5af28ed1faf6ae87aadc"},{"key":"uuid","value":"1610fe6d-8578-4247-b4a2-c40dced94bdd"},{"key":"session_key","value":"1515667915000000001"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"user_id\": \"5559696478\",\n    \"password\": \"998877\"\n}"}],"_postman_id":"be78a527-3bb5-30cb-561b-264f638baf8f"},{"name":"/register/voucher","id":"65e90180-51a5-41de-cf61-0e0bc83c670d","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://{{hostname}}/wax/register/voucher/VOUCHER?digest=md5(:secret+:uuid)&uuid=:uuid&session_key=:session:key","description":"<p>Make an authentication control before logins using voucher</p>\n","urlObject":{"protocol":"http","path":["wax","register","voucher","VOUCHER"],"host":["{{hostname}}"],"query":[{"key":"digest","value":"md5(:secret+:uuid)"},{"key":"uuid","value":":uuid"},{"key":"session_key","value":":session:key"}],"variable":[]}},"response":[{"id":"40258572-77ab-6179-ab2d-8bc7b17f4b55","name":"/register/voucher","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"http://{{hostname}}/wax/register/voucher/asd-123-asd?digest=51727302dfae5af28ed1faf6ae87aadc&uuid=1610fe6d-8578-4247-b4a2-c40dced94bdd&session_key=1515667915000000001","protocol":"http","host":["{{hostname}}"],"path":["wax","register","voucher","asd-123-asd"],"query":[{"key":"digest","value":"51727302dfae5af28ed1faf6ae87aadc"},{"key":"uuid","value":"1610fe6d-8578-4247-b4a2-c40dced94bdd"},{"key":"session_key","value":"1515667915000000001"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\"message\":\"Voucher is valid\"}"}],"_postman_id":"65e90180-51a5-41de-cf61-0e0bc83c670d"},{"name":"/register/email","id":"39fbb4dc-4e5d-6317-e6f5-d204017a3865","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"http://{{hostname}}/wax/register/email/EMAIL_ADDRESS?digest=md5(:secret+:uuid)&uuid=:uuid&session_key=:session:key","description":"<p>Make an authentication using email</p>\n","urlObject":{"protocol":"http","path":["wax","register","email","EMAIL_ADDRESS"],"host":["{{hostname}}"],"query":[{"key":"digest","value":"md5(:secret+:uuid)"},{"key":"uuid","value":":uuid"},{"key":"session_key","value":":session:key"}],"variable":[]}},"response":[{"id":"7fa8e9e6-1dff-04e2-3013-202e14db3d97","name":"/register/email","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"http://{{hostname}}/wax/register/email/test@test.org?digest=51727302dfae5af28ed1faf6ae87aadc&uuid=1610fe6d-8578-4247-b4a2-c40dced94bdd&session_key=1515667915000000001","protocol":"http","host":["{{hostname}}"],"path":["wax","register","email","test@test.org"],"query":[{"key":"digest","value":"51727302dfae5af28ed1faf6ae87aadc"},{"key":"uuid","value":"1610fe6d-8578-4247-b4a2-c40dced94bdd"},{"key":"session_key","value":"1515667915000000001"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"user_id\": \"test@test.org\",\n    \"password\": \"332211\"\n}"}],"_postman_id":"39fbb4dc-4e5d-6317-e6f5-d204017a3865"}],"id":"dbb2494b-6605-d1b5-0aef-dad533d1dbf2","_postman_id":"dbb2494b-6605-d1b5-0aef-dad533d1dbf2","description":""},{"name":"Surveys","item":[{"name":"/feedbacks/:token","id":"ac022991-321a-ac2e-1177-aaf4131a55d1","request":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{hostname}}/ade/feedbacks/:token","description":"<p>Get list of all account</p>\n","urlObject":{"protocol":"https","path":["ade","feedbacks",":token"],"host":["{{hostname}}"],"query":[],"variable":[{"type":"any","value":"","key":"token"}]}},"response":[{"id":"1723d09e-19fb-3453-b705-de67bf29a74d","name":"/feedbacks/:token","originalRequest":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"https://{{hostname}}/ade/feedbacks/:token","protocol":"https","host":["{{hostname}}"],"path":["ade","feedbacks",":token"],"variable":[{"key":"token","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"logo\": \"base64_hotspot_logo\",\n    \"color\": \"hex_hotspot_color\",\n    \"name\": \"hotspot_name\"\n}"},{"id":"9c8a8b8b-3e0f-4a35-68ea-7c8123bd3473","name":"/accounts","originalRequest":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"https://{{hostname}}/api/accounts?page=1&limit=25","protocol":"https","host":["{{hostname}}"],"path":["api","accounts"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"25"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"data\": [\n        {\n            \"id\": 2,\n            \"creator_id\": 1,\n            \"uuid\": \"uuid-gen-12345\",\n            \"type\": \"reseller\",\n            \"name\": \"My Name\",\n            \"username\": \"firstuser\",\n            \"password\": \"mypass\",\n            \"email\": \"test@example.org\",\n            \"created\": \"2017-12-20T13:59:05Z\",\n            \"hotspot_id\": 1,\n            \"hotspot_name\": \"test\",\n            \"subscription_plan_id\": 1,\n            \"subscription_plan_name\": \"free\",\n            \"subscription\": {\n                \"id\": 1,\n                \"valid_from\": \"0001-01-01T00:00:00Z\",\n                \"valid_until\": \"0001-01-01T00:00:00Z\",\n                \"created\": \"0001-01-01T00:00:00Z\",\n                \"account_id\": 1,\n                \"subscription_plan\": {\n                    \"id\": 1,\n                    \"code\": \"free\",\n                    \"name\": \"test\",\n                    \"description\": \"my plan\",\n                    \"price\": 0,\n                    \"period\": 365,\n                    \"included_sms\": 300,\n                    \"max_units\": 10,\n                    \"advanced_report\": false,\n                    \"wings_customization\": false,\n                    \"social_analytics\": false\n                },\n                \"expired\": true\n            }\n        },\n        ...\n    ],\n    \"total\": 50\n}"}],"_postman_id":"ac022991-321a-ac2e-1177-aaf4131a55d1"},{"name":"/feedbacks/:token","id":"8cb7002e-3bcd-87d6-43e7-1a46d5724b85","request":{"method":"POST","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"message\": \"string\"\n}"},"url":"https://{{hostname}}/ade/feedbacks/:token","description":"<p>Get list of all account</p>\n","urlObject":{"protocol":"https","path":["ade","feedbacks",":token"],"host":["{{hostname}}"],"query":[],"variable":[{"type":"any","value":"","key":"token"}]}},"response":[{"id":"290a13a3-c54f-b434-71c4-d0393ffe538d","name":"/feedbacks/:token","originalRequest":{"method":"POST","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"message\": \"string\"\n}"},"url":{"raw":"https://{{hostname}}/ade/feedbacks/:token","protocol":"https","host":["{{hostname}}"],"path":["ade","feedbacks",":token"],"variable":[{"key":"token","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n\t\"state\": \"success\"\n}"}],"_postman_id":"8cb7002e-3bcd-87d6-43e7-1a46d5724b85"},{"name":"/reviews/:token","id":"15f62360-41f8-e53d-ab20-df2c80c906e3","request":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"body":{"mode":"formdata","formdata":[]},"url":"https://{{hostname}}/ade/reviews/:token","description":"<p>Get list of all account</p>\n","urlObject":{"protocol":"https","path":["ade","reviews",":token"],"host":["{{hostname}}"],"query":[],"variable":[{"type":"any","value":"","key":"token"}]}},"response":[{"id":"7c9b3940-9382-e585-5708-377b57957ba5","name":"/accounts","originalRequest":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"https://{{hostname}}/api/accounts?page=1&limit=25","protocol":"https","host":["{{hostname}}"],"path":["api","accounts"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"25"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"data\": [\n        {\n            \"id\": 2,\n            \"creator_id\": 1,\n            \"uuid\": \"uuid-gen-12345\",\n            \"type\": \"reseller\",\n            \"name\": \"My Name\",\n            \"username\": \"firstuser\",\n            \"password\": \"mypass\",\n            \"email\": \"test@example.org\",\n            \"created\": \"2017-12-20T13:59:05Z\",\n            \"hotspot_id\": 1,\n            \"hotspot_name\": \"test\",\n            \"subscription_plan_id\": 1,\n            \"subscription_plan_name\": \"free\",\n            \"subscription\": {\n                \"id\": 1,\n                \"valid_from\": \"0001-01-01T00:00:00Z\",\n                \"valid_until\": \"0001-01-01T00:00:00Z\",\n                \"created\": \"0001-01-01T00:00:00Z\",\n                \"account_id\": 1,\n                \"subscription_plan\": {\n                    \"id\": 1,\n                    \"code\": \"free\",\n                    \"name\": \"test\",\n                    \"description\": \"my plan\",\n                    \"price\": 0,\n                    \"period\": 365,\n                    \"included_sms\": 300,\n                    \"max_units\": 10,\n                    \"advanced_report\": false,\n                    \"wings_customization\": false,\n                    \"social_analytics\": false\n                },\n                \"expired\": true\n            }\n        },\n        ...\n    ],\n    \"total\": 50\n}"},{"id":"f79f9016-a0de-1c20-0f86-7b94f4d525e8","name":"/reviews/:token","originalRequest":{"method":"GET","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"https://{{hostname}}/ade/reviews/:token","protocol":"https","host":["{{hostname}}"],"path":["ade","reviews",":token"],"variable":[{"key":"token","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n  \"logo\":\"base64_hotspot_logo\",\n  \"color\":\"hex_hotspot_color\",\n  \"name\": \"hotspot_name\",\n  \"urls\": [\"https://tripdavisor.com\",\"...\", \"...\"],\n  \"threshold\": 3\n}"}],"_postman_id":"15f62360-41f8-e53d-ab20-df2c80c906e3"},{"name":"/reviews/:token","id":"8692aaa0-817d-a6d1-be3c-71fa77803cf0","request":{"method":"POST","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"stars\": \"integer\",\n\t\"message\": \"optional\"\n}"},"url":"https://{{hostname}}/ade/reviews/:token","description":"<p>Get list of all account</p>\n","urlObject":{"protocol":"https","path":["ade","reviews",":token"],"host":["{{hostname}}"],"query":[],"variable":[{"type":"any","value":"","key":"token"}]}},"response":[{"id":"0781fdd6-00e8-ce01-1a66-8e8b41ee6654","name":"/reviews/:token","originalRequest":{"method":"POST","header":[{"key":"Token","value":"c1b5ebd45281f0480cb9c6de963e5dd420c577d8b5abdc0e45944fddc988c67d"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"stars\": \"integer\",\n\t\"message\": \"optional\"\n}"},"url":{"raw":"https://{{hostname}}/ade/reviews/:token","protocol":"https","host":["{{hostname}}"],"path":["ade","reviews",":token"],"variable":[{"key":"token","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":"0","body":"{\n    \"state\": \"success\"\n}"}],"_postman_id":"8692aaa0-817d-a6d1-be3c-71fa77803cf0"}],"id":"05c47584-4727-6614-aa86-f277a9aaa4b3","_postman_id":"05c47584-4727-6614-aa86-f277a9aaa4b3","description":""}]}