{"info":{"_postman_id":"abaf04d5-8e75-49e5-8d23-92f0ff60edb6","name":"SOS1819-08-emigrations-by-countries","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"6913613","collectionId":"abaf04d5-8e75-49e5-8d23-92f0ff60edb6","publishedId":"S17xt6g2","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-04-02T17:51:02.000Z"},"item":[{"name":"DEL /emigrations-by-countries/ 1","event":[{"listen":"test","script":{"id":"cc6f362d-25fe-41c0-a778-5633e0934029","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript"}}],"id":"c5f7d294-93eb-464f-8020-0d3170cc3276","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"    {\n        \"country\": \"USA\",\n        \"year\": 2018,\n        \"emigrantman\": 1500000,\n        \"emigrantwoman\": 1488796\n    }"},"url":"https://sos1819-08.herokuapp.com/api/v1/emigrations-by-countries/","urlObject":{"protocol":"https","path":["api","v1","emigrations-by-countries",""],"host":["sos1819-08","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c5f7d294-93eb-464f-8020-0d3170cc3276"},{"name":"GET /emigrations-by-countries/loadInitialData","event":[{"listen":"test","script":{"id":"cc6f362d-25fe-41c0-a778-5633e0934029","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript"}}],"id":"b880f30a-ed55-4c19-91d1-3d84dcea1f46","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"    {\n        \"country\": \"Spain\",\n        \"year\": 2018,\n        \"emigrantman\": 609615,\n        \"emigrantwoman\": 736247,\n        \"totalemigrant\": 1345862\n    }"},"url":"https://sos1819-08.herokuapp.com/api/v1/emigrations-by-countries/loadInitialData","urlObject":{"protocol":"https","path":["api","v1","emigrations-by-countries","loadInitialData"],"host":["sos1819-08","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b880f30a-ed55-4c19-91d1-3d84dcea1f46"},{"name":"Get /emigrations-by-countries/","event":[{"listen":"test","script":{"id":"cc6f362d-25fe-41c0-a778-5633e0934029","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"API return some data\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.length > 0).to.be.true;","});"],"type":"text/javascript"}}],"id":"19b0ab37-eeeb-4f77-acd9-94aa9469c9ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"    {\n        \"country\": \"Spain\",\n        \"year\": 2018,\n        \"emigrant-Man\": 609615,\n        \"emigrant-Woman\": 736247,\n        \"total-Emigrant\": 1345862\n    }"},"url":"https://sos1819-08.herokuapp.com/api/v1/emigrations-by-countries/","urlObject":{"protocol":"https","path":["api","v1","emigrations-by-countries",""],"host":["sos1819-08","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"19b0ab37-eeeb-4f77-acd9-94aa9469c9ab"},{"name":"POST /emigrations-by-countries/","event":[{"listen":"test","script":{"id":"cc6f362d-25fe-41c0-a778-5633e0934029","exec":["pm.test(\"Successful POST request\", function () {\r","    pm.expect(pm.response.code).to.be.oneOf([201,202]);\r","});"],"type":"text/javascript"}}],"id":"c9d4b81e-4f37-4e64-807d-54fac1f0fc66","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"    {\n        \"country\": \"Argentinaaaaa\",\n        \"year\": \"-2010\",\n        \"emigrantman\": 1527889,\n        \"emigrantwoman\": 1488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796148879614887961488796,\n        \"totalemigrant\": 3016685.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003,\n        \"a\":\"b\",\n        \"c:\": 0.0\n    }"},"url":"https://sos1819-08.herokuapp.com/api/v1/emigrations-by-countries/","urlObject":{"protocol":"https","path":["api","v1","emigrations-by-countries",""],"host":["sos1819-08","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c9d4b81e-4f37-4e64-807d-54fac1f0fc66"},{"name":"GET /emigrations-by-countries/USA/2018","event":[{"listen":"test","script":{"id":"cc6f362d-25fe-41c0-a778-5633e0934029","exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"id":"af331571-43a8-47a9-82c3-fa7479d8b64e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"    {\n        \"country\": \"USA\",\n        \"year\": 2018,\n        \"emigrantman\": 1527889,\n        \"emigrantwoman\": 1488796,\n        \"totalemigrant\": 3016685\n    }"},"url":"https://sos1819-08.herokuapp.com/api/v1/emigrations-by-countries/USA/2018","urlObject":{"protocol":"https","path":["api","v1","emigrations-by-countries","USA","2018"],"host":["sos1819-08","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"af331571-43a8-47a9-82c3-fa7479d8b64e"},{"name":"DEL emigrations-by-countries/USA/2018","event":[{"listen":"test","script":{"id":"cc6f362d-25fe-41c0-a778-5633e0934029","exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"id":"1e83e131-43fd-494c-b4ea-5bcc743145ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"    {\n        \"country\": \"USA\",\n        \"year\": 2018,\n        \"emigrantman\": 1527889,\n        \"emigrantwoman\": 1488796,\n        \"totalemigrant\": 3016685\n    }"},"url":"https://sos1819-08.herokuapp.com/api/v1/emigrations-by-countries/USA/2018","urlObject":{"protocol":"https","path":["api","v1","emigrations-by-countries","USA","2018"],"host":["sos1819-08","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1e83e131-43fd-494c-b4ea-5bcc743145ad"},{"name":"PUT /emigrations-by-countries/USA/2017","event":[{"listen":"test","script":{"id":"cc6f362d-25fe-41c0-a778-5633e0934029","exec":["pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});"],"type":"text/javascript"}}],"id":"890abd2f-e6b2-46ef-b7a4-bff28bebb68b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"    {\n        \"country\": \"USA\",\n        \"year\": 2017,\n        \"emigrantman\": 1500000,\n        \"emigrantwoman\": 1488796,\n        \"totalemigrant\": 3016685\n    }"},"url":"https://sos1819-08.herokuapp.com/api/v1/emigrations-by-countries/USA/2017","urlObject":{"protocol":"https","path":["api","v1","emigrations-by-countries","USA","2017"],"host":["sos1819-08","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"890abd2f-e6b2-46ef-b7a4-bff28bebb68b"},{"name":"POST ERR /emigrations-by-countries/USA/2017","event":[{"listen":"test","script":{"id":"cc6f362d-25fe-41c0-a778-5633e0934029","exec":["pm.test(\"Status code is 405\", function () {","    pm.response.to.have.status(405);","});"],"type":"text/javascript"}}],"id":"7bb18fce-548a-4579-894f-b2faffa223df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"    {\n        \"country\": \"Spain\",\n        \"year\": 2018,\n        \"emigrantman\": 609615,\n        \"emigrantwoman\": 736247,\n        \"totalemigrant\": 1345862\n    }"},"url":"https://sos1819-08.herokuapp.com/api/v1/emigrations-by-countries/USA/2017","urlObject":{"protocol":"https","path":["api","v1","emigrations-by-countries","USA","2017"],"host":["sos1819-08","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"7bb18fce-548a-4579-894f-b2faffa223df"},{"name":"PUT ERR /emigrations-by-countries/","event":[{"listen":"test","script":{"id":"cc6f362d-25fe-41c0-a778-5633e0934029","exec":["pm.test(\"Status code is 405\", function () {","    pm.response.to.have.status(405);","});"],"type":"text/javascript"}}],"id":"df75bbbe-5f66-4bf1-af28-7b44abf3f21f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"    {\n        \"country\": \"Spain\",\n        \"year\": 2018,\n        \"emigrantman\": 609615,\n        \"emigrantwoman\": 736247,\n        \"totalemigrant\": 1345862\n    }"},"url":"https://sos1819-08.herokuapp.com/api/v1/emigrations-by-countries/","urlObject":{"protocol":"https","path":["api","v1","emigrations-by-countries",""],"host":["sos1819-08","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"df75bbbe-5f66-4bf1-af28-7b44abf3f21f"},{"name":"PUT ERR /emigrations-by-countries/Mexico/2016","event":[{"listen":"test","script":{"id":"cc6f362d-25fe-41c0-a778-5633e0934029","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});"],"type":"text/javascript"}}],"id":"7ad89308-68d7-436f-97f3-800372e0f9cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"    {\n        \"country\": \"Spain\",\n        \"year\": 2018,\n        \"emigrantman\": 609615,\n        \"emigrantwoman\": 736247,\n        \"totalemigrant\": 1345862\n    }"},"url":"https://sos1819-08.herokuapp.com/api/v1/emigrations-by-countries/Mexico/2016","urlObject":{"protocol":"https","path":["api","v1","emigrations-by-countries","Mexico","2016"],"host":["sos1819-08","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"7ad89308-68d7-436f-97f3-800372e0f9cf"},{"name":"POST ERR recurso existente /emigrations-by-countries/","event":[{"listen":"test","script":{"id":"cc6f362d-25fe-41c0-a778-5633e0934029","exec":["pm.test(\"Status code is 409\", function () {","    pm.response.to.have.status(409);","});"],"type":"text/javascript"}}],"id":"63489fbc-5fa5-43b0-a25b-fb953de5053a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"    {\n        \"country\": \"USA\",\n        \"year\": 2017,\n        \"emigrantman\": 1500000,\n        \"emigrantwoman\": 1488796,\n        \"totalemigrant\": 3016685\n    }"},"url":"https://sos1819-08.herokuapp.com/api/v1/emigrations-by-countries/","urlObject":{"protocol":"https","path":["api","v1","emigrations-by-countries",""],"host":["sos1819-08","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"63489fbc-5fa5-43b0-a25b-fb953de5053a"},{"name":"POST JSON SIN UN CAMPO /emigrations-by-countries/","event":[{"listen":"test","script":{"id":"cc6f362d-25fe-41c0-a778-5633e0934029","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});"],"type":"text/javascript"}}],"id":"831ef92d-2b10-4593-8256-a395a0f56b11","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"    {\n        \"country\": \"USA\",\n        \"year\": 2018,\n        \"emigrantman\": 1500000,\n        \"emigrantwoman\": 1488796\n    }"},"url":"https://sos1819-08.herokuapp.com/api/v1/emigrations-by-countries/","urlObject":{"protocol":"https","path":["api","v1","emigrations-by-countries",""],"host":["sos1819-08","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"831ef92d-2b10-4593-8256-a395a0f56b11"},{"name":"GET recurso inexistente/emigrations-by-countries/Argentina/2017","event":[{"listen":"test","script":{"id":"cc6f362d-25fe-41c0-a778-5633e0934029","exec":["pm.test(\"Status code is 404\", function () {","    pm.response.to.have.status(404);","});"],"type":"text/javascript"}}],"id":"8081b3ce-ca85-4a17-bcd7-79dfe9806633","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"    {\n        \"country\": \"USA\",\n        \"year\": 2018,\n        \"emigrantman\": 1500000,\n        \"emigrantwoman\": 1488796\n    }"},"url":"https://sos1819-08.herokuapp.com/api/v1/emigrations-by-countries/Argentina/2017","urlObject":{"protocol":"https","path":["api","v1","emigrations-by-countries","Argentina","2017"],"host":["sos1819-08","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8081b3ce-ca85-4a17-bcd7-79dfe9806633"},{"name":"DEL /emigrations-by-countries/","event":[{"listen":"test","script":{"id":"cc6f362d-25fe-41c0-a778-5633e0934029","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript"}}],"id":"91404250-7a52-4428-b289-77f75e402596","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"    {\n        \"country\": \"USA\",\n        \"year\": 2018,\n        \"emigrantman\": 1500000,\n        \"emigrantwoman\": 1488796\n    }"},"url":"https://sos1819-08.herokuapp.com/api/v1/emigrations-by-countries/","urlObject":{"protocol":"https","path":["api","v1","emigrations-by-countries",""],"host":["sos1819-08","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"91404250-7a52-4428-b289-77f75e402596"},{"name":"GET vacio /emigrations-by-countries/","event":[{"listen":"test","script":{"id":"cc6f362d-25fe-41c0-a778-5633e0934029","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});",""],"type":"text/javascript"}}],"id":"eb4d436c-7059-460e-bf17-4576f513dcb1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"    {\n        \"country\": \"Spain\",\n        \"year\": 2018,\n        \"emigrantman\": 609615,\n        \"emigrantwoman\": 736247,\n        \"totalemigrant\": 1345862\n    }"},"url":"https://sos1819-08.herokuapp.com/api/v1/emigrations-by-countries/","urlObject":{"protocol":"https","path":["api","v1","emigrations-by-countries",""],"host":["sos1819-08","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"eb4d436c-7059-460e-bf17-4576f513dcb1"},{"name":"GET /emigrations-by-countries/loadInitialData 2","event":[{"listen":"test","script":{"id":"cc6f362d-25fe-41c0-a778-5633e0934029","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript"}}],"id":"cbb2e7eb-40a8-4d84-ba44-b96af1804ef9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"    {\n        \"country\": \"Spain\",\n        \"year\": 2018,\n        \"emigrantman\": 609615,\n        \"emigrantwoman\": 736247,\n        \"totalemigrant\": 1345862\n    }"},"url":"https://sos1819-08.herokuapp.com/api/v1/emigrations-by-countries/loadInitialData","urlObject":{"protocol":"https","path":["api","v1","emigrations-by-countries","loadInitialData"],"host":["sos1819-08","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"cbb2e7eb-40a8-4d84-ba44-b96af1804ef9"}]}