{"info":{"_postman_id":"7c12b2d2-17ba-4fdb-980e-e05670d6f11e","name":"SOS1819-08-expenses-of-countries-in-education-and-culture","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"6911989","collectionId":"7c12b2d2-17ba-4fdb-980e-e05670d6f11e","publishedId":"S17xt6bh","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-04-02T17:40:50.000Z"},"item":[{"name":"DELETE /api/v1/expenses-of-countries-in-education-and-culture/","event":[{"listen":"test","script":{"id":"ff81ae80-4be0-4145-8a6d-ec5041ce6e7d","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","}); ",""],"type":"text/javascript"}}],"id":"45ba03b3-2b36-4fd6-8e9d-f3246faf5652","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":" {\n        \n        \"country\": \"China\",\n        \"year\": 2015,\n        \"countryExpense\": 78787.8,\n        \"budgetPercentage\": 45.45,\n        \"expensePerCapita\": 2006\n    }\n"},"url":"https://sos1819-08.herokuapp.com/api/v1/expenses-of-countries-in-education-and-culture/","urlObject":{"protocol":"https","path":["api","v1","expenses-of-countries-in-education-and-culture",""],"host":["sos1819-08","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"45ba03b3-2b36-4fd6-8e9d-f3246faf5652"},{"name":"GET /expenses-of-countries-in-education-and-culture","event":[{"listen":"test","script":{"id":"ff81ae80-4be0-4145-8a6d-ec5041ce6e7d","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","}); ","","pm.test(\"API doesn´t have any data\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.length === 0).to.be.true;","});","",""],"type":"text/javascript"}}],"id":"1d280665-ee24-46e2-8114-eb1dc75b6538","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":" {\n        \n        \"country\": \"China\",\n        \"year\": 2015,\n        \"countryExpense\": 78787.8,\n        \"budgetPercentage\": 45.45,\n        \"expensePerCapita\": 2006\n    }\n"},"url":"https://sos1819-08.herokuapp.com/api/v1/expenses-of-countries-in-education-and-culture","urlObject":{"protocol":"https","path":["api","v1","expenses-of-countries-in-education-and-culture"],"host":["sos1819-08","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1d280665-ee24-46e2-8114-eb1dc75b6538"},{"name":"GET /expenses-of-countries-in-education-and-culture/LoadInitialData","event":[{"listen":"test","script":{"id":"8761feb5-8066-48df-b13e-0eefeef3510d","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});",""],"type":"text/javascript"}}],"id":"a4ee3318-a28e-4c84-99ef-fbf01b02b688","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://sos1819-08.herokuapp.com/api/v1/expenses-of-countries-in-education-and-culture/LoadInitialData","urlObject":{"protocol":"https","path":["api","v1","expenses-of-countries-in-education-and-culture","LoadInitialData"],"host":["sos1819-08","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a4ee3318-a28e-4c84-99ef-fbf01b02b688"},{"name":"GET /expenses-of-countries-in-education-and-culture/","event":[{"listen":"test","script":{"id":"0b48daf8-3a3b-4d44-a025-32938a782a0c","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"API have some data\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.length > 0).to.be.true;","});"],"type":"text/javascript"}}],"id":"9ab7f0db-1f21-44e3-97d4-e619eb94becb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://sos1819-08.herokuapp.com/api/v1/expenses-of-countries-in-education-and-culture/","urlObject":{"protocol":"https","path":["api","v1","expenses-of-countries-in-education-and-culture",""],"host":["sos1819-08","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"9ab7f0db-1f21-44e3-97d4-e619eb94becb"},{"name":"POST /expenses-of-countries-in-education-and-culture/","event":[{"listen":"test","script":{"id":"7254abdd-1625-4c43-a0b3-d750be9f1584","exec":["tests[\"Successful POST request\"] = responseCode.code === 201 || responseCode.code === 202;","",""],"type":"text/javascript"}}],"id":"6b5cc717-37c0-479c-aee9-81ac071cd83e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":" {\n        \n        \"country\": \"China\",\n        \"year\": 2015,\n        \"countryExpense\": 78787.8,\n        \"budgetPercentage\": 45.45,\n        \"expensePerCapita\": 2006\n    }\n"},"url":"https://sos1819-08.herokuapp.com/api/v1/expenses-of-countries-in-education-and-culture/","urlObject":{"protocol":"https","path":["api","v1","expenses-of-countries-in-education-and-culture",""],"host":["sos1819-08","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"6b5cc717-37c0-479c-aee9-81ac071cd83e"},{"name":"GET /expenses-of-countries-in-education-and-culture/China/2015","event":[{"listen":"test","script":{"id":"3e922550-84cb-4d19-b54e-ac62aaeaa295","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","pm.test(\"Body matches string\", function () {","    pm.expect(pm.response.text()).to.include(\"China\");","});","","pm.test(\"Body matches Integer\", function () {","    pm.expect(pm.response.text()).to.include(2015);","});"],"type":"text/javascript"}}],"id":"1195dbdd-544a-412d-9609-2f862a307a90","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://sos1819-08.herokuapp.com/api/v1/expenses-of-countries-in-education-and-culture/China/2015","urlObject":{"protocol":"https","path":["api","v1","expenses-of-countries-in-education-and-culture","China","2015"],"host":["sos1819-08","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1195dbdd-544a-412d-9609-2f862a307a90"},{"name":"PUT /expenses-of-countries-in-education-and-culture/China/2015","event":[{"listen":"test","script":{"id":"b70da4bc-c6ee-45dd-bea9-8ef172fe21fc","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript"}}],"id":"53174efe-321c-4279-a565-73026bd02aa5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":" {\n        \n        \"country\": \"China\",\n        \"year\": 2015,\n        \"countryExpense\": 44444,\n        \"budgetPercentage\": 22.22,\n        \"expensePerCapita\": 1111\n    }"},"url":"https://sos1819-08.herokuapp.com/api/v1/expenses-of-countries-in-education-and-culture/China/2015","urlObject":{"protocol":"https","path":["api","v1","expenses-of-countries-in-education-and-culture","China","2015"],"host":["sos1819-08","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"53174efe-321c-4279-a565-73026bd02aa5"},{"name":"PUT /expenses-of-countries-in-education-and-culture/China/2015","event":[{"listen":"test","script":{"id":"b70da4bc-c6ee-45dd-bea9-8ef172fe21fc","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});"],"type":"text/javascript"}}],"id":"0e5de11d-a782-4c1b-98ee-b88e1f496ecc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":" {\n        \n        \"country\": \"Portugal\",\n        \"year\": 2017,\n        \"countryExpense\": 44444,\n        \"budgetPercentage\": 22.22,\n        \"expensePerCapita\": 1111\n    }"},"url":"https://sos1819-08.herokuapp.com/api/v1/expenses-of-countries-in-education-and-culture/China/2015","description":"<p>This put is a forced error</p>\n","urlObject":{"protocol":"https","path":["api","v1","expenses-of-countries-in-education-and-culture","China","2015"],"host":["sos1819-08","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"0e5de11d-a782-4c1b-98ee-b88e1f496ecc"},{"name":"PUT JSON MAL","event":[{"listen":"test","script":{"id":"b70da4bc-c6ee-45dd-bea9-8ef172fe21fc","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});"],"type":"text/javascript"}}],"id":"b0c36038-598a-4181-bf2e-78f41ebaafad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":" {\n        \n        \"country\": \"China\",\n        \"year\": 2015\n        \n    }"},"url":"https://sos1819-08.herokuapp.com/api/v1/expenses-of-countries-in-education-and-culture/China/2015","urlObject":{"protocol":"https","path":["api","v1","expenses-of-countries-in-education-and-culture","China","2015"],"host":["sos1819-08","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b0c36038-598a-4181-bf2e-78f41ebaafad"},{"name":"POST /expenses-of-countries-in-education-and-culture/","event":[{"listen":"test","script":{"id":"b70da4bc-c6ee-45dd-bea9-8ef172fe21fc","exec":["pm.test(\"Status code is 409\", function () {","    pm.response.to.have.status(409);","});"],"type":"text/javascript"}}],"id":"bf18964e-1c7c-401f-b1aa-ab1cc7e66467","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":" {\n        \n        \"country\": \"China\",\n        \"year\": 2015,\n        \"countryExpense\": 44444,\n        \"budgetPercentage\": 22.22,\n        \"expensePerCapita\": 1111\n    }"},"url":"https://sos1819-08.herokuapp.com/api/v1/expenses-of-countries-in-education-and-culture/","description":"<p>This post is forced to response a 409</p>\n","urlObject":{"protocol":"https","path":["api","v1","expenses-of-countries-in-education-and-culture",""],"host":["sos1819-08","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"bf18964e-1c7c-401f-b1aa-ab1cc7e66467"},{"name":"DELETE /expenses-of-countries-in-education-and-culture/China/2015","event":[{"listen":"test","script":{"id":"8731efe8-c539-4c60-87fe-975707813447","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","",""],"type":"text/javascript"}}],"id":"c8612a8a-ee7e-4a4e-89f3-8510d2ed1fe5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://sos1819-08.herokuapp.com/api/v1/expenses-of-countries-in-education-and-culture/China/2015","urlObject":{"protocol":"https","path":["api","v1","expenses-of-countries-in-education-and-culture","China","2015"],"host":["sos1819-08","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c8612a8a-ee7e-4a4e-89f3-8510d2ed1fe5"},{"name":"GET /expenses-of-countries-in-education-and-culture/Portugal/2013","event":[{"listen":"test","script":{"id":"e99196bb-c4d2-4119-9d42-9cf948920d2f","exec":["pm.test(\"Status code is 404\", function () {","    pm.response.to.have.status(404);","});"],"type":"text/javascript"}}],"id":"85db6f2f-9e1e-4ced-b194-486f646c369e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://sos1819-08.herokuapp.com/api/v1/expenses-of-countries-in-education-and-culture/Portugal/2013","description":"<p>GEt a non existed rec</p>\n","urlObject":{"protocol":"https","path":["api","v1","expenses-of-countries-in-education-and-culture","Portugal","2013"],"host":["sos1819-08","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"85db6f2f-9e1e-4ced-b194-486f646c369e"},{"name":"POST /expenses-of-countries-in-education-and-culture/","event":[{"listen":"test","script":{"id":"b70da4bc-c6ee-45dd-bea9-8ef172fe21fc","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});"],"type":"text/javascript"}}],"id":"473dbff7-0267-4d03-bb13-4cdfc8dc4508","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":" {\n        \n        \"country\": \"China\",\n        \"NOYEARSSS\": 2015,\n        \"countryExpense\": 44444,\n        \"budgetPercentage\": 22.22,\n        \"expensePerCapita\": 1111\n    }"},"url":"https://sos1819-08.herokuapp.com/api/v1/expenses-of-countries-in-education-and-culture/","description":"<p>This post is made to forced a 400 because the JSON it´s not the correct</p>\n","urlObject":{"protocol":"https","path":["api","v1","expenses-of-countries-in-education-and-culture",""],"host":["sos1819-08","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"473dbff7-0267-4d03-bb13-4cdfc8dc4508"},{"name":"POST /expenses-of-countries-in-education-and-culture/Portugal/2013","event":[{"listen":"test","script":{"id":"e0e54e58-6865-4eb2-91f4-b33d3aab7ebd","exec":["pm.test(\"Status code is 405\", function () {","    pm.response.to.have.status(405);","});"],"type":"text/javascript"}}],"id":"bb128752-98e0-4ab1-a6dc-5ddd16c7cb6a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":" {\n        \n        \"country\": \"Portugal\",\n        \"year\": 2013,\n        \"countryExpense\": 44444,\n        \"budgetPercentage\": 22.22,\n        \"expensePerCapita\": 1111\n    }"},"url":"https://sos1819-08.herokuapp.com/api/v1/expenses-of-countries-in-education-and-culture/Portugal/2013","urlObject":{"protocol":"https","path":["api","v1","expenses-of-countries-in-education-and-culture","Portugal","2013"],"host":["sos1819-08","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"bb128752-98e0-4ab1-a6dc-5ddd16c7cb6a"},{"name":"PUT /expenses-of-countries-in-education-and-culture","event":[{"listen":"test","script":{"id":"b70da4bc-c6ee-45dd-bea9-8ef172fe21fc","exec":["pm.test(\"Status code is 405\", function () {","    pm.response.to.have.status(405);","});"],"type":"text/javascript"}}],"id":"93aae714-b0a5-4ca1-baf2-77ee44cbb7d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":" {\n        \n        \"country\": \"Portugal\",\n        \"year\": 2013,\n        \"countryExpense\": 44444,\n        \"budgetPercentage\": 22.22,\n        \"expensePerCapita\": 1111\n    }"},"url":"https://sos1819-08.herokuapp.com/api/v1/expenses-of-countries-in-education-and-culture","urlObject":{"protocol":"https","path":["api","v1","expenses-of-countries-in-education-and-culture"],"host":["sos1819-08","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"93aae714-b0a5-4ca1-baf2-77ee44cbb7d1"},{"name":"DELETE /expenses-of-countries-in-education-and-culture","event":[{"listen":"test","script":{"id":"b70da4bc-c6ee-45dd-bea9-8ef172fe21fc","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript"}}],"id":"bdff340a-1ff9-4f07-83e4-2f40b5f37a3f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":" {\n        \n        \"country\": \"China\",\n        \"NOYEARSSS\": 2015,\n        \"countryExpense\": 44444,\n        \"budgetPercentage\": 22.22,\n        \"expensePerCapita\": 1111\n    }"},"url":"https://sos1819-08.herokuapp.com/api/v1/expenses-of-countries-in-education-and-culture","urlObject":{"protocol":"https","path":["api","v1","expenses-of-countries-in-education-and-culture"],"host":["sos1819-08","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"bdff340a-1ff9-4f07-83e4-2f40b5f37a3f"},{"name":"GET /expenses-of-countries-in-education-and-culture","event":[{"listen":"test","script":{"id":"b70da4bc-c6ee-45dd-bea9-8ef172fe21fc","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"API doesn´t have any data\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.length == 0).to.be.true;","});",""],"type":"text/javascript"}}],"id":"410aabdb-6d9f-4631-8830-91de1bc601dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":" {\n        \n        \"country\": \"China\",\n        \"NOYEARSSS\": 2015,\n        \"countryExpense\": 44444,\n        \"budgetPercentage\": 22.22,\n        \"expensePerCapita\": 1111\n    }"},"url":"https://sos1819-08.herokuapp.com/api/v1/expenses-of-countries-in-education-and-culture","urlObject":{"protocol":"https","path":["api","v1","expenses-of-countries-in-education-and-culture"],"host":["sos1819-08","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"410aabdb-6d9f-4631-8830-91de1bc601dd"}]}