{"info":{"_postman_id":"1089a830-e974-4e03-b08b-f61d0b4dc0ef","name":"SOS1819-02-scorers-stats-docs","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"6869425","collectionId":"1089a830-e974-4e03-b08b-f61d0b4dc0ef","publishedId":"S17usmtj","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-03-27T10:53:21.000Z"},"item":[{"name":"DELETE /scorers-stats","event":[{"listen":"test","script":{"id":"7891bc52-f644-43f2-97d3-1752ea845838","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript"}}],"id":"e6293082-0b40-402a-9e2f-28874e832fbc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://sos1819-02.herokuapp.com/api/v1/scorers-stats/","urlObject":{"protocol":"https","path":["api","v1","scorers-stats",""],"host":["sos1819-02","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"e6293082-0b40-402a-9e2f-28874e832fbc"},{"name":"GET /scorers-stats/ VACIO","event":[{"listen":"test","script":{"id":"7891bc52-f644-43f2-97d3-1752ea845838","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Colección vacía\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.length === 0).to.be.true;","});"],"type":"text/javascript"}}],"id":"b8a18c9e-7de4-47ee-b1ec-4e1064905f83","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://sos1819-02.herokuapp.com/api/v1/scorers-stats/","urlObject":{"protocol":"https","path":["api","v1","scorers-stats",""],"host":["sos1819-02","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b8a18c9e-7de4-47ee-b1ec-4e1064905f83"},{"name":"GET /loadInitialData 200 OK","event":[{"listen":"test","script":{"id":"7891bc52-f644-43f2-97d3-1752ea845838","exec":["pm.test(\"Status code is 201 'Created'\", function () {","    pm.response.to.have.status(201);","});"],"type":"text/javascript"}}],"id":"4a87e50b-d4da-4604-98a9-841f8237d608","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://sos1819-02.herokuapp.com/api/v1/scorers-stats/loadInitialData","urlObject":{"protocol":"https","path":["api","v1","scorers-stats","loadInitialData"],"host":["sos1819-02","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"4a87e50b-d4da-4604-98a9-841f8237d608"},{"name":"GET /loadInitialData 409","event":[{"listen":"test","script":{"id":"7891bc52-f644-43f2-97d3-1752ea845838","exec":["pm.test(\"Status code is 409 'Conflict'\", function () {","    pm.response.to.have.status(409);","});"],"type":"text/javascript"}}],"id":"eac40c93-39e4-4ade-82fc-6d8324138886","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://sos1819-02.herokuapp.com/api/v1/scorers-stats/loadInitialData","urlObject":{"protocol":"https","path":["api","v1","scorers-stats","loadInitialData"],"host":["sos1819-02","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"eac40c93-39e4-4ade-82fc-6d8324138886"},{"name":"GET /scorers-stats/ 200","event":[{"listen":"test","script":{"id":"7891bc52-f644-43f2-97d3-1752ea845838","exec":["pm.test(\"Status code is 200 'OK'\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript"}}],"id":"d8ed8772-271a-4cb3-b0f6-aa5c6eccb424","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://sos1819-02.herokuapp.com/api/v1/scorers-stats/","urlObject":{"protocol":"https","path":["api","v1","scorers-stats",""],"host":["sos1819-02","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"d8ed8772-271a-4cb3-b0f6-aa5c6eccb424"},{"name":"GET /scorers-stats/arg/2004 OK","event":[{"listen":"test","script":{"id":"7891bc52-f644-43f2-97d3-1752ea845838","exec":["pm.test(\"Status code is 200 'OK'\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response must be JSON.\", function () {","    pm.response.to.be.json;","});","",""],"type":"text/javascript"}}],"id":"ccacae1e-dbfe-40f0-b9d0-3492d752c26d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://sos1819-02.herokuapp.com/api/v1/scorers-stats/","urlObject":{"protocol":"https","path":["api","v1","scorers-stats",""],"host":["sos1819-02","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ccacae1e-dbfe-40f0-b9d0-3492d752c26d"},{"name":"GET /scorers-stats/arg/2007 404","event":[{"listen":"test","script":{"id":"7891bc52-f644-43f2-97d3-1752ea845838","exec":["pm.test(\"Status code is 404\", function () {","    pm.response.to.have.status(404);","});"],"type":"text/javascript"}}],"id":"df4063df-f044-4b25-b44c-470ceff05033","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://sos1819-02.herokuapp.com/api/v1/scorers-stats/arg/2007","urlObject":{"protocol":"https","path":["api","v1","scorers-stats","arg","2007"],"host":["sos1819-02","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"df4063df-f044-4b25-b44c-470ceff05033"},{"name":"DELETE /scorers-stats/arg/2004 200","event":[{"listen":"test","script":{"id":"7891bc52-f644-43f2-97d3-1752ea845838","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript"}}],"id":"efcb3cc0-8f2f-4484-b95c-d2c519663cb9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://sos1819-02.herokuapp.com/api/v1/scorers-stats/arg/2004","urlObject":{"protocol":"https","path":["api","v1","scorers-stats","arg","2004"],"host":["sos1819-02","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"efcb3cc0-8f2f-4484-b95c-d2c519663cb9"},{"name":"DELETE /scorers-stats/arg/2004 404","event":[{"listen":"test","script":{"id":"7891bc52-f644-43f2-97d3-1752ea845838","exec":["pm.test(\"Status code is 404\", function () {","    pm.response.to.have.status(404);","});"],"type":"text/javascript"}}],"id":"0dc17aeb-77ab-4f8e-aa65-760bb34da4f2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://sos1819-02.herokuapp.com/api/v1/scorers-stats/arg/2004","urlObject":{"protocol":"https","path":["api","v1","scorers-stats","arg","2004"],"host":["sos1819-02","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"0dc17aeb-77ab-4f8e-aa65-760bb34da4f2"},{"name":"POST /scorers-stats/ 201","event":[{"listen":"test","script":{"id":"7891bc52-f644-43f2-97d3-1752ea845838","exec":["pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});"],"type":"text/javascript"}}],"id":"6c3c3aa7-1b38-4e63-a870-e4152802098b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":" {\n        \"country\": \"portugal\",\n        \"year\": \"13\",\n        \"name\": \"aaaaaa\",\n        \"scorergoal\": 43,\n        \"scorermatch\": 40,\n        \"scoreraverage\": 0.92\n    }"},"url":"https://sos1819-02.herokuapp.com/api/v1/scorers-stats/","urlObject":{"protocol":"https","path":["api","v1","scorers-stats",""],"host":["sos1819-02","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"6c3c3aa7-1b38-4e63-a870-e4152802098b"},{"name":"POST /scorers-stats/ 409","event":[{"listen":"test","script":{"id":"7891bc52-f644-43f2-97d3-1752ea845838","exec":["pm.test(\"Status code is 409\", function () {","    pm.response.to.have.status(409);","});"],"type":"text/javascript"}}],"id":"3133b02d-584e-487f-86c5-32acee984d2f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n        \"country\": \"arg\",\n        \"year\": \"1997\",\n        \"name\": \"maradona\",\n        \"scorergoal\": 2335,\n        \"scorermatch\": 440,\n        \"scoreraverage\": 0.92\n    }"},"url":"https://sos1819-02.herokuapp.com/api/v1/scorers-stats/","urlObject":{"protocol":"https","path":["api","v1","scorers-stats",""],"host":["sos1819-02","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"3133b02d-584e-487f-86c5-32acee984d2f"},{"name":"POST /scorers-stats/arg 405","event":[{"listen":"test","script":{"id":"7891bc52-f644-43f2-97d3-1752ea845838","exec":["pm.test(\"Status code is 405\", function () {","    pm.response.to.have.status(405);","});"],"type":"text/javascript"}}],"id":"e248ae9f-9404-4b3d-8af8-2fa85d0819dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":" {\n        \"country\": \"arg\",\n        \"year\": \"2004\",\n        \"name\": \"lionel-messi\",\n        \"scorergoal\": 233,\n        \"scorermatch\": 440,\n        \"scoreraverage\": 0.92\n    }"},"url":"https://sos1819-02.herokuapp.com/api/v1/scorers-stats/arg","urlObject":{"protocol":"https","path":["api","v1","scorers-stats","arg"],"host":["sos1819-02","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"e248ae9f-9404-4b3d-8af8-2fa85d0819dd"},{"name":"POST /scorers-stats/ 400","event":[{"listen":"test","script":{"id":"7891bc52-f644-43f2-97d3-1752ea845838","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});"],"type":"text/javascript"}}],"id":"b43aa1b3-6588-4f94-a108-b9594d53958d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":" {\n        \"country\": \"arg\",\n        \"year\": \"2004\",\n        \"name\": \"lionel-messi\",\n        \"scorergoool\": 233,\n        \"scoreraverage\": 0.92\n    }"},"url":"https://sos1819-02.herokuapp.com/api/v1/scorers-stats/","urlObject":{"protocol":"https","path":["api","v1","scorers-stats",""],"host":["sos1819-02","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b43aa1b3-6588-4f94-a108-b9594d53958d"},{"name":"PUT /scorers-stats/prt/2009 200","event":[{"listen":"test","script":{"id":"7891bc52-f644-43f2-97d3-1752ea845838","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript"}}],"id":"b28ec891-baa6-4e62-b8f3-17398b74acbb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n        \"country\": \"prt\",\n        \"year\": \"2009\",\n        \"name\": \"cristiano-ronaldo2\",\n        \"scorergoal\": 55555,\n        \"scorermatch\": 292,\n        \"scoreraverage\": 1.07\n    }"},"url":"https://sos1819-02.herokuapp.com/api/v1/scorers-stats/prt/2009","urlObject":{"protocol":"https","path":["api","v1","scorers-stats","prt","2009"],"host":["sos1819-02","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b28ec891-baa6-4e62-b8f3-17398b74acbb"},{"name":"PUT /scorers-stats/prt/2006 404","event":[{"listen":"test","script":{"id":"7891bc52-f644-43f2-97d3-1752ea845838","exec":["pm.test(\"Status code is 404\", function () {","    pm.response.to.have.status(404);","});"],"type":"text/javascript"}}],"id":"921aba7e-17ea-4d9e-bcc7-2a00c6b28163","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n        \"country\": \"prt\",\n        \"year\": \"2009\",\n        \"name\": \"cristiano-ronaldo2\",\n        \"scorergoal\": 55555,\n        \"scorermatch\": 292,\n        \"scoreraverage\": 1.07\n    }"},"url":"https://sos1819-02.herokuapp.com/api/v1/scorers-stats/prt/2006","urlObject":{"protocol":"https","path":["api","v1","scorers-stats","prt","2006"],"host":["sos1819-02","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"921aba7e-17ea-4d9e-bcc7-2a00c6b28163"},{"name":"PUT /scorers-stats/prt/2009 400","event":[{"listen":"test","script":{"id":"7891bc52-f644-43f2-97d3-1752ea845838","exec":["pm.test(\"Status code is 400\", function () {","    pm.response.to.have.status(400);","});"],"type":"text/javascript"}}],"id":"17060bc1-0db1-4a21-aa1b-3a29e6f86dfe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\t\t\n\t\t\"_id\": \"saaaaaaaaaaaaaaaa\",\n        \"country\": \"prt\",\n        \"year\": \"2009\",\n        \"name\": \"cristiano-ronaldo2\",\n        \"scorergoal\": 55555,\n        \"scorermatch\": 292,\n        \"scoreraverage\": 1.07\n    }"},"url":"https://sos1819-02.herokuapp.com/api/v1/scorers-stats/prt/2009","urlObject":{"protocol":"https","path":["api","v1","scorers-stats","prt","2009"],"host":["sos1819-02","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"17060bc1-0db1-4a21-aa1b-3a29e6f86dfe"},{"name":"PUT /scorers-stats/esp/1994 405","event":[{"listen":"test","script":{"id":"7891bc52-f644-43f2-97d3-1752ea845838","exec":["pm.test(\"Status code is 405\", function () {","    pm.response.to.have.status(405);","});"],"type":"text/javascript"}}],"id":"92a670c3-40a6-4f8f-b82a-284ba2df6647","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\t\"_id\": \"aaaaaaaaaa\",\n        \"country\": \"esp\",\n        \"year\": \"1994\",\n        \"name\": \"raul-gonzalez\",\n        \"scorergoal\": 311,\n        \"scorermatch\": 292,\n        \"scoreraverage\": 1.07\n    }"},"url":"https://sos1819-02.herokuapp.com/api/v1/scorers-stats/","urlObject":{"protocol":"https","path":["api","v1","scorers-stats",""],"host":["sos1819-02","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"92a670c3-40a6-4f8f-b82a-284ba2df6647"},{"name":"DELETE /scorers-stats/ 200","event":[{"listen":"test","script":{"id":"7891bc52-f644-43f2-97d3-1752ea845838","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});",""],"type":"text/javascript"}}],"id":"63505adb-755c-4a9f-a14e-3ea588fc1b3b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://sos1819-02.herokuapp.com/api/v1/scorers-stats/","urlObject":{"protocol":"https","path":["api","v1","scorers-stats",""],"host":["sos1819-02","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"63505adb-755c-4a9f-a14e-3ea588fc1b3b"}]}