{"info":{"_postman_id":"0663efab-e2ad-4545-9910-2783371f38a4","name":"NO LEGACY","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"5302592","collectionId":"0663efab-e2ad-4545-9910-2783371f38a4","publishedId":"TVKA5ejJ","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-09-17T21:47:33.000Z"},"item":[{"name":"AddDevice","id":"0ca62a01-1185-4394-8231-b71a2b8395cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","type":"text","value":"VzlNvO51sA5CzboYjJzc27BEgAz2o88XagDGIaS2"}],"url":"https://70obp6e1ne.execute-api.us-east-1.amazonaws.com/prod/check-email?action=add_device&email=yero3&app=Connect&device_series_name=HDA10L&device_component_model=DVR-HDA10LB-8&uid=ABCDEFGFHECMP98Y111A","description":"<p>To register a new device on the Legacy system</p>\n","urlObject":{"protocol":"https","path":["prod","check-email"],"host":["70obp6e1ne","execute-api","us-east-1","amazonaws","com"],"query":[{"key":"action","value":"add_device"},{"key":"email","value":"yero3"},{"key":"app","value":"Connect"},{"key":"device_series_name","value":"HDA10L"},{"key":"device_component_model","value":"DVR-HDA10LB-8"},{"key":"uid","value":"ABCDEFGFHECMP98Y111A"}],"variable":[]}},"response":[],"_postman_id":"0ca62a01-1185-4394-8231-b71a2b8395cd"},{"name":"GetDevice","id":"ebe8d25e-3e44-4f83-bedb-ac57831e1385","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"VzlNvO51sA5CzboYjJzc27BEgAz2o88XagDGIaS2","type":"text"}],"url":"https://70obp6e1ne.execute-api.us-east-1.amazonaws.com/prod/check-email?action=get_devices&email=yero3","description":"<p>Get the devices of a specific customer</p>\n","urlObject":{"protocol":"https","path":["prod","check-email"],"host":["70obp6e1ne","execute-api","us-east-1","amazonaws","com"],"query":[{"key":"action","value":"get_devices"},{"key":"email","value":"yero3"}],"variable":[]}},"response":[],"_postman_id":"ebe8d25e-3e44-4f83-bedb-ac57831e1385"},{"name":"RemoveDevice","id":"02375f8c-4f46-469a-9c31-fe5930d832e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","type":"text","value":"VzlNvO51sA5CzboYjJzc27BEgAz2o88XagDGIaS2"}],"url":"https://70obp6e1ne.execute-api.us-east-1.amazonaws.com/prod/check-email?action=delete_device&email=yero3&uid=39468178TRY18370RY81","description":"<p>Remove a device using the username and the UID</p>\n","urlObject":{"protocol":"https","path":["prod","check-email"],"host":["70obp6e1ne","execute-api","us-east-1","amazonaws","com"],"query":[{"key":"action","value":"delete_device"},{"key":"email","value":"yero3"},{"key":"uid","value":"39468178TRY18370RY81"}],"variable":[]}},"response":[],"_postman_id":"02375f8c-4f46-469a-9c31-fe5930d832e1"},{"name":"GetDevices-APIv2","id":"c34520c5-e7a0-480b-a726-4ecb077545e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"action\": \"get_devices\",\n    \"username\": \"<username>\"\n}","options":{"raw":{"language":"json"}}},"url":"https://rvejvjzf45.execute-api.us-east-1.amazonaws.com/legacy-devices","description":"<p>This API has been created using the same AWS Gateway APIv2 for protect. It improves as follow:</p>\n<ul>\n<li>List of json (key, value) objects instead of an array.</li>\n<li>It adds the <strong>created</strong> property of the device.</li>\n</ul>\n<p>Returns:</p>\n<ul>\n<li>A list of devices by username (see example)</li>\n</ul>\n","urlObject":{"protocol":"https","path":["legacy-devices"],"host":["rvejvjzf45","execute-api","us-east-1","amazonaws","com"],"query":[],"variable":[]}},"response":[{"id":"d3620311-71f8-4cf9-a47d-1264b5225a41","name":"GetDevices-APIv2","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"action\": \"get_devices\",\n    \"username\": \"yero\"\n}","options":{"raw":{"language":"json"}}},"url":"https://rvejvjzf45.execute-api.us-east-1.amazonaws.com/legacy-devices"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 24 Sep 2020 16:28:27 GMT"},{"key":"Content-Type","value":"text/plain; charset=utf-8"},{"key":"Content-Length","value":"272"},{"key":"Connection","value":"keep-alive"},{"key":"Apigw-Requestid","value":"TYRexjg2IAMESBQ="}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"message\": [\n        {\n            \"series\": \"HDA10L\",\n            \"model\": \"DVR-HDA10LB-8\",\n            \"uid\": \"ABCDEFGFHECMP98Y111A12\",\n            \"app\": \"Connect\",\n            \"created\": \"09/17/2020\"\n        },\n        {\n            \"series\": \"C20\",\n            \"model\": \"DVR-C20-41\",\n            \"uid\": \"ABCDEFGFHECMPOTY111A\",\n            \"app\": \"Connect\",\n            \"created\": \"09/10/2020\"\n        }\n    ]\n}"}],"_postman_id":"c34520c5-e7a0-480b-a726-4ecb077545e9"},{"name":"AddDevice-APIv2","id":"6a5c5628-17af-4fc2-a3d3-84a7ba863767","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"action\": \"add_device\",\n    \"username\": \"<username>\",\n    \"app\": \"<app>\",\n    \"series\": \"<device_series>\",\n    \"model\": \"<device_component_model>\",\n    \"uid\": \"<device_uid>\"\n}","options":{"raw":{"language":"json"}}},"url":"https://rvejvjzf45.execute-api.us-east-1.amazonaws.com/legacy-devices","description":"<p>This API has been created using the same AWS Gateway APIv2 for protect.</p>\n<p>Returns:</p>\n<ul>\n<li>Empty response.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["legacy-devices"],"host":["rvejvjzf45","execute-api","us-east-1","amazonaws","com"],"query":[],"variable":[]}},"response":[{"id":"b7cbb449-2753-4ea2-a316-daeabd76101f","name":"AddDevice-APIv2","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"action\": \"add_device\",\n    \"username\": \"yero\",\n    \"app\": \"connect\",\n    \"series\": \"C80XFR\",\n    \"model\": \"DVR-C80XFR-82\",\n    \"uid\": \"123456789AVBFRTREDSC\"\n}","options":{"raw":{"language":"json"}}},"url":"https://rvejvjzf45.execute-api.us-east-1.amazonaws.com/legacy-devices"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 24 Sep 2020 16:33:22 GMT"},{"key":"Content-Type","value":"text/plain; charset=utf-8"},{"key":"Content-Length","value":"21"},{"key":"Connection","value":"keep-alive"},{"key":"Apigw-Requestid","value":"TYSM7hEdoAMESQw="}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\"\n}"}],"_postman_id":"6a5c5628-17af-4fc2-a3d3-84a7ba863767"},{"name":"RemoveDevice-APIv2","id":"7ed0cb43-2ccc-482b-afbe-d9f573b4a54c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"action\": \"delete_device\",\n    \"username\": \"<username>\",\n    \"uid\": \"<device_uid>\"\n}","options":{"raw":{"language":"json"}}},"url":"https://rvejvjzf45.execute-api.us-east-1.amazonaws.com/legacy-devices","description":"<p>This API has been created using the same AWS Gateway APIv2 for protect.</p>\n<p>Returns:</p>\n<ul>\n<li>The list of remaining devices (see example)</li>\n</ul>\n","urlObject":{"protocol":"https","path":["legacy-devices"],"host":["rvejvjzf45","execute-api","us-east-1","amazonaws","com"],"query":[],"variable":[]}},"response":[{"id":"706f000d-5875-4fe3-9092-00c1ea89a3de","name":"RemoveDevice-APIv2","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"action\": \"delete_device\",\n    \"username\": \"yero\",\n    \"uid\": \"123456789AVBFRTREDSC\"\n}","options":{"raw":{"language":"json"}}},"url":"https://rvejvjzf45.execute-api.us-east-1.amazonaws.com/legacy-devices"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 24 Sep 2020 16:37:46 GMT"},{"key":"Content-Type","value":"text/plain; charset=utf-8"},{"key":"Content-Length","value":"272"},{"key":"Connection","value":"keep-alive"},{"key":"Apigw-Requestid","value":"TYS2Mia0IAMESKA="}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Success\",\n    \"message\": [\n        {\n            \"series\": \"HDA10L\",\n            \"model\": \"DVR-HDA10LB-8\",\n            \"uid\": \"ABCDEFGFHECMP98Y111A12\",\n            \"app\": \"Connect\",\n            \"created\": \"09/17/2020\"\n        },\n        {\n            \"series\": \"C20\",\n            \"model\": \"DVR-C20-41\",\n            \"uid\": \"ABCDEFGFHECMPOTY111A\",\n            \"app\": \"Connect\",\n            \"created\": \"09/10/2020\"\n        }\n    ]\n}"}],"_postman_id":"7ed0cb43-2ccc-482b-afbe-d9f573b4a54c"}]}