{"info":{"_postman_id":"028b65b0-5143-4539-9c40-e1dc35fa69c4","name":"XSOS1819-02-companies-stats","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"6990295","collectionId":"028b65b0-5143-4539-9c40-e1dc35fa69c4","publishedId":"S17oyqep","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-03-19T19:33:38.000Z"},"item":[{"name":"GET/companies-stats/loadInitialData","id":"0ab746b4-f7fb-4ac6-bd15-5a8d90e8c2a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://sos1819-02.herokuapp.com/api/v1/companies-stats/loadInitialData","description":"<p>Cuando está vacío, al hacer el loadInitialData te crea el array con todos los 5 hemos puesto.</p>\n","urlObject":{"protocol":"https","path":["api","v1","companies-stats","loadInitialData"],"host":["sos1819-02","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"0ab746b4-f7fb-4ac6-bd15-5a8d90e8c2a1"},{"name":"GET/api/v1/companies-stats/","id":"4dab334c-c399-4af7-85ec-b18c59e0984d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n        \"country\": \"EEUU\",\n        \"year\": \"2007\",\n        \"company\": \"apple\",\n        \"income\": \"182,795\",\n        \"marketcapitalization\": \"\\\"732.63\",\n        \"employee\": 80300\n    }"},"url":"https://sos1819-02.herokuapp.com/api/v1/companies-stats/","description":"<p>Devuelve una lista con todos los recursos</p>\n","urlObject":{"protocol":"https","path":["api","v1","companies-stats",""],"host":["sos1819-02","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"4dab334c-c399-4af7-85ec-b18c59e0984d"},{"name":"POST/api/v1/companies-stats/","id":"f20f10f2-1a8b-4edc-a292-798d0b0c7cc8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"  {\n      \n        \"country\": \"Corea del Norte\",\n        \"year\": \"2010\",\n        \"company\": \"mishubishi\",\n        \"income\": \"174,2\",\n        \"marketcapitalization\": \"110.10\",\n        \"employee\": \"263000\"\n    }"},"url":"https://sos1819-02.herokuapp.com/api/v1/companies-stats/","description":"<p>Crea un nuevo recurso</p>\n","urlObject":{"protocol":"https","path":["api","v1","companies-stats",""],"host":["sos1819-02","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"f20f10f2-1a8b-4edc-a292-798d0b0c7cc8"},{"name":"GET/api/v1/companies-stats/2014","id":"088bf8eb-b524-46f2-a044-f4a1cf21b2c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://sos1819-02.herokuapp.com/api/v1/companies-stats/2014","description":"<p>Devuelve ese recurso</p>\n","urlObject":{"protocol":"https","path":["api","v1","companies-stats","2014"],"host":["sos1819-02","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"088bf8eb-b524-46f2-a044-f4a1cf21b2c7"},{"name":"DELETE/api/v1/companies-stats/2010","id":"593b152d-34a6-43e7-b1c8-509843953b55","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://sos1819-02.herokuapp.com/api/v1/companies-stats/2010","urlObject":{"protocol":"https","path":["api","v1","companies-stats","2010"],"host":["sos1819-02","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"593b152d-34a6-43e7-b1c8-509843953b55"},{"name":"PUT/api/v1/companies-stats/2014","id":"3135796c-2bd7-4162-b897-5f249daf1ff0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"    {\n        \"country\": \"EEUU\",\n        \"year\": \"2014\",\n        \"company\": \"asus\",\n        \"income\": \"182,795\",\n        \"marketcapitalization\": \"732.63\",\n        \"employee\": \"80300\"\n    }"},"url":"https://sos1819-02.herokuapp.com/api/v1/companies-stats/2014","description":"<p>Actualiza ese recurso</p>\n","urlObject":{"protocol":"https","path":["api","v1","companies-stats","2014"],"host":["sos1819-02","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"3135796c-2bd7-4162-b897-5f249daf1ff0"},{"name":"POST/api/v1/companies-stats/2014","id":"31627ba8-eea9-4689-be02-ee29eac8c979","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://sos1819-02.herokuapp.com/api/v1/companies-stats/2014","description":"<p>Metodo no permitido</p>\n","urlObject":{"protocol":"https","path":["api","v1","companies-stats","2014"],"host":["sos1819-02","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"31627ba8-eea9-4689-be02-ee29eac8c979"},{"name":"PUT/api/v1/companies-stats","id":"3a3fb9e7-6e6c-460c-a2c3-0d71bbda62e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://sos1819-02.herokuapp.com/api/v1/companies-stats","description":"<p>Metodo no permitido</p>\n","urlObject":{"protocol":"https","path":["api","v1","companies-stats"],"host":["sos1819-02","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"3a3fb9e7-6e6c-460c-a2c3-0d71bbda62e9"},{"name":"DELETE/api/v1/companies-stats/","id":"f0a75310-30ff-4fbd-83e7-2f2c56fdf852","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://sos1819-02.herokuapp.com/api/v1/companies-stats/","urlObject":{"protocol":"https","path":["api","v1","companies-stats",""],"host":["sos1819-02","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"f0a75310-30ff-4fbd-83e7-2f2c56fdf852"},{"name":"PUT/400/api/v1/companies-stats/2014","id":"3b94e4d9-b934-415d-85bf-2e82fe746e7a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"    {\n        \"country\": \"EEUU\",\n        \"year\": \"2214\",\n        \"company\": \"asus\",\n        \"income\": \"182,795\",\n        \"marketcapitalization\": \"732.63\",\n        \"employee\": \"80300\"\n    }"},"url":"https://sos1819-02.herokuapp.com/api/v1/companies-stats/2014","description":"<p>Un put que debe contener el mismo id del recurso al que se especifica en la url, sino error 400</p>\n","urlObject":{"protocol":"https","path":["api","v1","companies-stats","2014"],"host":["sos1819-02","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"3b94e4d9-b934-415d-85bf-2e82fe746e7a"},{"name":"POST/conflict/api/v1/companies-stats/","id":"e8112832-bed9-4710-813f-c086487b1dc9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"    {\n        \"_id\": \"5c9bf78e4480fb00176302e4\",\n        \"country\": \"eu\",\n        \"year\": \"2014\",\n        \"company\": \"asus\",\n        \"income\": \"182,795\",\n        \"marketcapitalization\": \"732.63\",\n        \"employee\": \"80300\"\n    }"},"url":"https://sos1819-02.herokuapp.com/api/v1/companies-stats/","description":"<p>No se puede hacer un POST a un recurso que ya exite, error --&gt; 409</p>\n","urlObject":{"protocol":"https","path":["api","v1","companies-stats",""],"host":["sos1819-02","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"e8112832-bed9-4710-813f-c086487b1dc9"},{"name":"POST/400bad/api/v1/companies-stats/","id":"726d8561-cefa-4011-baf0-ea219fdcd7d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n            \"country\": \"Belgica\",\n            \"company\": \"volks\",\n            \"income\": \"120,3\",\n            \"marketcapitalization\": \"102.06\",\n            \"employee\": \"322305\"\n        }"},"url":"https://sos1819-02.herokuapp.com/api/v1/companies-stats/","urlObject":{"protocol":"https","path":["api","v1","companies-stats",""],"host":["sos1819-02","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"726d8561-cefa-4011-baf0-ea219fdcd7d3"},{"name":"Recurso inexistente/api/v1/companies-stats/1999","id":"d11046d2-1993-494d-ae1d-4da0b1ac61a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"    {\n        \"_id\": \"5c9bf78e4480fb00176302e4\",\n        \"country\": \"eu\",\n        \"year\": \"2014\",\n        \"company\": \"asus\",\n        \"income\": \"182,795\",\n        \"marketcapitalization\": \"732.63\",\n        \"employee\": \"80300\"\n    }"},"url":"https://sos1819-02.herokuapp.com/api/v1/companies-stats/1999","description":"<p>GET/Recurso inexistente/</p>\n","urlObject":{"protocol":"https","path":["api","v1","companies-stats","1999"],"host":["sos1819-02","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"d11046d2-1993-494d-ae1d-4da0b1ac61a7"}]}