{"info":{"_postman_id":"adcfc4e2-e0cd-44e7-b74f-666119ecd534","name":"SCA- Level up","description":"<html><head></head><body><p>Documentation for the SheCodeAfrica Levelled membership program 2020/21</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"9925314","collectionId":"adcfc4e2-e0cd-44e7-b74f-666119ecd534","publishedId":"TVssj8nR","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-12-18T20:41:08.000Z"},"item":[{"name":"Auth","item":[{"name":"Sign up","id":"f83b36dd-18c2-4783-905b-ee381cd17d2c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\":\"johndoe\",\r\n    \"email\":\"johndoe@gmail.com\",\r\n    \"password\":\"Password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/auth/signup","description":"<p>This endpoint is used to create a user.\nDefault user role is 'CUSTOMER'</p>\n","urlObject":{"protocol":"http","port":"4000","path":["api","auth","signup"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"98c205a1-e819-4c54-9be6-6c0169fd3e1e","name":"Create user- User exists","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\":\"caleb\",\r\n    \"email\":\"caleb@gmail.com\",\r\n    \"password\":\"Password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/auth/signup"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"48"},{"key":"ETag","value":"W/\"30-3uJZIelE9AYBtQwPW1DSfVErcyA\""},{"key":"Date","value":"Tue, 05 Jan 2021 13:34:03 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"User already exists\"\n}"},{"id":"ebad6421-82fd-44aa-8d37-bc9afef0d5d5","name":"Create user- Successful","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\":\"johndoe\",\r\n    \"email\":\"johndoe@gmail.com\",\r\n    \"password\":\"Password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/auth/signup"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"251"},{"key":"ETag","value":"W/\"fb-Hwz7CCxw2f+KkCSBeWTwM/e4UiU\""},{"key":"Date","value":"Mon, 25 Jan 2021 18:30:41 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"Users created successfully\",\n    \"data\": {\n        \"username\": \"johndoe\",\n        \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImpvaG5kb2UiLCJpYXQiOjE2MTE1OTk0NDEsImV4cCI6MTYxMTY4NTg0MX0.okbFh8mtXsijwp96CxrvNaNEXFVXqEMWycG8yq8XSSo\"\n    }\n}"}],"_postman_id":"f83b36dd-18c2-4783-905b-ee381cd17d2c"},{"name":"Login","id":"5ca28ca5-066e-44c9-980c-b2f61215f069","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"johndoe\",\r\n    \"password\": \"Password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/auth/login","urlObject":{"protocol":"http","port":"4000","path":["api","auth","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"430baa4b-1e6e-4028-8ad4-29cba0fa3558","name":"Login- Incorrect password","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"john\",\r\n    \"password\": \"password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/auth/login"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"47"},{"key":"ETag","value":"W/\"2f-5wVY1EvWhqZN/+PgwaVoRpiLnL8\""},{"key":"Date","value":"Mon, 25 Jan 2021 18:22:56 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"Incorrect password\"\n}"},{"id":"80969979-bd89-4f43-ba0e-8d1d753ea04c","name":"Login- Successful","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"johndoe\",\r\n    \"password\": \"Password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/auth/login"},"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":"241"},{"key":"ETag","value":"W/\"f1-CKkoYvSh9fkJG5wKTcIp0XQCVk8\""},{"key":"Date","value":"Mon, 25 Jan 2021 18:31:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"Login successful\",\n    \"data\": {\n        \"username\": \"johndoe\",\n        \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImpvaG5kb2UiLCJpYXQiOjE2MTE1OTk0ODQsImV4cCI6MTYxMTY4NTg4NH0.6KPSADNoUzKP4f7Y6UbDt7_V2WYt0Cm7KiI-Eg6g3Ek\"\n    }\n}"},{"id":"911a47f2-9aee-4124-91f3-1797b57a4cce","name":"Login- User does not exist","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"johndoe\",\r\n    \"password\": \"password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/auth/login"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"48"},{"key":"ETag","value":"W/\"30-/fjQN0NxQsDZv8FyiU8jboF4Uuc\""},{"key":"Date","value":"Mon, 25 Jan 2021 18:23:19 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"User does not exist\"\n}"},{"id":"942b6f0f-f9f7-43b5-942a-ef315b65cb7e","name":"Login- Social signup error","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\": \"Murewa.Ashiru\",\r\n    \"password\": \"Password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/auth/login"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"108"},{"key":"ETag","value":"W/\"6c-OGhkF6xNMwA3SBuSBm5eNPGSLJU\""},{"key":"Date","value":"Tue, 26 Jan 2021 23:21:00 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"Did you sign up using Facebook? If yes, please log in via your Facebook account\"\n}"}],"_postman_id":"5ca28ca5-066e-44c9-980c-b2f61215f069"},{"name":"Facebook login","id":"c8b4af96-753e-4adf-a6db-494c0eca6969","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:4000/api/auth/facebook","description":"<p>This endpoint allows you login to the application with your facebook account. No password is required.</p>\n<p>Browse the endpoint '<a href=\"http://localhost:4000/api/user/facebook\">http://localhost:4000/api/user/facebook</a>' in your browser and follow the prompt.</p>\n","urlObject":{"protocol":"http","port":"4000","path":["api","auth","facebook"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c8b4af96-753e-4adf-a6db-494c0eca6969"},{"name":"Forgot password","id":"f1041aa0-d1ee-4ee7-b035-0b44c982ac45","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"johndoe@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/auth/password/reset","description":"<p>This endpoint allows you submit a forgot password request using the email.</p>\n<p>Copy the password-reset-token and use it on the 'Reset password' endpoint. This token is confidential</p>\n","urlObject":{"protocol":"http","port":"4000","path":["api","auth","password","reset"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0035e0dc-d364-4b5e-9682-c0adabe21d5c","name":"Forgot password- Successful","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"johndoe@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/auth/password/reset"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"128"},{"key":"ETag","value":"W/\"80-XGwpeHNvZA+xXyFWZwHnjPa7e0c\""},{"key":"Date","value":"Thu, 28 Jan 2021 13:30:51 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"Password reset successful\",\n    \"data\": {\n        \"password-reset-token\": \"4f8a88b02e450408b3ec974c499e3f98b5208d37\"\n    }\n}"}],"_postman_id":"f1041aa0-d1ee-4ee7-b035-0b44c982ac45"},{"name":"Reset password","id":"788b9375-315c-4407-b355-03da214b0efd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"password\":\"Password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/user/password/reset/cd961a5e4596a14085b4b607c5b63298d1aa8276","description":"<p>This endpoint allows users change their password after making a forgot password request. Paste the reset-token from the 'forgot password' endpoint and submit a new password.</p>\n","urlObject":{"protocol":"http","port":"4000","path":["api","user","password","reset","cd961a5e4596a14085b4b607c5b63298d1aa8276"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"59215e29-e6f9-42fb-a9f1-44b22a8d4d7f","name":"Reset password- Successful","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"password\":\"Password1\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/auth/password/reset/1ce422e8279af9f27703b615fbe20c7f64bd2d38"},"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":"57"},{"key":"ETag","value":"W/\"39-jm2lK1zKuZNjDUzOmV1q6FRlxU4\""},{"key":"Date","value":"Thu, 28 Jan 2021 13:46:46 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"Password changed successfully\"\n}"},{"id":"cad58afe-e742-4253-a14f-71d48832d3e0","name":"Reset password- Invalid token","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"password\":\"Password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/auth/password/reset/a9e6a9bd0a1b4014232b5e993263dc0c74634350"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"42"},{"key":"ETag","value":"W/\"2a-/51+g+dOd6mF6U++yQYQ/nFaxc8\""},{"key":"Date","value":"Wed, 27 Jan 2021 20:54:56 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"Invalid token\"\n}"}],"_postman_id":"788b9375-315c-4407-b355-03da214b0efd"},{"name":"Sign up- Admin","id":"ccf2e002-4864-46a5-bf0e-87481c24b3c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\":\"admintest\",\r\n    \"email\":\"admintest@gmail.com\",\r\n    \"password\":\"Password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/auth/signup-admin","description":"<p>Only an existing admin can create another admin.</p>\n","urlObject":{"protocol":"http","port":"4000","path":["api","auth","signup-admin"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"402bf78e-8c2b-4a94-bedb-339b6cc78624","name":"Sign up- Admin- User exists","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\":\"admintest\",\r\n    \"email\":\"admintest@gmail.com\",\r\n    \"password\":\"Password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/auth/signup-admin"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"48"},{"key":"ETag","value":"W/\"30-3uJZIelE9AYBtQwPW1DSfVErcyA\""},{"key":"Date","value":"Sat, 20 Feb 2021 18:43:52 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"User already exists\"\n}"},{"id":"ce5909df-5f89-4897-a7ba-874d2a825dcc","name":"Sign up- Admin- Successful","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\":\"admintest\",\r\n    \"email\":\"admintest@gmail.com\",\r\n    \"password\":\"Password\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/auth/signup-admin"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"325"},{"key":"ETag","value":"W/\"145-WbrvSpwiBZrStPJZQOzE3jyuQy8\""},{"key":"Date","value":"Sat, 20 Feb 2021 18:43:00 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"Users created successfully\",\n    \"data\": {\n        \"username\": \"admintest\",\n        \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2MDMxNTgzNDAwODIwOTQyNDA3ZmYxNDAiLCJ1c2VybmFtZSI6ImFkbWludGVzdCIsInVzZXJSb2xlIjoiQURNSU4iLCJpYXQiOjE2MTM4NDY1ODAsImV4cCI6MTYxMzkzMjk4MH0.lyORI8g3Or_mOWY_XYZTQRQfDfcMQpfEd7LxiIkOeYo\"\n    }\n}"}],"_postman_id":"ccf2e002-4864-46a5-bf0e-87481c24b3c0"}],"id":"fd873094-af15-4164-8717-cdaa479e28a6","description":"<p>These endpoints relate to user authentication.</p>\n<p>Only an existing admin can create another admin.\nA dummy admin has been seeded into the database.</p>\n<p><strong><em>Administrator</em></strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"username\": \"admin\",\n  \"email\": \"admin@gmail.com\",\n  \"password\": \"Password\"\n}\n</code></pre>\n","event":[{"listen":"prerequest","script":{"id":"5bf699c3-fb85-4ef5-84ed-cd1d27567fc0","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a9518058-1b9d-4a1f-8af2-8c7f685bc35c","type":"text/javascript","exec":[""]}}],"_postman_id":"fd873094-af15-4164-8717-cdaa479e28a6"},{"name":"User","item":[{"name":"Get all users","id":"33c89d3a-818e-4bf1-8e4f-908e25fe643a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:4000/api/user","description":"<p>This endpoint is only accessible by admins.</p>\n","urlObject":{"protocol":"http","port":"4000","path":["api","user"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"be5e66db-f045-457c-8b06-b3f5b7439096","name":"Get all users- Successful","originalRequest":{"method":"GET","header":[],"url":"http://localhost:4000/api/user/"},"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":"749"},{"key":"ETag","value":"W/\"2ed-isdp0D5xqSe4+lGynacB64cvG3s\""},{"key":"Date","value":"Tue, 26 Jan 2021 22:59:48 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"Users retrieved successfully\",\n    \"data\": [\n        {\n            \"_id\": \"5ff46abfe2ceeb47a84bdc07\",\n            \"username\": \"calebj\",\n            \"email\": \"caleb@gmail.com\",\n            \"createdAt\": \"2021-01-05T13:33:51.554Z\",\n            \"updatedAt\": \"2021-01-05T20:24:01.905Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"5ff46ae1e2ceeb47a84bdc08\",\n            \"username\": \"john\",\n            \"email\": \"john@gmail.com\",\n            \"createdAt\": \"2021-01-05T13:34:25.358Z\",\n            \"updatedAt\": \"2021-01-05T13:34:25.358Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"600f0e500a7fcb3f1c4565c0\",\n            \"username\": \"johndoe\",\n            \"email\": \"johndoe@gmail.com\",\n            \"createdAt\": \"2021-01-25T18:30:40.967Z\",\n            \"updatedAt\": \"2021-01-25T21:05:53.707Z\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"33c89d3a-818e-4bf1-8e4f-908e25fe643a"},{"name":"Get user by ID","id":"6508be3f-b956-441b-916f-75437eef74ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:4000/api/user/5ff46ae1e2ceeb47a84bdc08","description":"<p>This endpoint gets a user by ID.</p>\n","urlObject":{"protocol":"http","port":"4000","path":["api","user","5ff46ae1e2ceeb47a84bdc08"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"56fe8664-bb92-4e6a-ad3e-30b72c11e864","name":"Get user by ID- Successful","originalRequest":{"method":"GET","header":[],"url":"http://localhost:4000/api/user/5ff46ae1e2ceeb47a84bdc08"},"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":"169"},{"key":"ETag","value":"W/\"a9-OwgmuDvq/eZf5qEFCo49vaOAglk\""},{"key":"Date","value":"Mon, 25 Jan 2021 19:32:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"User retrieved successfully\",\n    \"data\": {\n        \"_id\": \"600f0e500a7fcb3f1c4565c0\",\n        \"username\": \"johndoe\",\n        \"email\": \"johndoe@gmail.com\",\n        \"createdAt\": \"2021-01-25T18:30:40.967Z\",\n        \"updatedAt\": \"2021-01-25T20:51:36.753Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"6508be3f-b956-441b-916f-75437eef74ee"},{"name":"Update user","id":"9ef99288-5d02-4353-bb12-de4f4f3c6946","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\":\"john\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/user/5ff46ae1e2ceeb47a84bdc08","description":"<p>This endpoint allows users to update their email or username. Attempt one field to update at a time</p>\n<p>A user cannot update the email and username to another that already exists.</p>\n","urlObject":{"protocol":"http","port":"4000","path":["api","user","5ff46ae1e2ceeb47a84bdc08"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0beca8e1-56b0-41d2-b955-bee823b60201","name":"Update user- Email already taken","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n     \"email\":\"johndoe@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/user/5ff46ae1e2ceeb47a84bdc08"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"48"},{"key":"ETag","value":"W/\"30-yS3tdlqT7pZKuBROLFX95Huag2M\""},{"key":"Date","value":"Mon, 25 Jan 2021 21:06:35 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"Email already taken\"\n}"},{"id":"3aece1db-36f6-4e0d-8be3-094d353e4003","name":"Update user- With own's existing username and email","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\":\"johndoe\",\r\n    \"email\":\"johndoe@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/user/600f0e500a7fcb3f1c4565c0"},"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":"230"},{"key":"ETag","value":"W/\"e6-8SoVsqOdRhzZ0S1Jhv78AEaYLKQ\""},{"key":"Date","value":"Mon, 25 Jan 2021 20:51:37 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"User updated successfully\",\n    \"data\": {\n        \"_id\": \"600f0e500a7fcb3f1c4565c0\",\n        \"username\": \"johndoe\",\n        \"email\": \"johndoe@gmail.com\",\n        \"createdAt\": \"2021-01-25T18:30:40.967Z\",\n        \"updatedAt\": \"2021-01-25T20:50:53.544Z\",\n        \"__v\": 0\n    }\n}"},{"id":"ae0290fa-cd39-4cad-b025-7fe2d0a1f5be","name":"Update user- Empty request","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/user/5ff46ae1e2ceeb47a84bdc08"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"75"},{"key":"ETag","value":"W/\"4b-fJWXdVw2zyZY176EySrhqm2S+io\""},{"key":"Date","value":"Mon, 25 Jan 2021 21:10:49 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"Please provide the email or username to update\"\n}"},{"id":"e5470f0e-a730-4d94-b704-79bdc50648bf","name":"Update user- Username already taken","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"username\":\"johndoe\",\r\n    \"email\":\"johndoe@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/user/5ff46ae1e2ceeb47a84bdc08"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"51"},{"key":"ETag","value":"W/\"33-WLKzoFa257hrIxovXAxJ1CmFcKM\""},{"key":"Date","value":"Mon, 25 Jan 2021 21:06:03 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"Username already taken\"\n}"}],"_postman_id":"9ef99288-5d02-4353-bb12-de4f4f3c6946"},{"name":"Delete user","id":"f950e250-ab97-4824-bb87-3fa10e859d72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:4000/api/user/6011ac96d6756502381fa731","description":"<p>This endpoint is only accessible by admins.</p>\n","urlObject":{"protocol":"http","port":"4000","path":["api","user","6011ac96d6756502381fa731"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"6ea07b74-f407-480c-81e6-8686af994e43","name":"Delete user- Successful","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:4000/api/user/6011ac96d6756502381fa731"},"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":"53"},{"key":"ETag","value":"W/\"35-Lch//JEdeh3rQke/0geafI+77NA\""},{"key":"Date","value":"Sat, 20 Feb 2021 19:47:26 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"User deleted successfully\"\n}"},{"id":"e132be73-6f3e-43b4-900b-08ccbcafbd86","name":"Delete user- User not found","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:4000/api/user/6011ac96d6756502381fa732"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"68"},{"key":"ETag","value":"W/\"44-9vKFPTF6zgroBIrxqI0m5BjC0xw\""},{"key":"Date","value":"Sat, 20 Feb 2021 19:44:48 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"User does not exist or has been deleted\"\n}"}],"_postman_id":"f950e250-ab97-4824-bb87-3fa10e859d72"},{"name":"Profile Picture upload","id":"eeeafb50-1dab-4e38-90c5-c49f8cfe1acf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"image","type":"file","src":"/C:/Users/USER/Pictures/Album Covers/4.png"},{"key":"_id","value":"600f0e500a7fcb3f1c4565c0","type":"text"}]},"url":"http://localhost:4000/api/user/image-upload","description":"<p>This endpoint allows an existing user set or update their profile picture.</p>\n<p>Request should be sent using formdata.</p>\n","urlObject":{"protocol":"http","port":"4000","path":["api","user","image-upload"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0e39b7c7-b245-4598-ab61-c930edc934b6","name":"Profile Picture upload- User not found","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"image","type":"file","src":["/C:/Users/USER/Pictures/Album Covers/4.png"]},{"key":"_id","value":"600f0e500a7fcb3f1c4565c9","type":"text"}]},"url":"http://localhost:4000/api/user/image-upload"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"43"},{"key":"ETag","value":"W/\"2b-zWyCL5QYieSCHnIgh1OZxnfzKU8\""},{"key":"Date","value":"Fri, 26 Feb 2021 13:33:52 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"User not found\"\n}"},{"id":"f7813f68-f808-4f61-83ec-732c4853ef7a","name":"Profile Picture upload- Successful","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"image","type":"file","src":["/C:/Users/USER/Pictures/Album Covers/4.png"]},{"key":"_id","value":"600f0e500a7fcb3f1c4565c0","type":"text"}]},"url":"http://localhost:4000/api/user/image-upload"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"306"},{"key":"ETag","value":"W/\"132-LI5R/jQqpHQubCrb4KH4LLTv0b8\""},{"key":"Date","value":"Fri, 26 Feb 2021 13:28:42 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"Profile picture set successfully\",\n    \"data\": {\n        \"userRole\": \"CUSTOMER\",\n        \"_id\": \"600f0e500a7fcb3f1c4565c0\",\n        \"username\": \"johndoe\",\n        \"email\": \"johndoe@gmail.com\",\n        \"profilePicture\": \"http://res.cloudinary.com/rachellite/image/upload/v1614346122/SCALevelUp/Profile_Picture/bbgfwtiv0efhzqyyqf2m.png\"\n    }\n}"}],"_postman_id":"eeeafb50-1dab-4e38-90c5-c49f8cfe1acf"}],"id":"5d8228db-35a5-488c-bddd-e01537f4c877","description":"<p>These endpoints relate to users.</p>\n<p>Authentication is required to accessall routes.</p>\n<p>Only an admin can see the list of all users or delete a user.</p>\n","event":[{"listen":"prerequest","script":{"id":"17769877-4999-4f08-8503-86c3ed7909c9","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"f819a0c7-bcc8-48a7-ac0e-7e61778ad267","type":"text/javascript","exec":[""]}}],"_postman_id":"5d8228db-35a5-488c-bddd-e01537f4c877"},{"name":"Movie","item":[{"name":"Create movie","id":"45110f07-b6d5-4b74-9e59-9916e9830632","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Star wars","type":"text"},{"key":"description","value":"Race between humans and aliens","type":"text"},{"key":"genre","value":"Science Fiction","type":"text"},{"key":"logo","type":"file","src":"/C:/Users/USER/Pictures/Star wars_.jpg"},{"key":"rentalCost","value":"500","type":"text"},{"key":"qtyInStock","value":"200","type":"text"}]},"url":"http://localhost:4000/api/movie","description":"<p>This endpoint allows admins save movies.</p>\n","urlObject":{"protocol":"http","port":"4000","path":["api","movie"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"39914ded-67f7-4b84-9d17-74dd100e5bdf","name":"Create movie- Movie exists","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Star wars","type":"text"},{"key":"description","value":"Race between humans and aliens","type":"text"},{"key":"genre","value":"Science Fiction","type":"text"},{"key":"logo","type":"file","src":["/C:/Users/USER/Pictures/Star wars_.jpg"]},{"key":"rentalCost","value":"500","type":"text"}]},"url":"http://localhost:4000/api/movie"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"65"},{"key":"ETag","value":"W/\"41-TQPeZWzSjdtkqBgTgQAGxWdsZJ0\""},{"key":"Date","value":"Mon, 15 Mar 2021 16:09:23 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"Another movie with this title exists\"\n}"},{"id":"aacd20e1-2ef4-48f2-8c08-9b0c03e711a5","name":"Create movie- Successful","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Star wars","type":"text"},{"key":"description","value":"Race between humans and aliens","type":"text"},{"key":"genre","value":"Science Fiction","type":"text"},{"key":"logo","type":"file","src":["/C:/Users/USER/Pictures/Star wars_.jpg"]},{"key":"rentalCost","value":"500","type":"text"}]},"url":"http://localhost:4000/api/movie"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"429"},{"key":"ETag","value":"W/\"1ad-JhHDSSJ2NkhfiKR+qnkUtn5fpsA\""},{"key":"Date","value":"Mon, 15 Mar 2021 15:52:52 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"Account created successfully\",\n    \"data\": {\n        \"rentalCost\": 50000,\n        \"_id\": \"604f82d489b40c0b1cdc7e31\",\n        \"name\": \"Star wars\",\n        \"description\": \"Race between humans and aliens\",\n        \"genre\": \"Science Fiction\",\n        \"logo\": \"http://res.cloudinary.com/rachellite/image/upload/v1615823572/SCALevelUp/MovieLogo/vh2fuwzwo2ldi6glvjuu.jpg\",\n        \"createdAt\": \"2021-03-15T15:52:52.603Z\",\n        \"updatedAt\": \"2021-03-15T15:52:52.603Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"45110f07-b6d5-4b74-9e59-9916e9830632"},{"name":"Get all movies","id":"f21eea8c-c7ee-4a8e-b3d9-7c7067c3e48b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:4000/api/movie","urlObject":{"protocol":"http","port":"4000","path":["api","movie"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"71b81b87-83bb-4e13-8a08-762946605785","name":"Get all movies- Successful","originalRequest":{"method":"GET","header":[],"url":"http://localhost:4000/api/movie"},"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":"1087"},{"key":"ETag","value":"W/\"43f-sKjOvPHs5nWFKxaxj7qyt+gmT2E\""},{"key":"Date","value":"Tue, 26 Jan 2021 23:22:56 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"Movies retrieved successfully\",\n    \"data\": [\n        {\n            \"_id\": \"60316e690d64f7494ccdb836\",\n            \"name\": \"Mulan\",\n            \"description\": \"Asian female pretended to be a male to protect her family's homour\",\n            \"genre\": \"Cartoon\",\n            \"logo\": \"http://res.cloudinary.com/rachellite/image/upload/v1613852265/SCALevelUp/MovieLogo/kkejbz2w2kfaidpuztay.png\",\n            \"createdAt\": \"2021-02-20T20:17:45.515Z\",\n            \"updatedAt\": \"2021-02-20T20:17:45.515Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"60316f122aa689587c9cae1e\",\n            \"name\": \"The notebook\",\n            \"description\": \"Romance brought to life\",\n            \"genre\": \"Romance\",\n            \"logo\": \"http://res.cloudinary.com/rachellite/image/upload/v1613852434/SCALevelUp/MovieLogo/etxsbs5zspauqgh30kjm.png\",\n            \"createdAt\": \"2021-02-20T20:20:34.695Z\",\n            \"updatedAt\": \"2021-02-20T20:20:34.695Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"60316f442aa689587c9cae1f\",\n            \"name\": \"Star wars\",\n            \"description\": \"Race between humans and aliens\",\n            \"genre\": \"Science Fiction\",\n            \"logo\": \"http://res.cloudinary.com/rachellite/image/upload/v1613852484/SCALevelUp/MovieLogo/wbwrv7idrxjnojfgzboe.png\",\n            \"createdAt\": \"2021-02-20T20:21:24.826Z\",\n            \"updatedAt\": \"2021-02-20T20:21:24.826Z\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"f21eea8c-c7ee-4a8e-b3d9-7c7067c3e48b"},{"name":"Get movie by ID","id":"ce5e3b2f-81cb-4e2f-90b5-135ab5073586","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:4000/api/movie/60316e690d64f7494ccdb836","description":"<p>This endpoint gets the movie by ID if the the user logged in is the user that uploaded the movie record.</p>\n","urlObject":{"protocol":"http","port":"4000","path":["api","movie","60316e690d64f7494ccdb836"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"7ea6a467-434f-4fab-9efd-15c872f280e2","name":"Get movie by ID- Successful","originalRequest":{"method":"GET","header":[],"url":"http://localhost:4000/api/movie/60316e690d64f7494ccdb836"},"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":"417"},{"key":"ETag","value":"W/\"1a1-NjL6+HoKuVFCiG8l2B7x/MAvfL4\""},{"key":"Date","value":"Sat, 20 Feb 2021 20:28:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"Movie retrieved successfully\",\n    \"data\": {\n        \"_id\": \"60316e690d64f7494ccdb836\",\n        \"name\": \"Mulan\",\n        \"description\": \"Asian female pretended to be a male to protect her family's homour\",\n        \"genre\": \"Cartoon\",\n        \"logo\": \"http://res.cloudinary.com/rachellite/image/upload/v1613852265/SCALevelUp/MovieLogo/kkejbz2w2kfaidpuztay.png\",\n        \"createdAt\": \"2021-02-20T20:17:45.515Z\",\n        \"updatedAt\": \"2021-02-20T20:17:45.515Z\",\n        \"__v\": 0\n    }\n}"},{"id":"d52a4586-54fc-4a72-bba0-61ddd1df1fc7","name":"Get movie by ID-Movie does not exist","originalRequest":{"method":"GET","header":[],"url":"http://localhost:4000/api/movie/60316e690d64f7494ccdb836"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"49"},{"key":"ETag","value":"W/\"31-xwkbu/YAGilmBKZ7IkDvom0mS7c\""},{"key":"Date","value":"Sat, 20 Feb 2021 20:25:02 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"Movie does not exist\"\n}"}],"_postman_id":"ce5e3b2f-81cb-4e2f-90b5-135ab5073586"},{"name":"Update movie","id":"bce2ddbc-45d6-4e63-9934-ebb3e29b5a66","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Star wars","type":"text"},{"key":"description","value":"Race between humans and aliens","type":"text"},{"key":"genre","value":"Science Fiction","type":"text"},{"key":"logo","type":"file","src":"/C:/Users/USER/Pictures/Star wars_.jpg"}]},"url":"http://localhost:4000/api/movie/60316f442aa689587c9cae1f","description":"<p>This endpoint is only accessible to admins.</p>\n","urlObject":{"protocol":"http","port":"4000","path":["api","movie","60316f442aa689587c9cae1f"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0426e6f2-d927-48ba-9e27-f3a8686ce170","name":"Update movie- Movie not found","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Star wars","type":"text"},{"key":"description","value":"Race between humans and aliens","type":"text"},{"key":"genre","value":"Science Fiction","type":"text"},{"key":"logo","type":"file","src":["/C:/Users/USER/Pictures/Album Covers/+.png"]}],"options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/movie/60317ed66ce915479828d1b8"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"49"},{"key":"ETag","value":"W/\"31-xwkbu/YAGilmBKZ7IkDvom0mS7c\""},{"key":"Date","value":"Sat, 20 Feb 2021 21:29:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"Movie does not exist\"\n}"}],"_postman_id":"bce2ddbc-45d6-4e63-9934-ebb3e29b5a66"},{"name":"Delete movie","id":"c05b1adf-b2b3-4d11-97fc-abcc03ac5e1f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:4000/api/movie/6010a1406a6ac71fe032295a","description":"<p>This endpoint is only accessible to admins.</p>\n","urlObject":{"protocol":"http","port":"4000","path":["api","movie","6010a1406a6ac71fe032295a"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"833a52bd-0f1c-4d99-81bb-53b3aefc3450","name":"Delete movie","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:4000/api/movie/5ff456814fdec98d60c4b858"},"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":"54"},{"key":"ETag","value":"W/\"36-3bODYEzH90tG4KvWlNROvNi05k0\""},{"key":"Date","value":"Tue, 05 Jan 2021 12:09:02 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"Movie deleted successfully\"\n}"},{"id":"96e370af-6447-4040-a0c0-47b74ec6d1ba","name":"Delete movie- Movie not found","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:4000/api/movie/6010a44bfdc34a0950354543"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"76"},{"key":"ETag","value":"W/\"4c-e30EqQW7bWQL3ALc7mz98BVqMhc\""},{"key":"Date","value":"Wed, 27 Jan 2021 15:27:26 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"Movie record does not exist or has been deleted\"\n}"}],"_postman_id":"c05b1adf-b2b3-4d11-97fc-abcc03ac5e1f"}],"id":"9e500c16-b090-4af7-ab35-ccb3e1a7c98e","description":"<p>These endpoints relate to movies.</p>\n<p>Only an admin can create, update or delete a movie.</p>\n","event":[{"listen":"prerequest","script":{"id":"21a0d7fb-33ef-4c78-831f-542ca84024ca","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a501d51b-f74b-4fc5-87d0-b11aa07e965b","type":"text/javascript","exec":[""]}}],"_postman_id":"9e500c16-b090-4af7-ab35-ccb3e1a7c98e"},{"name":"Rental","item":[{"name":"Create rental","id":"9eb139b4-3dbb-46dd-8133-0d7be1143529","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"movieId\": \"60316e690d64f7494ccdb836\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/rental","description":"<p>This API allows customers rent movies.</p>\n<p>The customer's wallet is debited the cost of the movie and the company is credited.\nThe transaction is recorded in the transaction table.</p>\n","urlObject":{"protocol":"http","port":"4000","path":["api","rental"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"3e6e41fd-fcd1-45f6-aa28-02693076f163","name":"Create rental- Movie not found","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"movieId\": \"60316e690d64f7494ccdb835\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/rental"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"49"},{"key":"ETag","value":"W/\"31-xwkbu/YAGilmBKZ7IkDvom0mS7c\""},{"key":"Date","value":"Tue, 16 Mar 2021 16:50:41 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"Movie does not exist\"\n}"},{"id":"9da8c737-f6a9-41b0-bc99-8e0a3a46f578","name":"Create rental- Successful","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"movieId\": \"60316e690d64f7494ccdb836\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/rental"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"294"},{"key":"ETag","value":"W/\"126-TZiXFgYAOpYIoXZ/+3c9JQm86Kg\""},{"key":"Date","value":"Tue, 16 Mar 2021 18:04:10 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"Movie rented successfully\",\n    \"data\": {\n        \"dateRented\": \"2021-03-16T18:04:05.710Z\",\n        \"_id\": \"6050f31a12ca123f2c4b1f21\",\n        \"movieId\": \"60316e690d64f7494ccdb836\",\n        \"userId\": \"600f0e500a7fcb3f1c4565c0\",\n        \"createdAt\": \"2021-03-16T18:04:10.019Z\",\n        \"updatedAt\": \"2021-03-16T18:04:10.019Z\",\n        \"__v\": 0\n    }\n}"},{"id":"fb17ceb1-91a0-4a10-beac-88643f27ccb8","name":"Create rental-Insufficient balance","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"movieId\": \"60316e690d64f7494ccdb836\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/rental"},"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":"74"},{"key":"ETag","value":"W/\"4a-u5x//Jer8Ik3u1weXn57A5+020o\""},{"key":"Date","value":"Tue, 16 Mar 2021 16:51:10 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"Insufficient balance. Please fund your wallet\"\n}"}],"_postman_id":"9eb139b4-3dbb-46dd-8133-0d7be1143529"},{"name":"Get all rentals","id":"5436d27c-0776-47af-af71-9e71e9e34a69","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:4000/api/rental","description":"<p>An admin should be able to see the list of all rentals.</p>\n","urlObject":{"protocol":"http","port":"4000","path":["api","rental"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"4f3c4845-fab8-4008-b93a-b86fa7098b95","name":"Get all rentals- Successful","originalRequest":{"method":"GET","header":[],"url":"http://localhost:4000/api/rental"},"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":"769"},{"key":"ETag","value":"W/\"301-LQx4seiOMQVR9idYIpYAILWacWA\""},{"key":"Date","value":"Tue, 16 Mar 2021 18:47:55 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"Rentals retrieved successfully\",\n    \"data\": [\n        {\n            \"dateRented\": \"2021-03-16T17:55:51.682Z\",\n            \"_id\": \"6050f13486ccfa3030d22924\",\n            \"movieId\": \"60316e690d64f7494ccdb836\",\n            \"userId\": \"600f0e500a7fcb3f1c4565c0\",\n            \"createdAt\": \"2021-03-16T17:56:04.491Z\",\n            \"updatedAt\": \"2021-03-16T17:56:04.491Z\",\n            \"__v\": 0\n        },\n        {\n            \"dateRented\": \"2021-03-16T18:02:33.298Z\",\n            \"_id\": \"6050f2ca0c6ac7269833d551\",\n            \"movieId\": \"60316e690d64f7494ccdb836\",\n            \"userId\": \"600f0e500a7fcb3f1c4565c0\",\n            \"createdAt\": \"2021-03-16T18:02:50.173Z\",\n            \"updatedAt\": \"2021-03-16T18:02:50.173Z\",\n            \"__v\": 0\n        },\n        {\n            \"dateRented\": \"2021-03-16T18:04:05.710Z\",\n            \"_id\": \"6050f31a12ca123f2c4b1f21\",\n            \"movieId\": \"60316e690d64f7494ccdb836\",\n            \"userId\": \"600f0e500a7fcb3f1c4565c0\",\n            \"createdAt\": \"2021-03-16T18:04:10.019Z\",\n            \"updatedAt\": \"2021-03-16T18:04:10.019Z\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"5436d27c-0776-47af-af71-9e71e9e34a69"},{"name":"Get rental by ID","id":"1a5c25af-232c-417d-827b-77313226ff91","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:4000/api/rental/6050f2ca0c6ac7269833d551","urlObject":{"protocol":"http","port":"4000","path":["api","rental","6050f2ca0c6ac7269833d551"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"03c09858-0592-4891-b756-768eae44b271","name":"Get rental by ID-Successful","originalRequest":{"method":"GET","header":[],"url":"http://localhost:4000/api/rental/6050f2ca0c6ac7269833d551"},"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":"298"},{"key":"ETag","value":"W/\"12a-jyTv8RHMoXWEE5e2gqvN/eyjDdA\""},{"key":"Date","value":"Tue, 16 Mar 2021 19:23:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"Rental retrieved successfully\",\n    \"data\": {\n        \"dateRented\": \"2021-03-16T18:02:33.298Z\",\n        \"_id\": \"6050f2ca0c6ac7269833d551\",\n        \"movieId\": \"60316e690d64f7494ccdb836\",\n        \"userId\": \"600f0e500a7fcb3f1c4565c0\",\n        \"createdAt\": \"2021-03-16T18:02:50.173Z\",\n        \"updatedAt\": \"2021-03-16T18:02:50.173Z\",\n        \"__v\": 0\n    }\n}"},{"id":"f23f3faa-3124-4683-a137-041fb28b29dd","name":"Get rental by ID-Failed","originalRequest":{"method":"GET","header":[],"url":"http://localhost:4000/api/rental/6050f2ca0c6ac7269833d552"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"50"},{"key":"ETag","value":"W/\"32-cbEwQw4/sZXw//u+A1GU82AWfzU\""},{"key":"Date","value":"Tue, 16 Mar 2021 19:24:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"Rental does not exist\"\n}"}],"_postman_id":"1a5c25af-232c-417d-827b-77313226ff91"},{"name":"Get all rentals by userId","id":"4b0a0f06-c63f-4017-a973-a5b53870f19f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:4000/api/rental/me","description":"<p>Gets all rentals by the user who created the record (via the userId).\nThe <code>userId</code> is decoded from the token.</p>\n","urlObject":{"protocol":"http","port":"4000","path":["api","rental","me"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"9753440b-d74c-4983-ae5f-a71ce495ceb9","name":"Get all rentals by userId- Successful","originalRequest":{"method":"GET","header":[],"url":"http://localhost:4000/api/rental/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":"769"},{"key":"ETag","value":"W/\"301-LQx4seiOMQVR9idYIpYAILWacWA\""},{"key":"Date","value":"Tue, 16 Mar 2021 19:25:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"Rentals retrieved successfully\",\n    \"data\": [\n        {\n            \"dateRented\": \"2021-03-16T17:55:51.682Z\",\n            \"_id\": \"6050f13486ccfa3030d22924\",\n            \"movieId\": \"60316e690d64f7494ccdb836\",\n            \"userId\": \"600f0e500a7fcb3f1c4565c0\",\n            \"createdAt\": \"2021-03-16T17:56:04.491Z\",\n            \"updatedAt\": \"2021-03-16T17:56:04.491Z\",\n            \"__v\": 0\n        },\n        {\n            \"dateRented\": \"2021-03-16T18:02:33.298Z\",\n            \"_id\": \"6050f2ca0c6ac7269833d551\",\n            \"movieId\": \"60316e690d64f7494ccdb836\",\n            \"userId\": \"600f0e500a7fcb3f1c4565c0\",\n            \"createdAt\": \"2021-03-16T18:02:50.173Z\",\n            \"updatedAt\": \"2021-03-16T18:02:50.173Z\",\n            \"__v\": 0\n        },\n        {\n            \"dateRented\": \"2021-03-16T18:04:05.710Z\",\n            \"_id\": \"6050f31a12ca123f2c4b1f21\",\n            \"movieId\": \"60316e690d64f7494ccdb836\",\n            \"userId\": \"600f0e500a7fcb3f1c4565c0\",\n            \"createdAt\": \"2021-03-16T18:04:10.019Z\",\n            \"updatedAt\": \"2021-03-16T18:04:10.019Z\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"4b0a0f06-c63f-4017-a973-a5b53870f19f"},{"name":"Update rental","id":"b0c8e1c0-2a64-4549-93f1-883425c0ee8d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"_id\": \"60118bbfe44aab3ae054e92f\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/rental/60118bbfe44aab3ae054e92f","description":"<p>There is no scenario that currently supports this</p>\n","urlObject":{"protocol":"http","port":"4000","path":["api","rental","60118bbfe44aab3ae054e92f"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b0c8e1c0-2a64-4549-93f1-883425c0ee8d"},{"name":"Delete rental","id":"6ea488df-c358-48d5-8037-f295388ed58e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:4000/api/rental/60118b64e44aab3ae054e92b","urlObject":{"protocol":"http","port":"4000","path":["api","rental","60118b64e44aab3ae054e92b"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"d70e4640-7d68-4e56-a8e6-b405340224f8","name":"Delete rental- Successful","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:4000/api/rental/5ff4cbb3650b9923fca6aea9"},"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":"55"},{"key":"ETag","value":"W/\"37-gm1vvJVTSSXY2yy0XzlBeTqEwOU\""},{"key":"Date","value":"Tue, 05 Jan 2021 20:29:32 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"Rental deleted successfully\"\n}"},{"id":"fa3cbbc4-e08b-40c3-92b2-ad71292b6ee0","name":"Delete rental- Rental does not exist","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:4000/api/rental/5ff4cbb3650b9923fca6aea9"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"70"},{"key":"ETag","value":"W/\"46-/91Bb5g/D5Jt4XlxEhCdrbBpV+M\""},{"key":"Date","value":"Tue, 05 Jan 2021 20:32:26 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"message\": \"Rental does not exist\"\n}"}],"_postman_id":"6ea488df-c358-48d5-8037-f295388ed58e"}],"id":"14fcf64d-5a1b-4d37-b82c-2f91a20dd068","description":"<p>These endpoints relate to renting movies.</p>\n<p>For <code>create rental</code> and <code>get rentals by userId</code>, the <code>userId</code> tied to the rental record will be decoded from the token.</p>\n<p>An admin should be able to see the list of all rentals.</p>\n","event":[{"listen":"prerequest","script":{"id":"d9ebae26-3deb-43f7-9f6e-158830b86aac","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"9f556b6d-a415-44df-a338-f7f06f3f54eb","type":"text/javascript","exec":[""]}}],"_postman_id":"14fcf64d-5a1b-4d37-b82c-2f91a20dd068"},{"name":"Transaction","item":[{"name":"Fund wallet","id":"3241e392-d81d-4438-b43c-d275d237bbf3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"amount\": 100\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/payment/fund-wallet","description":"<p>This endpoint is used to fund the user's wallet. Click the <code>access_url</code> and follow the prompt.</p>\n","urlObject":{"protocol":"http","port":"4000","path":["api","payment","fund-wallet"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"47dc442b-60e7-4e07-b371-f4dec1b4792f","name":"Fund wallet- Successful","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"amount\": 100\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4000/api/payment/fund-wallet"},"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":"175"},{"key":"ETag","value":"W/\"af-MzIW5KJgpUfVTwnnie8F9qHOOqY\""},{"key":"Date","value":"Tue, 16 Mar 2021 11:55:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"Transaction initialized successfully\",\n    \"data\": {\n        \"authorization_url\": \"https://checkout.paystack.com/tv705uzdvpg10l5\",\n        \"reference\": \"SCALM-1615895714017\"\n    }\n}"}],"_postman_id":"3241e392-d81d-4438-b43c-d275d237bbf3"},{"name":"Get all transactions","id":"0948d305-d76b-4dd2-83e7-507fe68b249f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:4000/api/payment","urlObject":{"protocol":"http","port":"4000","path":["api","payment"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"183759ef-842e-4ab0-8313-ff4e23e6f346","name":"Get all transactions","originalRequest":{"method":"GET","header":[],"url":"http://localhost:4000/api/payment"},"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":"1869"},{"key":"ETag","value":"W/\"74d-Vw/hWGkK8PpVm2jlJ9xJTuRXxQI\""},{"key":"Date","value":"Tue, 16 Mar 2021 20:09:46 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"message\": \"Transaction retirved successfully\",\n    \"data\": [\n        {\n            \"_id\": \"6050ede6e9936137e4320612\",\n            \"reference\": \"60316e690d64f7494ccdb836\",\n            \"amount\": 250,\n            \"userId\": \"600f0e500a7fcb3f1c4565c0\",\n            \"trnxType\": \"DR\",\n            \"trnxSummary\": \"Movie rental\",\n            \"createdAt\": \"2021-03-16T17:41:58.476Z\",\n            \"updatedAt\": \"2021-03-16T17:41:58.476Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"6050f13386ccfa3030d22922\",\n            \"reference\": \"60316e690d64f7494ccdb836\",\n            \"amount\": 250,\n            \"userId\": \"600f0e500a7fcb3f1c4565c0\",\n            \"trnxType\": \"DR\",\n            \"trnxSummary\": \"Movie rental\",\n            \"createdAt\": \"2021-03-16T17:56:03.845Z\",\n            \"updatedAt\": \"2021-03-16T17:56:03.845Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"6050f13486ccfa3030d22923\",\n            \"reference\": \"60316e690d64f7494ccdb836\",\n            \"amount\": 250,\n            \"userId\": \"603156d7a9ede722f449e089\",\n            \"trnxType\": \"CR\",\n            \"trnxSummary\": \"Movie rental income\",\n            \"createdAt\": \"2021-03-16T17:56:04.277Z\",\n            \"updatedAt\": \"2021-03-16T17:56:04.277Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"6050f2c90c6ac7269833d54f\",\n            \"reference\": \"60316e690d64f7494ccdb836\",\n            \"amount\": 250,\n            \"userId\": \"600f0e500a7fcb3f1c4565c0\",\n            \"trnxType\": \"DR\",\n            \"trnxSummary\": \"Movie rental\",\n            \"createdAt\": \"2021-03-16T18:02:49.470Z\",\n            \"updatedAt\": \"2021-03-16T18:02:49.470Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"6050f2c90c6ac7269833d550\",\n            \"reference\": \"60316e690d64f7494ccdb836\",\n            \"amount\": 250,\n            \"userId\": \"603156d7a9ede722f449e089\",\n            \"trnxType\": \"CR\",\n            \"trnxSummary\": \"Movie rental income\",\n            \"createdAt\": \"2021-03-16T18:02:49.945Z\",\n            \"updatedAt\": \"2021-03-16T18:02:49.945Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"6050f31912ca123f2c4b1f1f\",\n            \"reference\": \"60316e690d64f7494ccdb836\",\n            \"amount\": 250,\n            \"userId\": \"600f0e500a7fcb3f1c4565c0\",\n            \"trnxType\": \"DR\",\n            \"trnxSummary\": \"Movie rental\",\n            \"createdAt\": \"2021-03-16T18:04:09.353Z\",\n            \"updatedAt\": \"2021-03-16T18:04:09.353Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"6050f31912ca123f2c4b1f20\",\n            \"reference\": \"60316e690d64f7494ccdb836\",\n            \"amount\": 250,\n            \"userId\": \"603156d7a9ede722f449e089\",\n            \"trnxType\": \"CR\",\n            \"trnxSummary\": \"Movie rental income\",\n            \"createdAt\": \"2021-03-16T18:04:09.793Z\",\n            \"updatedAt\": \"2021-03-16T18:04:09.793Z\",\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"0948d305-d76b-4dd2-83e7-507fe68b249f"}],"id":"c01fc524-9311-4844-ab0e-25e69cad25e2","_postman_id":"c01fc524-9311-4844-ab0e-25e69cad25e2","description":""}],"event":[{"listen":"prerequest","script":{"id":"f39aef5c-64ad-4693-ab56-8e7af78581e6","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"7661828f-a281-4a1b-b9d2-8d9a44988e89","type":"text/javascript","exec":[""]}}]}