{"info":{"_postman_id":"643a405d-0c7c-48d6-ab9c-c40330dec563","name":"Starbucks API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"6559172","collectionId":"643a405d-0c7c-48d6-ab9c-c40330dec563","publishedId":"S1Lx1U85","public":true,"customColor":{"top-bar":"116611","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-05-11T01:23:24.000Z"},"item":[{"name":"User","item":[{"name":"user","id":"d72299ff-81a7-4ce8-a696-8c1ab2468d5f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"phone","value":"4154650186","description":"<p>user phone number</p>\n","type":"text"},{"key":"email","value":"cmpe202@testing.com","description":"<p>user email addresss (unique, required)</p>\n","type":"text"},{"key":"pin","value":"1234","description":"<p>4 digit pin number</p>\n","type":"text"}]},"url":"http://54.188.73.76/user","description":"<p>A route for creating a new user profile</p>\n","urlObject":{"protocol":"http","path":["user"],"host":["54","188","73","76"],"query":[],"variable":[]}},"response":[{"id":"020cb618-ccd8-4847-b0e4-e671b15b2eef","name":"starbucks-user","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"pin","value":"1234","type":"text"},{"key":"phone","value":"415465018","type":"text"},{"key":"email","value":"api@starbucksapp.edu","type":"text"}]},"url":"http://54.188.73.76/user"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:3000"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Methods","value":"GET,HEAD,OPTIONS,POST,PUT,DELETE"},{"key":"Access-Control-Allow-Headers","value":"Access-Control-Allow-Headers, Origin, Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers"},{"key":"Cache-Control","value":"no-cache"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"138"},{"key":"ETag","value":"W/\"8a-Evp/uhPSVjB7nX0JFaUrq7vcezo\""},{"key":"Date","value":"Fri, 10 May 2019 19:57:24 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"card\": [],\n    \"authenticated\": false,\n    \"_id\": \"5cd5d7a4ce0bcd01598f6142\",\n    \"pin\": \"1234\",\n    \"phone\": \"415465018\",\n    \"email\": \"api@starbucksapp.edu\",\n    \"__v\": 0\n}"}],"_postman_id":"d72299ff-81a7-4ce8-a696-8c1ab2468d5f"},{"name":"user","id":"76f5da8e-abd7-4b79-b9c8-f18dd5e452b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"}],"url":"http://54.188.73.76/user/?email=cmpe202@testing.com","description":"<p>A route for deleting an existing user profile</p>\n","urlObject":{"protocol":"http","path":["user",""],"host":["54","188","73","76"],"query":[{"key":"email","value":"cmpe202@testing.com"}],"variable":[]}},"response":[],"_postman_id":"76f5da8e-abd7-4b79-b9c8-f18dd5e452b4"},{"name":"user","id":"4b549648-a877-4b32-b6a5-fd3f24592104","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"}],"url":"http://54.188.73.76/user/?email=cmpe202@testing.com","description":"<p>A route for finding an existing user profile by email</p>\n","urlObject":{"protocol":"http","path":["user",""],"host":["54","188","73","76"],"query":[{"key":"email","value":"cmpe202@testing.com"}],"variable":[]}},"response":[],"_postman_id":"4b549648-a877-4b32-b6a5-fd3f24592104"},{"name":"authenticate","id":"42b073a6-f03a-4e9b-bbf7-365f84c426ba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"pin","value":"1234","description":"<p>4 digit pin number</p>\n","type":"text"},{"key":"email","value":"cmpe202@testing.com","type":"text"}]},"url":"http://54.188.73.76/user/authenticate","description":"<p>A route for authenticating user with pin.</p>\n","urlObject":{"protocol":"http","path":["user","authenticate"],"host":["54","188","73","76"],"query":[{"disabled":true,"key":"pin","value":"1234"},{"disabled":true,"key":"email","value":"cmpe202@testing.com"}],"variable":[]}},"response":[],"_postman_id":"42b073a6-f03a-4e9b-bbf7-365f84c426ba"},{"name":"logout","id":"b9dc2a02-f5cf-4bfb-bb2f-f917ea8fc48f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"cmpe202@testing.com","description":"<p>User email to logout</p>\n","type":"text"}]},"url":"http://54.188.73.76/user/logout","description":"<p>A route for authenticating user with pin.</p>\n","urlObject":{"protocol":"http","path":["user","logout"],"host":["54","188","73","76"],"query":[],"variable":[]}},"response":[],"_postman_id":"b9dc2a02-f5cf-4bfb-bb2f-f917ea8fc48f"},{"name":"pin","id":"f3b1116d-5e71-4620-a703-c9f55b5978c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"pin","value":"4321","description":"<p>Current 4 digit pin</p>\n","type":"text"},{"key":"newPin","value":"1234","description":"<p>New 4 digit pin</p>\n","type":"text"},{"key":"email","value":"cmpe202@testing.com","description":"<p>User email address</p>\n","type":"text"}]},"url":"http://54.188.73.76/user/pin","description":"<p>A route for changing the user's pin number.</p>\n","urlObject":{"protocol":"http","path":["user","pin"],"host":["54","188","73","76"],"query":[],"variable":[]}},"response":[],"_postman_id":"f3b1116d-5e71-4620-a703-c9f55b5978c1"}],"id":"53385f28-0e8f-49ed-a4db-b8287121ef53","description":"<p>User Profile &amp; Authentication API</p>\n","event":[{"listen":"prerequest","script":{"id":"2010b628-aac7-40a6-9716-cc8772ee075d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"9c2884a4-381e-4f8c-8884-7edf51fc2027","type":"text/javascript","exec":[""]}}],"_postman_id":"53385f28-0e8f-49ed-a4db-b8287121ef53"},{"name":"Card","item":[{"name":"addCard","id":"26d2bb88-4151-4f62-8a66-696ebe41e007","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"cardId","value":"123456789","description":"<p>9 digit card number</p>\n","type":"text"},{"key":"cardCode","value":"123","description":"<p>3 digit card security code</p>\n","type":"text"},{"key":"email","value":"cmpe202@testing.com","description":"<p> The email address of the profile to recieve the card</p>\n","type":"text"}]},"url":"http://54.188.73.76/addCard","description":"<p>A route for adding a card to user profile</p>\n","urlObject":{"protocol":"http","path":["addCard"],"host":["54","188","73","76"],"query":[],"variable":[]}},"response":[],"_postman_id":"26d2bb88-4151-4f62-8a66-696ebe41e007"}],"id":"189958e2-97b7-4807-948d-d735f5cddc10","description":"<p>Card management API</p>\n","_postman_id":"189958e2-97b7-4807-948d-d735f5cddc10"},{"name":"Order","item":[{"name":"orders","id":"adc7e2c4-76cd-4349-b894-3e769878e56b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"cmpe202@testing.com","description":"<p>The user email managing the order</p>\n","type":"text"},{"key":"cardno","value":"123456789","description":"<p>Card number to use for payment</p>\n","type":"text"},{"key":"qty","value":"1","description":"<p>Number of items in order</p>\n","type":"text"},{"key":"item","value":"coffee","description":"<p>Item name</p>\n","type":"text"},{"key":"milk","value":"yes","description":"<p>Optional features</p>\n","type":"text"}]},"url":"http://54.188.73.76/orders","description":"<p>A route for creating orders</p>\n","urlObject":{"protocol":"http","path":["orders"],"host":["54","188","73","76"],"query":[],"variable":[]}},"response":[],"_postman_id":"adc7e2c4-76cd-4349-b894-3e769878e56b"},{"name":"orders","id":"ac14f105-ec24-4a07-877c-6dbb2c116b12","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"}],"url":"http://54.188.73.76/orders?userid=5cd72c193023fd7f5a989777","description":"<p>A route for creating orders</p>\n","urlObject":{"protocol":"http","path":["orders"],"host":["54","188","73","76"],"query":[{"description":{"content":"<p>Get's all orders for specified user id</p>\n","type":"text/plain"},"key":"userid","value":"5cd72c193023fd7f5a989777"}],"variable":[]}},"response":[],"_postman_id":"ac14f105-ec24-4a07-877c-6dbb2c116b12"}],"id":"136db907-5ab7-47e9-baba-0324bd77aba7","description":"<p>Order management API</p>\n","_postman_id":"136db907-5ab7-47e9-baba-0324bd77aba7"},{"name":"Payment","item":[{"name":"make payment","id":"f6aaee9e-73d1-4544-bd90-785f2ff2a282","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"invite_id","value":" 1","type":"text"},{"key":"sender_id","value":"michael","type":"text"},{"key":"","value":"","type":"text","disabled":true},{"key":"message","value":"Example message request. This is dummy data sent via HTTP","type":"text"},{"key":"\"vector\"","value":" \"Internal\",","type":"text","disabled":true},{"key":"invite_time","value":"","type":"text"},{"key":"status","value":" unread","type":"text"}]},"url":"http://localhost:3001/submit","description":"<p>A route for processing orders and updating cards</p>\n","urlObject":{"protocol":"http","port":"3001","path":["submit"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"f6aaee9e-73d1-4544-bd90-785f2ff2a282"}],"id":"674640ba-96ef-421a-bdab-6ab10c0c6282","description":"<p>API for processing orders and card balance</p>\n","_postman_id":"674640ba-96ef-421a-bdab-6ab10c0c6282"}]}