{"info":{"_postman_id":"373230a4-9b24-47d2-9748-1ec8d2806954","name":"RN Test API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"2144637","collectionId":"373230a4-9b24-47d2-9748-1ec8d2806954","publishedId":"2s93eYVXzd","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-05-08T12:21:05.000Z"},"item":[{"name":"Sign Up","id":"56764b2c-a2ae-47a7-9e3c-e2245bec0643","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"first_name\": \"Boss\",\n    \"last_name\": \"Amiaya\",\n    \"email_address\": \"amiaya@risevest.com\",\n    \"password\": \"Boye029*\",\n    \"date_of_birth\": \"1990-10-15\"\n}","options":{"raw":{"language":"json"}}},"url":"https://manator-staging-qogza.ondigitalocean.app/api/v1/users","description":"<p>Creates a new user</p>\n<h2 id=\"constraints\">Constraints</h2>\n<ul>\n<li>Returns a conflict error if the user already been registered</li>\n</ul>\n<h2 id=\"fields\">Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Constraints</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>first_name</td>\n<td>string</td>\n<td>required</td>\n<td>User's first name</td>\n</tr>\n<tr>\n<td>last_name</td>\n<td>string</td>\n<td>required</td>\n<td>User's last name</td>\n</tr>\n<tr>\n<td>email_address</td>\n<td>string</td>\n<td>required</td>\n<td>User's email address</td>\n</tr>\n<tr>\n<td>password</td>\n<td>string</td>\n<td>required,  <br />must contain uppercase letter,  <br />must contain special characters</td>\n<td>Password for account</td>\n</tr>\n<tr>\n<td>date_of_birth</td>\n<td>Date</td>\n<td>required,  <br />must be at least 18 years ago</td>\n<td>User's date of birth</td>\n</tr>\n<tr>\n<td>username</td>\n<td>string</td>\n<td>optional,  <br />must not contain space</td>\n<td>User's username</td>\n</tr>\n<tr>\n<td>phone_number</td>\n<td>string</td>\n<td>optional</td>\n<td>User's phone number</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"373230a4-9b24-47d2-9748-1ec8d2806954","id":"373230a4-9b24-47d2-9748-1ec8d2806954","name":"RN Test API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","users"],"host":["manator-staging-qogza","ondigitalocean","app"],"query":[],"variable":[]}},"response":[{"id":"1f1adee3-f42e-466b-9599-d8be09ed0e72","name":"Sign Up","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"first_name\": \"Tobi\",\n    \"last_name\": \"Samuel\",\n    \"email_address\": \"tobi.sams@gmail.com\",\n    \"password\": \"Akristhemoose*\",\n    \"date_of_birth\": \"1990-10-15\"\n}","options":{"raw":{"language":"json"}}},"url":"http://rise-rn-test-api.herokuapp.com/api/v1/users"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"243"},{"key":"ETag","value":"W/\"f3-F/WMYNehUf5YYKZntLTv6AoHUxo\""},{"key":"X-Response-Time","value":"68.078ms"},{"key":"Date","value":"Wed, 16 Feb 2022 06:04:06 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"417d7cff-3494-4261-9553-b8e7f0f6a40c\",\n    \"created_at\": \"2022-02-08T06:04:06.635Z\",\n    \"first_name\": \"Tobi\",\n    \"last_name\": \"Samuel\",\n    \"email_address\": \"tobi.sams@gmail.com\",\n    \"username\": null,\n    \"phone_number\": null,\n    \"date_of_birth\": \"1990-10-14T23:00:00.000Z\"\n}"},{"id":"60b1cbd8-fdac-4229-b9b2-278a0f6fa6e9","name":"Sign Up(Conflict)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"first_name\": \"Tobi\",\n    \"last_name\": \"Samuel\",\n    \"email_address\": \"tobi.sams@gmail.com\",\n    \"password\": \"Akristhemoose*\",\n    \"date_of_birth\": \"1990-10-15\"\n}","options":{"raw":{"language":"json"}}},"url":"https://rise-rn-test-api.herokuapp.com/api/v1/users"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"58"},{"key":"ETag","value":"W/\"3a-MgrPPldSnpu1L+i7P/X2JX3Tufo\""},{"key":"X-Response-Time","value":"59.726ms"},{"key":"Date","value":"Wed, 16 Feb 2022 06:28:35 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"A user with the given details already exists\"\n}"}],"_postman_id":"56764b2c-a2ae-47a7-9e3c-e2245bec0643"},{"name":"Sign In","id":"7b093aca-6cf9-45e3-8502-ceaa8e42fd83","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email_address\": \"test@test.com\",\n    \"password\": \"1234\"\n}","options":{"raw":{"language":"json"}}},"url":"https://rise-rn-test-api-gb2v6.ondigitalocean.app/api/v1/sessions","description":"<p>Creates a token for user to use for further actions. Returns a session with standard user information, a <code>token</code> to use with <code>Bearer</code> API scheme and stats about the user's investments.</p>\n<h2 id=\"fields\">Fields</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Constraints</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>email_address</td>\n<td>string</td>\n<td>required</td>\n<td>User's email address</td>\n</tr>\n<tr>\n<td>password</td>\n<td>string</td>\n<td>required</td>\n<td>User's password</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"373230a4-9b24-47d2-9748-1ec8d2806954","id":"373230a4-9b24-47d2-9748-1ec8d2806954","name":"RN Test API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","sessions"],"host":["rise-rn-test-api-gb2v6","ondigitalocean","app"],"query":[],"variable":[]}},"response":[{"id":"9c9d9162-6c00-4856-9732-2c6969202983","name":"Sign In","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email_address\": \"tobi.sams@gmail.com\",\n    \"password\": \"Akristhemoose*\"\n}","options":{"raw":{"language":"json"}}},"url":"https://rise-rn-test-api.herokuapp.com/api/v1/sessions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"290"},{"key":"ETag","value":"W/\"122-rCVhD8ALEnr4vxfz9cQocgpPEIE\""},{"key":"X-Response-Time","value":"67.076ms"},{"key":"Date","value":"Wed, 16 Feb 2022 06:32:44 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"cc1cfbfd-2778-4a97-83b6-129199626f3e\",\n    \"email_address\": \"tobi.sams@gmail.com\",\n    \"first_name\": \"Tobi\",\n    \"last_name\": \"Samuel\",\n    \"username\": null,\n    \"total_balance\": 4000,\n    \"total_returns\": 800,\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE2NDQ5OTMxNjQsImV4cCI6MTY0NTA3OTU2NH0.3HAd8aiOMkxtsdtPBHQSE_IH531Z-CLcQaQpmjUT91g\"\n}"},{"id":"9aedce4a-3f03-4291-b3b6-c87d7f362778","name":"Sign In(wrong credentials)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email_address\": \"tobi.sams@gmail.com\",\n    \"password\": \"sthemoose*\"\n}","options":{"raw":{"language":"json"}}},"url":"https://rise-rn-test-api.herokuapp.com/api/v1/sessions"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"49"},{"key":"ETag","value":"W/\"31-Lk6YM8y3C5ELg3ZXOpGTgxMG5U0\""},{"key":"X-Response-Time","value":"57.577ms"},{"key":"Date","value":"Wed, 16 Feb 2022 06:39:02 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Your email or password is incorrect\"\n}"}],"_postman_id":"7b093aca-6cf9-45e3-8502-ceaa8e42fd83"},{"name":"Get Session","id":"55a09d3e-0503-4d28-89ee-ec45108b4fce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://rise-rn-test-api-gb2v6.ondigitalocean.app/api/v1/sessions","description":"<p>Returns the user session data as long as the user is signed in.</p>\n","urlObject":{"protocol":"https","path":["api","v1","sessions"],"host":["rise-rn-test-api-gb2v6","ondigitalocean","app"],"query":[],"variable":[]}},"response":[{"id":"53099497-a66d-406f-8438-e2277940a7e2","name":"Get Session","originalRequest":{"method":"GET","header":[],"url":"https://rise-rn-test-api.herokuapp.com/api/v1/sessions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"215"},{"key":"ETag","value":"W/\"d7-xxZrweCC6wmfuFJrttcB/BnF8Ro\""},{"key":"X-Response-Time","value":"7.474ms"},{"key":"Date","value":"Wed, 16 Feb 2022 07:35:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"cc1cfbfd-2778-4a97-83b6-129199626f3e\",\n    \"email_address\": \"tobi.sams@gmail.com\",\n    \"first_name\": \"Tobi\",\n    \"last_name\": \"Samuel\",\n    \"username\": null,\n    \"iat\": 1644996260,\n    \"exp\": 1645082660,\n    \"total_balance\": 2220,\n    \"total_returns\": 220\n}"}],"_postman_id":"55a09d3e-0503-4d28-89ee-ec45108b4fce"},{"name":"Create Plan","id":"64029217-417d-4b13-945d-b2f8044e8a30","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"https://rise-rn-test-api-gb2v6.ondigitalocean.app/api/v1/plans","description":"<p>Create an investment plan for a user.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Constraints</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>plan_name</td>\n<td>string</td>\n<td>required</td>\n<td>Name of the plan</td>\n</tr>\n<tr>\n<td>target_amount</td>\n<td>number</td>\n<td>required,  <br />minimum is 10,000</td>\n<td>Target amount of investment in naira. This amount is converted to dollars based on the rates API</td>\n</tr>\n<tr>\n<td>maturity_date</td>\n<td>Date</td>\n<td>required,  <br />minimum is 1 year from creation date</td>\n<td>Date the investment matures.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","v1","plans"],"host":["rise-rn-test-api-gb2v6","ondigitalocean","app"],"query":[],"variable":[]}},"response":[{"id":"0349efa8-ea1b-4c4c-b2bd-a92fc23d244d","name":"Create Plan","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"plan_name\": \"Travel\",\n    \"target_amount\": 2000000,\n    \"maturity_date\": \"2025-01-01\"\n}","options":{"raw":{"language":"json"}}},"url":"https://rise-rn-test-api.herokuapp.com/api/v1/plans"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"273"},{"key":"ETag","value":"W/\"111-mzND90Bd602YPGSHxNbW9R09zIA\""},{"key":"X-Response-Time","value":"7.407ms"},{"key":"Date","value":"Wed, 16 Feb 2022 07:24:10 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"c62e9758-7dbf-4f93-8694-8f188e33b72f\",\n    \"created_at\": \"2022-02-08T07:24:10.070Z\",\n    \"plan_name\": \"Travel\",\n    \"invested_amount\": 0,\n    \"total_returns\": 0,\n    \"target_amount\": 3539.82,\n    \"maturity_date\": \"2024-12-31T23:00:00.000Z\",\n    \"user_id\": \"cc1cfbfd-2778-4a97-83b6-129199626f3e\",\n    \"returns\": []\n}"}],"_postman_id":"64029217-417d-4b13-945d-b2f8044e8a30"},{"name":"Get Plans","id":"1ee5c27b-568e-433a-9cf8-85610fed4268","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://rise-rn-test-api-gb2v6.ondigitalocean.app/api/v1/plans","description":"<p>Get all plans belonging to a user</p>\n","urlObject":{"protocol":"https","path":["api","v1","plans"],"host":["rise-rn-test-api-gb2v6","ondigitalocean","app"],"query":[],"variable":[]}},"response":[{"id":"6ed6aeab-a8d6-4d6f-b78a-ddc36fa3405c","name":"Get Plans","originalRequest":{"method":"GET","header":[],"url":"https://rise-rn-test-api.herokuapp.com/api/v1/plans"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"292"},{"key":"ETag","value":"W/\"124-M85FoKPxRIlLqAuVRe/NFfrn3PM\""},{"key":"X-Response-Time","value":"7.325ms"},{"key":"Date","value":"Wed, 16 Feb 2022 07:49:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"item_count\": 1,\n    \"items\": [\n        {\n            \"id\": \"d7ad09e6-f731-48a5-a136-f798752653e4\",\n            \"created_at\": \"2022-02-08T07:22:24.994Z\",\n            \"plan_name\": \"Travel\",\n            \"invested_amount\": 2000,\n            \"total_returns\": 220,\n            \"target_amount\": 3539.82,\n            \"maturity_date\": \"2024-12-31T23:00:00.000Z\",\n            \"user_id\": \"cc1cfbfd-2778-4a97-83b6-129199626f3e\"\n        }\n    ]\n}"}],"_postman_id":"1ee5c27b-568e-433a-9cf8-85610fed4268"},{"name":"Get Plan Projection","id":"62731593-47fc-4552-ab0c-f270d7ad033a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://rise-rn-test-api-gb2v6.ondigitalocean.app/api/v1/plans/projection?monthly_investment=<naira>&target_amount=<naira>","description":"<p>Get all plans belonging to a user</p>\n","urlObject":{"protocol":"https","path":["api","v1","plans","projection"],"host":["rise-rn-test-api-gb2v6","ondigitalocean","app"],"query":[{"description":{"content":"<p>Amount to save to</p>\n","type":"text/plain"},"key":"monthly_investment","value":"<naira>"},{"description":{"content":"<p>Target Amount to be achieved</p>\n","type":"text/plain"},"key":"target_amount","value":"<naira>"}],"variable":[]}},"response":[{"id":"ce6191d8-4cf7-47fa-a087-0f7281b39c90","name":"Get Plans","originalRequest":{"method":"GET","header":[],"url":"https://rise-rn-test-api.herokuapp.com/api/v1/plans"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"292"},{"key":"ETag","value":"W/\"124-M85FoKPxRIlLqAuVRe/NFfrn3PM\""},{"key":"X-Response-Time","value":"7.325ms"},{"key":"Date","value":"Wed, 16 Feb 2022 07:49:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"item_count\": 1,\n    \"items\": [\n        {\n            \"id\": \"d7ad09e6-f731-48a5-a136-f798752653e4\",\n            \"created_at\": \"2022-02-08T07:22:24.994Z\",\n            \"plan_name\": \"Travel\",\n            \"invested_amount\": 2000,\n            \"total_returns\": 220,\n            \"target_amount\": 3539.82,\n            \"maturity_date\": \"2024-12-31T23:00:00.000Z\",\n            \"user_id\": \"cc1cfbfd-2778-4a97-83b6-129199626f3e\"\n        }\n    ]\n}"}],"_postman_id":"62731593-47fc-4552-ab0c-f270d7ad033a"},{"name":"Get Plan","id":"bbd5127a-1615-4f50-90ce-d917b3f24636","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://rise-rn-test-api-gb2v6.ondigitalocean.app/api/v1/plans/:id","description":"<p>Get a single plan. The <code>total_returns</code> field holds the sum of all the returns in <code>returns</code> array. The <code>returns</code> array is all the returns the user has had since creating the plan.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"373230a4-9b24-47d2-9748-1ec8d2806954","id":"373230a4-9b24-47d2-9748-1ec8d2806954","name":"RN Test API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","plans",":id"],"host":["rise-rn-test-api-gb2v6","ondigitalocean","app"],"query":[],"variable":[{"id":"73f94bfb-decd-4822-bd96-4bf46139489f","description":{"content":"<p>ID of the plan</p>\n","type":"text/plain"},"type":"any","value":null,"key":"id"}]}},"response":[{"id":"d205f02d-1332-49b5-a0e8-7366a4e84103","name":"Get Plan","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://rise-rn-test-api.herokuapp.com/api/v1/plans/:id","protocol":"https","host":["rise-rn-test-api","herokuapp","com"],"path":["api","v1","plans",":id"],"variable":[{"key":"id","value":"d7ad09e6-f731-48a5-a136-f798752653e4","description":"ID of the plan"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"573"},{"key":"ETag","value":"W/\"23d-6I1d7LbNqkJi+zSQNY/1zwLNSAo\""},{"key":"X-Response-Time","value":"9.055ms"},{"key":"Date","value":"Wed, 16 Feb 2022 07:56:28 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"d7ad09e6-f731-48a5-a136-f798752653e4\",\n    \"created_at\": \"2022-02-08T07:22:24.994Z\",\n    \"plan_name\": \"Travel\",\n    \"invested_amount\": 2000,\n    \"total_returns\": 220,\n    \"target_amount\": 3539.82,\n    \"maturity_date\": \"2024-12-31T23:00:00.000Z\",\n    \"user_id\": \"cc1cfbfd-2778-4a97-83b6-129199626f3e\",\n    \"returns\": [\n        {\n            \"id\": \"0e410ad9-bb8f-44c2-8a35-82039a94b830\",\n            \"created_at\": \"2022-02-08T07:23:41.177Z\",\n            \"amount\": 120,\n            \"plan_id\": \"d7ad09e6-f731-48a5-a136-f798752653e4\"\n        },\n        {\n            \"id\": \"c71e720e-00f6-4f4a-b739-b6cfffe9ee8c\",\n            \"created_at\": \"2022-02-08T07:23:28.356Z\",\n            \"amount\": 100,\n            \"plan_id\": \"d7ad09e6-f731-48a5-a136-f798752653e4\"\n        }\n    ]\n}"}],"_postman_id":"bbd5127a-1615-4f50-90ce-d917b3f24636"},{"name":"Get Banks","id":"65eb9900-b17a-4091-a651-ed99c9f7e1ae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://rise-rn-test-api-gb2v6.ondigitalocean.app/api/v1/banks","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"373230a4-9b24-47d2-9748-1ec8d2806954","id":"373230a4-9b24-47d2-9748-1ec8d2806954","name":"RN Test API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","banks"],"host":["rise-rn-test-api-gb2v6","ondigitalocean","app"],"query":[],"variable":[]}},"response":[],"_postman_id":"65eb9900-b17a-4091-a651-ed99c9f7e1ae"},{"name":"Get Rates","id":"1955b84e-2773-46a9-b12a-25e1dca17f01","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://rise-rn-test-api-gb2v6.ondigitalocean.app/api/v1/rates","description":"<p>Return the current rate we use to buy and sell dollars</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"373230a4-9b24-47d2-9748-1ec8d2806954","id":"373230a4-9b24-47d2-9748-1ec8d2806954","name":"RN Test API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","rates"],"host":["rise-rn-test-api-gb2v6","ondigitalocean","app"],"query":[],"variable":[]}},"response":[{"id":"33fc8b27-086e-494a-b342-5d838d5b78aa","name":"Get Rates","originalRequest":{"method":"GET","header":[],"url":"https://rise-rn-test-api.herokuapp.com/api/v1/rates"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"32"},{"key":"ETag","value":"W/\"20-utkkIXT9d4tvfqsIDlhWEuo/8Bc\""},{"key":"X-Response-Time","value":"1.081ms"},{"key":"Date","value":"Wed, 16 Feb 2022 08:33:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"buy_rate\": 565,\n    \"sell_rate\": 555\n}"}],"_postman_id":"1955b84e-2773-46a9-b12a-25e1dca17f01"},{"name":"Get Quote","id":"d40e9220-45ae-43ec-a9e2-a7460cacd32f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://rise-rn-test-api-gb2v6.ondigitalocean.app/api/v1/quotes","description":"<p>Return a random quote.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"373230a4-9b24-47d2-9748-1ec8d2806954","id":"373230a4-9b24-47d2-9748-1ec8d2806954","name":"RN Test API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","quotes"],"host":["rise-rn-test-api-gb2v6","ondigitalocean","app"],"query":[],"variable":[]}},"response":[{"id":"4f37e752-647f-4a8e-ba7f-69bbc127ac05","name":"Get Quote","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3008/api/v1/quotes"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Security-Policy","value":"default-src 'self';base-uri 'self';block-all-mixed-content;font-src 'self' https: data:;frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"194"},{"key":"ETag","value":"W/\"c2-NhTvcTtdVERj/0RmxtXhBldnaDo\""},{"key":"X-Response-Time","value":"2.446ms"},{"key":"Date","value":"Wed, 16 Feb 2022 08:31:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"quote\": \"Financial peace isn't the acquisition of stuff. It's learning to live on less than you make, so that you have money to invest. You can't win until you do this.\",\n    \"author\": \"Dave Ramsey\"\n}"}],"_postman_id":"d40e9220-45ae-43ec-a9e2-a7460cacd32f"}],"auth":{"type":"bearer","bearer":{"basicConfig":[]}},"event":[{"listen":"prerequest","script":{"id":"35aedb0f-b32f-4692-b69d-bdf13c2e0317","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3e02e27a-5b47-4839-8210-7a5c28f5c42f","type":"text/javascript","exec":[""]}}]}