{"info":{"_postman_id":"2fe5ae5c-aa36-407d-9a37-eca797f62d8a","name":"wellb","description":"<html><head></head><body><p>This is the collection of the api calls for the wellb server. Intended to be used with the wellb mobile web app.</p>\n<p>Created by Bionix Technologies</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"8448822","collectionId":"2fe5ae5c-aa36-407d-9a37-eca797f62d8a","publishedId":"SW7c37no","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-11-23T23:00:27.000Z"},"item":[{"name":"bank-accounts","item":[{"name":"Send money into savings account","id":"0dbcae51-73ec-4d71-93af-dfb5dc9e885a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"userId\": \"5dd9eab75ed0d82367ff3687\",\n\t\"amount\": \"100\"\n}"},"url":"localhost:8000/api/bank-accounts/to-savings","description":"<p>Sends the amount given in the body into the savings account of the user</p>\n","urlObject":{"path":["bank-accounts","to-savings"],"host":["localhost:8000/api"],"query":[],"variable":[]}},"response":[{"id":"52470b35-f087-4876-a540-9ac3a6f62723","name":"Send money to savings account","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"userId\": \"5dd9eab75ed0d82367ff3687\",\n\t\"amount\": \"100\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/bank-accounts/to-savings"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"https://wellb.tech"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PATCH, PUT"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"15"},{"key":"ETag","value":"W/\"f-dHFLF+ggPsv/+uq9D/AQI0mV/a8\""},{"key":"Date","value":"Sun, 24 Nov 2019 05:01:30 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"balance\": 400\n}"}],"_postman_id":"0dbcae51-73ec-4d71-93af-dfb5dc9e885a"},{"name":"Send money from savings to current account","id":"a834785b-ca3a-495f-8d6e-22b58e790f0b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"userId\": \"5dda374df6c6593bf8d09fec\",\n\t\"amount\": \"100\"\n}"},"url":"localhost:8000/api/bank-accounts/from-savings","description":"<p>Transfers money from the users savings account to their current account\nreturns new savings account balance</p>\n","urlObject":{"path":["bank-accounts","from-savings"],"host":["localhost:8000/api"],"query":[],"variable":[]}},"response":[{"id":"390d1f48-eb91-432e-a914-21967ff51c53","name":"Send money from savings to current account","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"userId\": \"5dd9eab75ed0d82367ff3687\",\n\t\"amount\": \"100\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/bank-accounts/from-savings"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"https://wellb.tech"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PATCH, PUT"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"15"},{"key":"ETag","value":"W/\"f-UDbzUGg+vIzU4cgRpt6qphdguA4\""},{"key":"Date","value":"Sun, 24 Nov 2019 05:15:55 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"balance\": 900\n}"},{"id":"9b54445f-fe17-47a0-802f-f07d8be30a2e","name":"Send money from savings to current account","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"userId\": \"5dda374df6c6593bf8d09fec\",\n\t\"amount\": \"100\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/bank-accounts/from-savings"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"https://wellb.tech"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PATCH, PUT"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"15"},{"key":"ETag","value":"W/\"f-PeNkRRCs1ATVdTbZvIqT/bp8cYM\""},{"key":"Date","value":"Sun, 24 Nov 2019 08:03:53 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"balance\": 100\n}"}],"_postman_id":"a834785b-ca3a-495f-8d6e-22b58e790f0b"},{"name":"Send money to payee","id":"8fcaa57f-ec20-4092-b062-0fb66c9d4375","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"userId\": \"5dda374df6c6593bf8d09fec\",\n\t\"amount\": \"100\",\n\t\"sortcode\": \"60-21-10\",\n\t\"accountNumber\": \"824472892\",\n\t\"payeeName\": \"Ibrahim Mizi\"\n}"},"url":"localhost:8000/api/bank-accounts/to-payee","description":"<p>Sends money from your current account to another bank account</p>\n","urlObject":{"path":["bank-accounts","to-payee"],"host":["localhost:8000/api"],"query":[],"variable":[]}},"response":[{"id":"0e452d73-d25d-4122-bd7a-5fbedec2489c","name":"Send money to payee","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"userId\": \"5dda374df6c6593bf8d09fec\",\n\t\"amount\": \"100\",\n\t\"sortcode\": \"60-21-10\",\n\t\"accountNumber\": \"824472892\",\n\t\"payeeName\": \"Ibrahim Mizi\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/bank-accounts/to-payee"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"https://wellb.tech"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PATCH, PUT"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"15"},{"key":"ETag","value":"W/\"f-UDbzUGg+vIzU4cgRpt6qphdguA4\""},{"key":"Date","value":"Sun, 24 Nov 2019 08:02:28 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"balance\": 900\n}"},{"id":"218dc9fc-8bdd-4b15-9c73-f692f7f40c85","name":"Send money to payee","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"userId\": \"5dd9eab75ed0d82367ff3687\",\n\t\"amount\": \"100\",\n\t\"sortcode\": \"60-21-10\",\n\t\"accountNumber\": \"824472892\",\n\t\"payeeName\": \"Ibrahim Mizi\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/bank-accounts/to-payee"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"https://wellb.tech"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PATCH, PUT"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"15"},{"key":"ETag","value":"W/\"f-8i9KMIKRr8ge4KXSciSHuXBC+qw\""},{"key":"Date","value":"Sun, 24 Nov 2019 05:50:34 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"balance\": 600\n}"}],"_postman_id":"8fcaa57f-ec20-4092-b062-0fb66c9d4375"},{"name":"Get savings account balance","id":"a1b51177-b429-4597-ad73-18fe0b19192f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:8000/api/bank-accounts/savings/5dda374df6c6593bf8d09fec","description":"<p>Returns the balance of the savings account of the given user</p>\n","urlObject":{"path":["bank-accounts","savings","5dda374df6c6593bf8d09fec"],"host":["localhost:8000/api"],"query":[],"variable":[]}},"response":[{"id":"c4c6da8f-19da-41ae-8001-3e30a64f79d5","name":"Get savings account balance","originalRequest":{"method":"GET","header":[],"url":"localhost:8000/api/bank-accounts/savings/5dda374df6c6593bf8d09fec"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"https://wellb.tech"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PATCH, PUT"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"79"},{"key":"ETag","value":"W/\"4f-G2D8WEldMREr0BOko1NXoZuhPhg\""},{"key":"Date","value":"Sun, 24 Nov 2019 08:00:38 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"5dda374df6c6593bf8d09feb\",\n    \"accountId\": \"18722212\",\n    \"balance\": 500,\n    \"__v\": 0\n}"}],"_postman_id":"a1b51177-b429-4597-ad73-18fe0b19192f"},{"name":"Get current account balance","id":"a91ee73d-860e-4bd1-8fcc-46d6451166d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:8000/api/bank-accounts/current/5dda374df6c6593bf8d09fec","description":"<p>Returns the balance and riskScore of the given users account</p>\n","urlObject":{"path":["bank-accounts","current","5dda374df6c6593bf8d09fec"],"host":["localhost:8000/api"],"query":[],"variable":[]}},"response":[{"id":"cc81a48d-3101-49e1-8ecc-5b3afdc4f027","name":"Get current account balance","originalRequest":{"method":"GET","header":[],"url":"localhost:8000/api/bank-accounts/current/5dda374df6c6593bf8d09fec"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"https://wellb.tech"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PATCH, PUT"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"95"},{"key":"ETag","value":"W/\"5f-A5ntm0c9oKv+YCSB5dUCuh5EiYQ\""},{"key":"Date","value":"Sun, 24 Nov 2019 08:01:59 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"5dda374df6c6593bf8d09fea\",\n    \"accountId\": \"18722212\",\n    \"riskScore\": 52,\n    \"balance\": 1000,\n    \"__v\": 0\n}"}],"_postman_id":"a91ee73d-860e-4bd1-8fcc-46d6451166d4"}],"id":"b6bc8671-87ff-4b91-a688-4a959054b78e","_postman_id":"b6bc8671-87ff-4b91-a688-4a959054b78e","description":""},{"name":"contacts","item":[{"name":"Add new contact","id":"ddee94ea-aaf2-4087-b2ec-aff4886414b0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Emily\",\n\t\"relationship\": \"Spouse\",\n\t\"phone\": \"07920557018\",\n\t\"userId\": \"5dda374df6c6593bf8d09fec\"\n}"},"url":"localhost:8000/api/contacts","description":"<p>Adds a new contact to the user whos Id is given in the parameter</p>\n","urlObject":{"path":["contacts"],"host":["localhost:8000/api"],"query":[],"variable":[]}},"response":[{"id":"8aa87a58-b607-46b1-a594-a22c1aaff86e","name":"Add new contact","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Ibrahim\",\n\t\"relationship\": \"Friend\",\n\t\"phone\": \"07475751726\",\n\t\"userId\": \"5dd9b67a8427521de3c90af1\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/contacts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"139"},{"key":"ETag","value":"W/\"8b-X4namt0WkcITeWKqFIZgjAlsXEM\""},{"key":"Date","value":"Sat, 23 Nov 2019 22:51:18 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"5dd9b7e66eb0fb1e16670840\",\n    \"name\": \"Ibrahim\",\n    \"relationship\": \"Friend\",\n    \"phone\": \"07475751726\",\n    \"user\": \"5dd9b67a8427521de3c90af1\",\n    \"__v\": 0\n}"},{"id":"e7a902fc-56f6-4ee6-8115-ad8284a3f006","name":"Add new contact","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Emily\",\n\t\"relationship\": \"Spouse\",\n\t\"phone\": \"07920557018\",\n\t\"userId\": \"5dda374df6c6593bf8d09fec\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/contacts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"https://wellb.tech"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PATCH, PUT"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"137"},{"key":"ETag","value":"W/\"89-W3FWbICdM93s7lSSi94CIksmgsI\""},{"key":"Date","value":"Sun, 24 Nov 2019 07:56:45 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"5dda37bd9782ba3c1d1d1bd1\",\n    \"name\": \"Emily\",\n    \"relationship\": \"Spouse\",\n    \"phone\": \"07920557018\",\n    \"user\": \"5dda374df6c6593bf8d09fec\",\n    \"__v\": 0\n}"}],"_postman_id":"ddee94ea-aaf2-4087-b2ec-aff4886414b0"},{"name":"Get contacts of user","id":"712b6079-556a-4000-b9a3-858dfac61ef4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:8000/api/contacts/5dda374df6c6593bf8d09fec","description":"<p>returns all of the contacts saved by the user\ngive userId as the parameter</p>\n","urlObject":{"path":["contacts","5dda374df6c6593bf8d09fec"],"host":["localhost:8000/api"],"query":[],"variable":[]}},"response":[{"id":"a23c80f4-7741-4cc1-a8d2-3b9e06a8ed82","name":"Get contacts of user","originalRequest":{"method":"GET","header":[],"url":"localhost:8000/api/contacts/5dda374df6c6593bf8d09fec"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"https://wellb.tech"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PATCH, PUT"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"279"},{"key":"ETag","value":"W/\"117-vdZiH+tbppdNV1LKkSifxwBoISo\""},{"key":"Date","value":"Sun, 24 Nov 2019 07:57:33 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"5dda37949782ba3c1d1d1bd0\",\n        \"name\": \"Ibrahim\",\n        \"relationship\": \"Friend\",\n        \"phone\": \"07475751726\",\n        \"user\": \"5dda374df6c6593bf8d09fec\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"5dda37bd9782ba3c1d1d1bd1\",\n        \"name\": \"Emily\",\n        \"relationship\": \"Spouse\",\n        \"phone\": \"07920557018\",\n        \"user\": \"5dda374df6c6593bf8d09fec\",\n        \"__v\": 0\n    }\n]"},{"id":"c3795e0b-b76a-4d67-bc04-02c9e2deae90","name":"Get contacts of user","originalRequest":{"method":"GET","header":[],"url":"localhost:8000/api/contacts/5dd9b67a8427521de3c90af1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"141"},{"key":"ETag","value":"W/\"8d-DwnuFxMc5za6TrNIHG8cuB13ZyM\""},{"key":"Date","value":"Sat, 23 Nov 2019 22:54:22 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"5dd9b7e66eb0fb1e16670840\",\n        \"name\": \"Ibrahim\",\n        \"relationship\": \"Friend\",\n        \"phone\": \"07475751726\",\n        \"user\": \"5dd9b67a8427521de3c90af1\",\n        \"__v\": 0\n    }\n]"}],"_postman_id":"712b6079-556a-4000-b9a3-858dfac61ef4"},{"name":"Send message to contact","id":"3978543f-5077-4fd4-a757-cdad2faa894a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"text\": \"If you get this, its sent from the mongoDB cloud database, and contacts does return an array you silly boy\"\n}"},"url":"localhost:8000/api/contacts/send/5dda37949782ba3c1d1d1bd0","description":"<p>Sends a message to a user in your contacts\ngiven id in parameter is the contactId</p>\n","urlObject":{"path":["contacts","send","5dda37949782ba3c1d1d1bd0"],"host":["localhost:8000/api"],"query":[],"variable":[]}},"response":[{"id":"62dd63b8-8966-4b67-816a-5e28c25fe5b6","name":"Send message to contact","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"text\": \"If you get this, its sent from the mongoDB cloud database, and contacts does return an array you silly boy\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/contacts/send/5dda37949782ba3c1d1d1bd0"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"https://wellb.tech"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PATCH, PUT"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"25"},{"key":"ETag","value":"W/\"19-mGPMW6U7U3gyfZEVsru0uF8Pkpc\""},{"key":"Date","value":"Sun, 24 Nov 2019 07:58:45 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"Message successfully sent"},{"id":"656db037-6b39-418c-a9f8-ff35bd0ac183","name":"Send message to contact","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"text\": \"Hello Ibrahim, hope you are well.\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/contacts/send/5dd9b7e66eb0fb1e16670840"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"25"},{"key":"ETag","value":"W/\"19-mGPMW6U7U3gyfZEVsru0uF8Pkpc\""},{"key":"Date","value":"Sun, 24 Nov 2019 00:02:42 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"Message successfully sent"}],"_postman_id":"3978543f-5077-4fd4-a757-cdad2faa894a"}],"id":"5d851685-74e4-4cd3-b6f8-e772aede7e68","_postman_id":"5d851685-74e4-4cd3-b6f8-e772aede7e68","description":""},{"name":"users","item":[{"name":"Add user","id":"64de9153-51ed-4941-abd0-e527a952db70","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"firstName\": \"Reuben\",\n\t\"lastName\": \"McQueen\",\n\t\"email\": \"email@email.com\",\n\t\"phone\": \"07920557019\",\n\t\"password\": \"password\"\n}"},"url":"localhost:8000/api/users","description":"<p>Adds a new user to the database, which creates a CapitalOne bank account assosiated with the new user.\nReturns the email of the new user and the users mongoDB Id\nReturns a JWT authentication token in the header</p>\n","urlObject":{"path":["users"],"host":["localhost:8000/api"],"query":[],"variable":[]}},"response":[{"id":"12998f77-096a-436f-b2c7-fccc3464539d","name":"Add user","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"firstName\": \"Reuben\",\n\t\"lastName\": \"McQueen\",\n\t\"email\": \"email@gmail.com\",\n\t\"phone\": \"07920557019\",\n\t\"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/users"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"x-auth-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1ZGQ5YWEyY2IzNjFlMjFkMTg3YjI2OTciLCJpYXQiOjE1NzQ1NDU5NjR9.Y1GxyaSwqajjNwJXOnGqtEyzy35C3ocIwiLQJFIvCCg"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"60"},{"key":"ETag","value":"W/\"3c-m9dvcb/MCPXlDJKEQ/CVp7pyjsI\""},{"key":"Date","value":"Sat, 23 Nov 2019 21:52:44 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"5dd9aa2cb361e21d187b2697\",\n    \"email\": \"email@gmail.com\"\n}"}],"_postman_id":"64de9153-51ed-4941-abd0-e527a952db70"},{"name":"Get current user","id":"22a663b5-f8b1-48b3-bd13-905d774d55f7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-auth-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1ZGQ5YWMyYzA0NTQ4NDFkMzA1ZTk1YzEiLCJpYXQiOjE1NzQ1NDY0NzZ9.j4ElY177mFt08_0m3ZGPfbG5D4UveLO-hJkpjBtQLek","type":"text"}],"url":"localhost:8000/api/users/5dda374df6c6593bf8d09fec","description":"<p>Returns the details of the current logged in user</p>\n","urlObject":{"path":["users","5dda374df6c6593bf8d09fec"],"host":["localhost:8000/api"],"query":[],"variable":[]}},"response":[{"id":"666935b3-febe-4a6d-ad38-eb8c5b41254a","name":"Get current user","originalRequest":{"method":"GET","header":[{"key":"x-auth-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1ZGQ5YWMyYzA0NTQ4NDFkMzA1ZTk1YzEiLCJpYXQiOjE1NzQ1NDY0NzZ9.j4ElY177mFt08_0m3ZGPfbG5D4UveLO-hJkpjBtQLek","type":"text"}],"url":"localhost:8000/api/users/5dda374df6c6593bf8d09fec"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"https://wellb.tech"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PATCH, PUT"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"217"},{"key":"ETag","value":"W/\"d9-NHbEEbySRya/mp+KQ1BOpmo7U8o\""},{"key":"Date","value":"Sun, 24 Nov 2019 07:55:48 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"5dda374df6c6593bf8d09fec\",\n    \"firstName\": \"Reuben\",\n    \"lastName\": \"McQueen\",\n    \"email\": \"email@email.com\",\n    \"phone\": \"07920557019\",\n    \"bankAccount\": \"5dda374df6c6593bf8d09fea\",\n    \"savingsAccount\": \"5dda374df6c6593bf8d09feb\",\n    \"__v\": 0\n}"},{"id":"bc982c92-d0e2-4ab6-98ab-2bf328bc81a9","name":"Get current user","originalRequest":{"method":"GET","header":[{"key":"x-auth-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1ZGQ5YWMyYzA0NTQ4NDFkMzA1ZTk1YzEiLCJpYXQiOjE1NzQ1NDY0NzZ9.j4ElY177mFt08_0m3ZGPfbG5D4UveLO-hJkpjBtQLek","type":"text"}],"url":"localhost:8000/api/users/me"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"199"},{"key":"ETag","value":"W/\"c7-dIp/6bAW+JU/b2YNNjXZC8eaWgc\""},{"key":"Date","value":"Sat, 23 Nov 2019 22:02:04 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"5dd9ac2c0454841d305e95c1\",\n    \"firstName\": \"Reuben\",\n    \"lastName\": \"McQueen\",\n    \"email\": \"email@gmail.com\",\n    \"phone\": \"07920557019\",\n    \"bankAccount\": \"5dd9ac2c0454841d305e95c0\",\n    \"contacts\": [],\n    \"alerts\": [],\n    \"__v\": 0\n}"}],"_postman_id":"22a663b5-f8b1-48b3-bd13-905d774d55f7"}],"id":"297873ff-97cf-4514-a4f4-7ab333dae1e0","_postman_id":"297873ff-97cf-4514-a4f4-7ab333dae1e0","description":""},{"name":"transactions","item":[{"name":"Get transactions of user","id":"c7a24fc6-645e-40ff-9e99-6a1b23a844f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:8000/api/transactions/5dda374df6c6593bf8d09fec","description":"<p>Returns a list of transactions that the user has made\nTakes userId as parameter</p>\n","urlObject":{"path":["transactions","5dda374df6c6593bf8d09fec"],"host":["localhost:8000/api"],"query":[],"variable":[]}},"response":[{"id":"67d2f43f-b5ee-4ef4-97dc-261075b18b58","name":"Get transactions of user","originalRequest":{"method":"GET","header":[],"url":"localhost:8000/api/transactions/5dda374df6c6593bf8d09fec"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"https://wellb.tech"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PATCH, PUT"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"260"},{"key":"ETag","value":"W/\"104-l30ER8qUP6OkhVdjevQAzSTfjws\""},{"key":"Date","value":"Sun, 24 Nov 2019 08:02:52 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"5dda39139782ba3c1d1d1bd2\",\n        \"transactionUUID\": \"cff7fbf7-3e07-4cb0-9f77-0a8545a86d1f\",\n        \"accountUUID\": \"18722212\",\n        \"timestamp\": \"2019-11-24T08:02:27.755Z\",\n        \"status\": \"Successful\",\n        \"amount\": 100,\n        \"recipient\": \"Ibrahim Mizi\",\n        \"bankAccount\": \"5dda374df6c6593bf8d09fea\"\n    }\n]"}],"_postman_id":"c7a24fc6-645e-40ff-9e99-6a1b23a844f4"}],"id":"06f91376-fdb1-490c-b543-62b68ac3ff42","_postman_id":"06f91376-fdb1-490c-b543-62b68ac3ff42","description":""},{"name":"auth","item":[{"name":"Login","id":"0db3b222-e392-484a-97ce-e2796841e55a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"email\": \"email@email.com\",\n\t\"password\": \"password\"\n}"},"url":"localhost:8000/api/auth","description":"<p>Logins in a user by returning userId to be used to access different api endpoints</p>\n","urlObject":{"path":["auth"],"host":["localhost:8000/api"],"query":[],"variable":[]}},"response":[{"id":"0557d8d0-47d9-429b-ae24-674a2757c8a4","name":"Login","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"email\": \"email@email.com\",\n\t\"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/auth"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://wellb.tech"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PATCH, PUT"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"37"},{"key":"ETag","value":"W/\"25-WrHWseo5Bs9MfFlvKHXhtFxI/W4\""},{"key":"Date","value":"Sun, 24 Nov 2019 08:23:31 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"userId\": \"5dda3db9d080f23e2e744070\"\n}"}],"_postman_id":"0db3b222-e392-484a-97ce-e2796841e55a"}],"id":"964aa5bc-0451-4d53-a7f6-f785d5b37a76","_postman_id":"964aa5bc-0451-4d53-a7f6-f785d5b37a76","description":""},{"name":"reminders","item":[{"name":"Add reminder","id":"2ac25134-983e-4d12-8d5e-b14841c926f9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"text\": \"Hello Ib\",\n\t\"hour\": \"08\",\n\t\"minute\": \"51\"\n}"},"url":"localhost:8000/api/reminders/5dda3db9d080f23e2e744070","description":"<p>Adds a reminder which will give a text at the time stated</p>\n","urlObject":{"path":["reminders","5dda3db9d080f23e2e744070"],"host":["localhost:8000/api"],"query":[],"variable":[]}},"response":[{"id":"1ecb5eba-3cbd-435e-a31a-069cd0c7b79f","name":"Add reminder","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"text\": \"Hello Ib\",\n\t\"hour\": \"08\",\n\t\"minute\": \"51\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8000/api/reminders/5dda3db9d080f23e2e744070"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://wellb.tech"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, DELETE, PATCH, PUT"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Date","value":"Sun, 24 Nov 2019 08:50:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"0"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"2ac25134-983e-4d12-8d5e-b14841c926f9"}],"id":"44d79f1d-9344-4aec-a344-4fdda378ae99","_postman_id":"44d79f1d-9344-4aec-a344-4fdda378ae99","description":""}],"event":[{"listen":"prerequest","script":{"id":"c127f2f6-80b4-4343-8ff3-38b49e2d1ff3","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"9d42c264-90f3-4ebe-b779-adc5a47c7fb6","type":"text/javascript","exec":[""]}}],"variable":[{"key":"api","value":"localhost:8000/api"}]}