{"info":{"_postman_id":"cf9dddcc-b595-4f96-90bf-b929fa57af71","name":"Contact List Documentation","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"4012288","collectionId":"cf9dddcc-b595-4f96-90bf-b929fa57af71","publishedId":"SWLceUSf","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-01-03T01:59:05.000Z"},"item":[{"name":"Get Contact List","event":[{"listen":"test","script":{"id":"47a5d7c1-6b72-4091-a1c4-d2b2fd65c94e","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Content-Type is application/json\", function () {","    pm.response.to.have.header(\"Content-Type\",\"application/json; charset=utf-8\");","});","",""],"type":"text/javascript"}}],"id":"33332ed3-3c6b-47f6-8abb-bde21cbd0d10","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://3.13.86.142:3000/contacts","urlObject":{"protocol":"http","port":"3000","path":["contacts"],"host":["3","13","86","142"],"query":[],"variable":[]}},"response":[{"id":"90542535-ad2f-4d23-8d23-f72f619b8d90","name":"Get Contact List","originalRequest":{"method":"GET","header":[],"url":"http://3.13.86.142:3000/contacts"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"5e04eaaf2369c5050ec00e64\",\n        \"firstName\": \"Amy\",\n        \"lastName\": \"Smith\",\n        \"email\": \"asmith@fake.com\",\n        \"location\": {\n            \"city\": \"Boston, MA\",\n            \"country\": \"USA\"\n        },\n        \"employer\": {\n            \"jobTitle\": \"QA Engineer\",\n            \"company\": \"Microsoft\"\n        }\n    },\n    {\n        \"_id\": \"5e04ecad2369c5050ec00e8c\",\n        \"firstName\": \"Bob\",\n        \"lastName\": \"Miller\",\n        \"email\": \"bmiller@fake.com\",\n        \"location\": {\n            \"city\": \"London\",\n            \"country\": \"UK\"\n        },\n        \"employer\": {\n            \"jobTitle\": \"Product Owner\",\n            \"company\": \"Apple\"\n        }\n    },\n    {\n        \"_id\": \"5e04ecb62369c5050ec00e8f\",\n        \"firstName\": \"Carol\",\n        \"lastName\": \"Taylor\",\n        \"email\": \"ctaylor@fake.com\",\n        \"location\": {\n            \"city\": \"Toronto, ON\",\n            \"country\": \"Canada\"\n        },\n        \"employer\": {\n            \"jobTitle\": \"Team Manager\",\n            \"company\": \"Google\"\n        }\n    }\n]"}],"_postman_id":"33332ed3-3c6b-47f6-8abb-bde21cbd0d10"},{"name":"Add Contact","event":[{"listen":"test","script":{"id":"350dc908-2019-4606-9797-108aa536c2d2","exec":["var jsonData = pm.response.json();","pm.environment.set(\"id\", jsonData._id);","","pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript"}}],"id":"1ea9f47d-65b6-47d9-af7d-25c4d09f0cf9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"Amy\",\n    \"lastName\": \"Smith\",\n    \"email\": \"asmith@thinkingtester.com\",\n    \"location\": {\n        \"city\": \"Boston, MA\",\n        \"country\": \"USA\"\n    },\n    \"employer\": {\n    \t\"jobTitle\": \"Software Tester\",\n    \t\"company\": \"Microsoft\"\n    }\n}"},"url":"http://3.13.86.142:3000/contacts","description":"<ul>\n<li>FirstName, LastName, and Email are required</li>\n<li>FirstName and LastName allow only alphabetic characters, plus spaces, hyphens, and apostrophes</li>\n<li>Email must be in standard format</li>\n<li>FirstName is limited to 20 characters</li>\n<li>Email is limited to 50 characters</li>\n<li>All other fields are limited to 30 characters</li>\n</ul>\n","urlObject":{"protocol":"http","port":"3000","path":["contacts"],"host":["3","13","86","142"],"query":[],"variable":[]}},"response":[{"id":"c1c3d5e7-6213-4ff3-90e2-b65919ff266a","name":"Add Contact","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"Amy\",\n    \"lastName\": \"Smith\",\n    \"email\": \"asmith@thinkingtester.com\",\n    \"location\": {\n        \"city\": \"Boston, MA\",\n        \"country\": \"USA\"\n    },\n    \"employer\": {\n    \t\"jobTitle\": \"Software Tester\",\n    \t\"company\": \"Microsoft\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://3.13.86.142:3000/contacts"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"5e066f8a2369c5050ec00f06\",\n    \"firstName\": \"Amy\",\n    \"lastName\": \"Smith\",\n    \"email\": \"asmith@thinkingtester.com\",\n    \"location\": {\n        \"city\": \"Boston, MA\",\n        \"country\": \"USA\"\n    },\n    \"employer\": {\n        \"jobTitle\": \"Software Tester\",\n        \"company\": \"Microsoft\"\n    }\n}"}],"_postman_id":"1ea9f47d-65b6-47d9-af7d-25c4d09f0cf9"},{"name":"Get Contact","event":[{"listen":"test","script":{"id":"ee2839c8-9381-4574-88c4-00128d03f10c","exec":["var jsonData = pm.response.json();","","pm.test(\"Correct contact is returned\", function () {","    pm.expect(pm.response.text()).to.include(\"asmith@thinkingtester.com\");","});","","pm.test(\"Correct first name is returned\", function() {","    pm.expect(jsonData.firstName).to.eql(environment.firstName);","});","","pm.test(\"Correct last name is returned\", function() {","    pm.expect(jsonData.lastName).to.eql(environment.lastName);","});"],"type":"text/javascript"}}],"id":"58535362-b450-4a43-831b-9cf0413da6a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://3.13.86.142:3000/contacts/{{id}}","urlObject":{"protocol":"http","port":"3000","path":["contacts","{{id}}"],"host":["3","13","86","142"],"query":[],"variable":[]}},"response":[{"id":"ace8306a-4522-4f0b-a60a-0f1a49accea0","name":"Get Contact","originalRequest":{"method":"GET","header":[],"url":"http://3.13.86.142:3000/contacts/{{id}}"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"5e066f8a2369c5050ec00f06\",\n    \"firstName\": \"Amy\",\n    \"lastName\": \"Smith\",\n    \"email\": \"asmith@thinkingtester.com\",\n    \"location\": {\n        \"city\": \"Boston, MA\",\n        \"country\": \"USA\"\n    },\n    \"employer\": {\n        \"jobTitle\": \"Software Tester\",\n        \"company\": \"Microsoft\"\n    }\n}"}],"_postman_id":"58535362-b450-4a43-831b-9cf0413da6a2"},{"name":"Update Contact","id":"47e2a3d0-cf89-4a14-ac96-cdb7e0bf46b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"Robert\",\n    \"lastName\": \"Hill\",\n    \"email\": \"rhill@fake.com\",\n    \"location\": {\n        \"city\": \"London\",\n        \"country\": \"UK\"\n    },\n    \"employer\": {\n    \t\"jobTitle\": \"QA Lead\",\n    \t\"company\": \"Apple\"\n    }\n}"},"url":"http://3.13.86.142:3000/contacts/{{id}}","description":"<ul>\n<li>FirstName, LastName, and Email are required</li>\n<li>FirstName and LastName allow only alphabetic characters, plus spaces, hyphens, and apostrophes</li>\n<li>Email must be in standard format</li>\n<li>FirstName is limited to 20 characters</li>\n<li>Email is limited to 50 characters</li>\n<li>All other fields are limited to 30 characters</li>\n</ul>\n","urlObject":{"protocol":"http","port":"3000","path":["contacts","{{id}}"],"host":["3","13","86","142"],"query":[],"variable":[]}},"response":[{"id":"72d67a43-031d-48f3-826a-1e3f4d42aa27","name":"Update Contact","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"Robert\",\n    \"lastName\": \"Hill\",\n    \"email\": \"rhill@fake.com\",\n    \"location\": {\n        \"city\": \"London\",\n        \"country\": \"UK\"\n    },\n    \"employer\": {\n    \t\"jobTitle\": \"QA Lead\",\n    \t\"company\": \"Apple\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://3.13.86.142:3000/contacts/{{id}}"},"status":"No Content","code":204,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"47e2a3d0-cf89-4a14-ac96-cdb7e0bf46b1"},{"name":"Delete Contact","id":"d532d13c-460f-4516-9dd0-25994a5c7431","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://3.13.86.142:3000/contacts/{{id}}","urlObject":{"protocol":"http","port":"3000","path":["contacts","{{id}}"],"host":["3","13","86","142"],"query":[],"variable":[]}},"response":[{"id":"396fe0d7-db2a-4b68-b57f-421ab975cc6d","name":"Delete Contact","originalRequest":{"method":"DELETE","header":[],"url":"http://3.13.86.142:3000/contacts/{{id}}"},"status":"No Content","code":204,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"d532d13c-460f-4516-9dd0-25994a5c7431"}]}