{"info":{"_postman_id":"02c4071a-070f-43b1-ad9f-fe8941a5428a","name":"ApiDigitPlan V1","description":"<html><head></head><body><p>Control de nivel de llenado mediante sensores de depósitos o silos. \nRef. 2378828</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"2378828","collectionId":"02c4071a-070f-43b1-ad9f-fe8941a5428a","publishedId":"TW6xnnmL","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-01-29T10:40:18.000Z"},"item":[{"name":"GET TOKEN","id":"895e3e83-a4b3-4544-9de1-c1c1ac12d75e","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}],"advancedConfig":[{"key":"showPassword","value":"<show-password>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"client_credentials","type":"text"}]},"url":"https://www.digitplan.com/oauth","urlObject":{"protocol":"https","path":["oauth"],"host":["www","digitplan","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"895e3e83-a4b3-4544-9de1-c1c1ac12d75e"},{"name":"GET CENTRAL","id":"405515c5-4941-4732-a569-4b72e6de010d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://www.digitplan.com/api/v1/central","urlObject":{"protocol":"https","path":["api","v1","central"],"host":["www","digitplan","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"405515c5-4941-4732-a569-4b72e6de010d"},{"name":"GET CENTRAL SENSOS","id":"48d17477-8281-4f91-b260-9065bb1b61e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://www.digitplan.com/api/v1/central/147","urlObject":{"protocol":"https","path":["api","v1","central","147"],"host":["www","digitplan","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"48d17477-8281-4f91-b260-9065bb1b61e2"},{"name":"GET SENSORS","id":"56af2026-d917-4536-8d63-b8c60d253d41","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://www.digitplan.com/api/v1/sensor","urlObject":{"protocol":"https","path":["api","v1","sensor"],"host":["www","digitplan","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"56af2026-d917-4536-8d63-b8c60d253d41"},{"name":"GET SENSOR","id":"17af8ef2-c690-46ab-a5e5-1b0324f4d653","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://www.digitplan.com/api/v1/sensor/695","urlObject":{"protocol":"https","path":["api","v1","sensor","695"],"host":["www","digitplan","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"17af8ef2-c690-46ab-a5e5-1b0324f4d653"},{"name":"UPDATE SENSOR","id":"f3d46387-e7cb-48b3-ade3-16aaedc3d835","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"name","type":"text","description":"<p>opcional</p>\n"},{"key":"id_material","value":"id_material","description":"<p>opcional</p>\n","type":"text"}]},"url":"https://www.digitplan.com/api/v1/sensor/695","urlObject":{"protocol":"https","path":["api","v1","sensor","695"],"host":["www","digitplan","com"],"query":[],"variable":[]}},"response":[{"id":"b9d97422-975c-4dee-98bd-7a237f6dea86","name":"UPDATE SENSOR","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"LAB-T","type":"text"}]},"url":"https://www.digitplan.com/api/v1/sensor/3036"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx"},{"key":"Date","value":"Tue, 13 Oct 2020 10:37:10 GMT"},{"key":"Content-Type","value":"text/html; charset=UTF-8"},{"key":"Content-Length","value":"20"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT ,DELETE, OPTIONS"},{"key":"Access-Control-Allow-Headers","value":"X-Requested-With, Content-Type, Authorization, authorization, multipart/form-data"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Vary","value":"Accept-Encoding,User-Agent"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"f3d46387-e7cb-48b3-ade3-16aaedc3d835"},{"name":"GET MATRIAL","id":"738d13ae-4da6-4019-908c-1040e967a2e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.digitplan.com/api/v1/material/1314","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"02c4071a-070f-43b1-ad9f-fe8941a5428a","id":"02c4071a-070f-43b1-ad9f-fe8941a5428a","name":"ApiDigitPlan V1","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","material","1314"],"host":["www","digitplan","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"738d13ae-4da6-4019-908c-1040e967a2e1"},{"name":"GET MATRIAL ALL","id":"95234159-704e-4809-93cc-973447037625","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.digitplan.com/api/v1/material","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"02c4071a-070f-43b1-ad9f-fe8941a5428a","id":"02c4071a-070f-43b1-ad9f-fe8941a5428a","name":"ApiDigitPlan V1","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","material"],"host":["www","digitplan","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"95234159-704e-4809-93cc-973447037625"},{"name":"ADD MATERIAL","id":"acb17ccc-a886-41b9-8dd9-fe7c3274c212","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"material","value":"nuevo material","type":"text"},{"key":"densitat","value":"1000","type":"text"},{"key":"k_L","value":"k","type":"text"},{"key":"id_central","value":"672","type":"text"}]},"url":"https://prova.digitplan.com/api/v1/material","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"02c4071a-070f-43b1-ad9f-fe8941a5428a","id":"02c4071a-070f-43b1-ad9f-fe8941a5428a","name":"ApiDigitPlan V1","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","material"],"host":["prova","digitplan","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"acb17ccc-a886-41b9-8dd9-fe7c3274c212"},{"name":"UPDATE MATERIAL","id":"d1584a2b-e7ac-415d-8c18-4ebd6bb2ad32","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"material","value":"nuevo material","type":"text"},{"key":"densitat","value":"100","type":"text"},{"key":"k_L","value":"k","type":"text"},{"key":"id_central","value":"672","type":"text"}]},"url":"https://www.digitplan.com/api/v1/material/1353","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"02c4071a-070f-43b1-ad9f-fe8941a5428a","id":"02c4071a-070f-43b1-ad9f-fe8941a5428a","name":"ApiDigitPlan V1","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","material","1353"],"host":["www","digitplan","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"d1584a2b-e7ac-415d-8c18-4ebd6bb2ad32"},{"name":"DELTE MATERIAL","id":"2019ccde-9c00-4df3-855f-cd6c14024244","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[]},"url":"https://www.digitplan.com/api/v1/material/1353","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"02c4071a-070f-43b1-ad9f-fe8941a5428a","id":"02c4071a-070f-43b1-ad9f-fe8941a5428a","name":"ApiDigitPlan V1","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","material","1353"],"host":["www","digitplan","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2019ccde-9c00-4df3-855f-cd6c14024244"},{"name":"GET ALARMES","id":"f02a666f-7ae2-45ec-9ba7-44700abb07ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://www.digitplan.com/api/v1/alarma","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"02c4071a-070f-43b1-ad9f-fe8941a5428a","id":"02c4071a-070f-43b1-ad9f-fe8941a5428a","name":"ApiDigitPlan V1","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","alarma"],"host":["www","digitplan","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"f02a666f-7ae2-45ec-9ba7-44700abb07ca"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]}},"event":[{"listen":"prerequest","script":{"id":"ac31a338-68b2-4519-8114-3f2dcab4afcd","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"b11a6fae-df12-45ba-81fc-56a91491b984","type":"text/javascript","exec":[""]}}],"variable":[{"key":"user","value":"vallcompanys"},{"key":"pas","value":"vallcompanys"},{"key":"token","value":"02f590c13b10ee56ab372dc10b37f6aa0eca6ff8"}]}