{"info":{"_postman_id":"32fc6d92-af9a-409e-9641-5c056ad107db","name":"eagletrt-api/views","description":"<html><head></head><body><p>The Views microservice is used to serve the web-app with all the information about the personalized views based on the user role. This microservice consists of and adapter layer to get the information from a Airtable.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"3504740","collectionId":"32fc6d92-af9a-409e-9641-5c056ad107db","publishedId":"TzCMe8YD","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-03-31T18:23:20.000Z"},"item":[{"name":"status","event":[{"listen":"test","script":{"id":"d7d2242f-c533-46e4-bd9a-96114c640104","exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","let jsonData = pm.response.json();\r","\r","pm.test(\"GET Request\", function (){\r","    pm.response.to.have.status(200);\r","})\r","\r","pm.test(\"JSON Data Response\", function (){\r","    pm.expect(jsonData)\r","})"],"type":"text/javascript"}}],"id":"41c02539-b1fa-46f6-a939-6e808f7b283e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3002/status","urlObject":{"protocol":"http","port":"3002","path":["status"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"071564a2-5bf1-4a8b-9172-3b2db62a268b","name":"status","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3002/status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"15"},{"key":"ETag","value":"W/\"f-v/Y1JusChTxrQUzPtNAKycooOTA\""},{"key":"Date","value":"Wed, 31 Mar 2021 16:17:26 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\"\n}"}],"_postman_id":"41c02539-b1fa-46f6-a939-6e808f7b283e"},{"name":"docs api","event":[{"listen":"test","script":{"id":"00de0277-5765-4029-91c2-f0ced7bb38ad","exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r",""],"type":"text/javascript"}}],"id":"bc369de3-ac11-446f-972f-b31963798624","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3002/api-docs/","urlObject":{"protocol":"http","port":"3002","path":["api-docs",""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0560898b-1d1d-4221-94ec-83dcc61f5481","name":"docs api","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3002/api-docs/"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"3104"},{"key":"ETag","value":"W/\"c20-YaHADSLwvE3kEdwr5u3Bfu2fhF8\""},{"key":"Date","value":"Wed, 31 Mar 2021 16:17:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"\n<!-- HTML for static distribution bundle build -->\n<!DOCTYPE html>\n<html lang=\"en\">\n    <head>\n        <meta charset=\"UTF-8\">\n        <title>Swagger UI</title>\n        <link rel=\"stylesheet\" type=\"text/css\" href=\"./swagger-ui.css\" >\n        <link rel=\"icon\" type=\"image/png\" href=\"./favicon-32x32.png\" sizes=\"32x32\" />\n        <link rel=\"icon\" type=\"image/png\" href=\"./favicon-16x16.png\" sizes=\"16x16\" />\n        <style>\n    html\n    {\n      box-sizing: border-box;\n      overflow: -moz-scrollbars-vertical;\n      overflow-y: scroll;\n    }\n    *,\n    *:before,\n    *:after\n    {\n      box-sizing: inherit;\n    }\n\n    body {\n      margin:0;\n      background: #fafafa;\n    }\n  </style>\n    </head>\n    <body>\n        <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" style=\"position:absolute;width:0;height:0\">\n            <defs>\n                <symbol viewBox=\"0 0 20 20\" id=\"unlocked\">\n                    <path d=\"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z\"></path>\n                </symbol>\n                <symbol viewBox=\"0 0 20 20\" id=\"locked\">\n                    <path d=\"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z\"/>\n                </symbol>\n                <symbol viewBox=\"0 0 20 20\" id=\"close\">\n                    <path d=\"M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z\"/>\n                </symbol>\n                <symbol viewBox=\"0 0 20 20\" id=\"large-arrow\">\n                    <path d=\"M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z\"/>\n                </symbol>\n                <symbol viewBox=\"0 0 20 20\" id=\"large-arrow-down\">\n                    <path d=\"M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z\"/>\n                </symbol>\n                <symbol viewBox=\"0 0 24 24\" id=\"jump-to\">\n                    <path d=\"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z\"/>\n                </symbol>\n                <symbol viewBox=\"0 0 24 24\" id=\"expand\">\n                    <path d=\"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z\"/>\n                </symbol>\n            </defs>\n        </svg>\n        <div id=\"swagger-ui\"></div>\n        <script src=\"./swagger-ui-bundle.js\"> </script>\n        <script src=\"./swagger-ui-standalone-preset.js\"> </script>\n        <script src=\"./swagger-ui-init.js\"> </script>\n        <style>\n  .swagger-ui .topbar .download-url-wrapper { display: none } undefined\n</style>\n    </body>\n</html>"}],"_postman_id":"bc369de3-ac11-446f-972f-b31963798624"},{"name":"views","event":[{"listen":"test","script":{"id":"854f3e47-ec5f-4778-9e5a-cf20837b2905","exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","let jsonData = pm.response.json();\r","\r","pm.test(\"GET Request\", function (){\r","    pm.response.to.have.status(200);\r","})\r","\r","pm.test(\"JSON Data Response\", function (){\r","    pm.expect(jsonData)\r","})"],"type":"text/javascript"}}],"id":"0c08e697-889a-4a98-b61a-e9a22ef6a2a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3002/api/v1/views","description":"<p>This API allows to retrieve the list of the members</p>\n","urlObject":{"protocol":"http","port":"3002","path":["api","v1","views"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"25bb79c5-c2ad-4250-8d75-853a6b061448","name":"views","originalRequest":{"method":"GET","header":[{"key":"Accept","type":"text","value":"application/vnd.github.v3+json","disabled":true},{"key":"Authorization","type":"text","value":"","disabled":true}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3002/api/v1/views"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"60"},{"key":"ETag","value":"W/\"3c-KaGMkw7naCFNjMMg+HyJ0tB0Mn8\""},{"key":"Date","value":"Wed, 31 Mar 2021 16:17:41 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        \"Accumulator\",\n        \"BMS\",\n        \"Telemetria\",\n        \"Volante\",\n        \"Test\"\n    ]\n}"}],"_postman_id":"0c08e697-889a-4a98-b61a-e9a22ef6a2a2"},{"name":"views/users/:username","event":[{"listen":"test","script":{"id":"da32914d-f73f-41e2-b1ca-9d991d5fa58f","exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","let jsonData = pm.response.json();\r","\r","pm.test(\"GET Request\", function (){\r","    pm.response.to.have.status(200);\r","})\r","\r","pm.test(\"JSON Data Response\", function (){\r","    pm.expect(jsonData)\r","})"],"type":"text/javascript"}}],"id":"0ec21474-c73e-4400-99ec-0c28e7a4fc14","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://localhost:3002/api/v1/views/users/:username","description":"<p>This API allows to retrieve member by the github username</p>\n","urlObject":{"protocol":"http","port":"3002","path":["api","v1","views","users",":username"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"lucagump","key":"username"}]}},"response":[{"id":"b5c8947b-854a-499a-9612-bd6aa48b3534","name":"views/users/:username","originalRequest":{"method":"GET","header":[{"key":"Accept","type":"text","value":"application/vnd.github.v3+json","disabled":true},{"key":"Authorization","type":"text","value":"","disabled":true}],"url":{"raw":"http://localhost:3002/api/v1/views/users/:username","protocol":"http","host":["localhost"],"port":"3002","path":["api","v1","views","users",":username"],"variable":[{"key":"username","value":"lucagump"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"62"},{"key":"ETag","value":"W/\"3e-TSPy2WUAzGRzOdf88bqN7JhyI/s\""},{"key":"Date","value":"Wed, 31 Mar 2021 16:17:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"username\": \"lucagump\",\n    \"data\": [\n        \"Telemetria\",\n        \"Volante\",\n        \"Test\"\n    ]\n}"},{"id":"84b5ae5a-7fe2-41b2-b324-b14b01958caa","name":"views/users/:username","originalRequest":{"method":"GET","header":[{"key":"Accept","type":"text","value":"application/vnd.github.v3+json","disabled":true},{"key":"Authorization","type":"text","value":"","disabled":true}],"url":{"raw":"http://localhost:3002/api/v1/views/users/:username","protocol":"http","host":["localhost"],"port":"3002","path":["api","v1","views","users",":username"],"variable":[{"key":"username","value":""}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"html","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Security-Policy","value":"default-src 'none'"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"158"},{"key":"Date","value":"Wed, 31 Mar 2021 16:22:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"<!DOCTYPE html>\n<html lang=\"en\">\n    <head>\n        <meta charset=\"utf-8\">\n        <title>Error</title>\n    </head>\n    <body>\n        <pre>Cannot GET /api/v1/views/users/</pre>\n    </body>\n</html>"},{"id":"a0a83dfc-17d6-40c6-9929-b246921b3aef","name":"views/users/:username","originalRequest":{"method":"GET","header":[{"key":"Accept","type":"text","value":"application/vnd.github.v3+json","disabled":true},{"key":"Authorization","type":"text","value":"","disabled":true}],"url":{"raw":"http://localhost:3002/api/v1/views/users/:username","protocol":"http","host":["localhost"],"port":"3002","path":["api","v1","views","users",":username"],"variable":[{"key":"username","value":"lucagumpa"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"34"},{"key":"ETag","value":"W/\"22-iEmbSLhL4dnDk7P2IFZTxUufrfQ\""},{"key":"Date","value":"Wed, 31 Mar 2021 16:26:46 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"username\": \"lucagumpa\",\n    \"data\": []\n}"}],"_postman_id":"0ec21474-c73e-4400-99ec-0c28e7a4fc14"}]}