{"info":{"_postman_id":"b06514ce-122a-4458-bde8-e3b6a8594df2","name":"Belajarsip beta","description":"<html><head></head><body><p>Belajarsip resources</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"6708077","collectionId":"b06514ce-122a-4458-bde8-e3b6a8594df2","publishedId":"TzCQamFa","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-04-05T06:32:09.000Z"},"item":[{"name":"Auth","item":[{"name":"Students","item":[{"name":"Register New Student","id":"c81e949b-cf39-47e5-a4f0-b2e31a8ee6e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\":\"Burhan\",\n    \"username\":\"burhan\",\n    \"email\":\"burhan@mail.com\",\n    \"password\" : \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/v1/auth/register","urlObject":{"path":["v1","auth","register"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[{"id":"eb4fcb96-2a91-406c-8bd7-401a23747442","name":"Register New Student","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\":\"Burhan\",\n    \"username\":\"burhan\",\n    \"email\":\"burhan@mail.com\",\n    \"password\" : \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/v1/auth/register"},"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":"45"},{"key":"ETag","value":"W/\"2d-JPF4KMsfHfyu4ewhw8J8qEp45uc\""},{"key":"Date","value":"Wed, 31 Mar 2021 16:18:52 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Account created!\"\n}"}],"_postman_id":"c81e949b-cf39-47e5-a4f0-b2e31a8ee6e8"}],"id":"00b1d28e-165d-48d3-9f21-35228594d97f","_postman_id":"00b1d28e-165d-48d3-9f21-35228594d97f","description":""},{"name":"Reset Password","item":[{"name":"Send OTP","id":"c39730e0-dfce-4998-ab1f-2c0fafbaca99","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"ragil@sipamungkas.com\"\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/v1/auth/forgot","urlObject":{"path":["v1","auth","forgot"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c39730e0-dfce-4998-ab1f-2c0fafbaca99"},{"name":"OTP Verification","id":"5cffd4f5-e92f-4d9c-a4f9-c11ec24b01eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"otp\" : \"3251\",\n    \"email\":\"ragil@sipamungkas.com\"\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/v1/auth/verify-otp","description":"<p>Verify the OTP and expired time</p>\n","urlObject":{"path":["v1","auth","verify-otp"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[{"id":"6a4376cd-d4e5-4f99-97d5-ac01745501ce","name":"OTP Verification","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"otp\" : \"3251\",\n    \"email\":\"ragil@sipamungkas.com\"\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/v1/auth/verify-otp"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"50"},{"key":"ETag","value":"W/\"32-y32t+IkMuSQuMoBlb81secP+HcE\""},{"key":"Date","value":"Wed, 12 May 2021 07:03:15 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Please Input password\"\n}"}],"_postman_id":"5cffd4f5-e92f-4d9c-a4f9-c11ec24b01eb"},{"name":"Change Password","id":"fbe0ce83-d8d7-4bd1-9e47-a3d368b32c06","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"ragil@sipamungkas.com\",\n    \"otp\" : \"3251\",\n    \"password\" : \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/v1/auth/new-password","description":"<p>Step 3 after otp and token validation</p>\n","urlObject":{"path":["v1","auth","new-password"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[{"id":"f63ae234-a365-4163-948f-b5af2c96321c","name":"Change Password","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\":\"ragil@sipamungkas.com\",\n    \"otp\" : \"3251\",\n    \"password\" : \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/v1/auth/new-password"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"45"},{"key":"ETag","value":"W/\"2d-GcevTvFFiUJVG284B5A/KlLCpLI\""},{"key":"Date","value":"Wed, 12 May 2021 07:10:57 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Password updated\"\n}"}],"_postman_id":"fbe0ce83-d8d7-4bd1-9e47-a3d368b32c06"}],"id":"00c30fb7-6a9b-41b2-9b53-a0dfc4452264","description":"<p>Reset Password Resources</p>\n","_postman_id":"00c30fb7-6a9b-41b2-9b53-a0dfc4452264"},{"name":"Login","id":"de7bc3ab-7c1f-4c60-a258-4745cf2f6a49","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\":\"ragil@sipamungkas.com\",\n    \"password\":\"password\"\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/v1/auth/login","urlObject":{"path":["v1","auth","login"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[{"id":"a76f8186-06a0-491a-b592-51120ee2fd11","name":"Login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\":\"ragil@sipamungkas.com\",\n    \"password\":\"password\"\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/v1/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":"293"},{"key":"ETag","value":"W/\"125-3VwCZAc1oCS62AXVLAApialehnY\""},{"key":"Date","value":"Fri, 02 Apr 2021 14:08:12 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Login success\",\n    \"data\": {\n        \"id\": 1,\n        \"name\": \"ragil\",\n        \"username\": \"asd\",\n        \"role_id\": 2,\n        \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJuYW1lIjoicmFnaWwiLCJyb2xlX2lkIjoyLCJpYXQiOjE2MTczNzI0OTIsImV4cCI6MTYxNzQ1ODg5Mn0.bDTYdgpKyaTocwwkFGK3vJAKj6UaHNBOOkGKKSptfVw\"\n    }\n}"}],"_postman_id":"de7bc3ab-7c1f-4c60-a258-4745cf2f6a49"},{"name":"Logout (Blacklist Token)","id":"7ba22b49-60ef-4d75-85d2-9d73873c4a13","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN2}}"}]},"isInherited":false},"method":"POST","header":[],"url":"{{HOST}}/v1/auth/logout","urlObject":{"path":["v1","auth","logout"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[{"id":"245d9716-a8b0-43a2-a2be-495fb43cd9ad","name":"Logout (Blacklist Token)","originalRequest":{"method":"POST","header":[],"url":"{{HOST}}/v1/auth/logout"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"42"},{"key":"ETag","value":"W/\"2a-oq+NVBpcGcTw5OFEqcyoFsGi2Ec\""},{"key":"Date","value":"Fri, 09 Apr 2021 20:23:39 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Logout succes\"\n}"},{"id":"4ecb5c9c-5cb3-4c14-b82f-025bec33d6f7","name":"Logout Token already blacklisted","originalRequest":{"method":"POST","header":[],"url":"{{HOST}}/v1/auth/logout"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"47"},{"key":"ETag","value":"W/\"2f-Ja5ijxBGoKQodjpJBr20WLG1uZ8\""},{"key":"Date","value":"Fri, 09 Apr 2021 20:24:41 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"Token Blacklisted\"\n}"}],"_postman_id":"7ba22b49-60ef-4d75-85d2-9d73873c4a13"}],"id":"574cfa94-de25-46e2-a741-8a6725309580","_postman_id":"574cfa94-de25-46e2-a741-8a6725309580","description":""},{"name":"Categories","item":[{"name":"Get All Categories ","id":"cebcd432-6e13-42d6-868a-97f63bb0d6b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN2}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{HOST}}/v1/categories","urlObject":{"path":["v1","categories"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[{"id":"2750b56a-4a85-4b37-a612-a44a65b490a8","name":"Get All Categories ","originalRequest":{"method":"GET","header":[],"url":"{{HOST}}/v1/categories"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"112"},{"key":"ETag","value":"W/\"70-MC9HxE5vvZhFaSMSBXYCUiWe058\""},{"key":"Date","value":"Tue, 30 Mar 2021 02:37:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"List of categories\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"name\": \"Software\"\n        },\n        {\n            \"id\": 2,\n            \"name\": \"JavaScript\"\n        }\n    ]\n}"}],"_postman_id":"cebcd432-6e13-42d6-868a-97f63bb0d6b5"}],"id":"f9aa78f5-f4fc-4799-81c1-15a30c072c38","_postman_id":"f9aa78f5-f4fc-4799-81c1-15a30c072c38","description":""},{"name":"Courses","item":[{"name":"Instructor","item":[{"name":"Get students score","id":"005bb322-baf7-480d-991d-88cd9328b841","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{HOST}}/v1/courses/1/students/1","description":"<p>Get score of section from registered course</p>\n","urlObject":{"path":["v1","courses","1","students","1"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[{"id":"6154fc08-fdd5-430b-bd4c-50cce7b152f2","name":"Get students score","originalRequest":{"method":"GET","header":[],"url":"{{HOST}}/v1/courses/1/students/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Fri, 21 May 2021 14:10:29 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"775"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"307-ivU5lihcmliMkLwreAiZByaPT5c\""}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"List of member subcourse score\",\n    \"data\": [\n        {\n            \"id\": 4,\n            \"title\": \"Java Script Beginner\",\n            \"course_id\": 4,\n            \"date\": \"2021-03-29T00:00:00.000Z\",\n            \"session_start\": \"08:00:00\",\n            \"duration\": 5400000,\n            \"score\": 0\n        },\n        {\n            \"id\": 6,\n            \"title\": \"ES 6 \",\n            \"course_id\": 6,\n            \"date\": \"2021-03-29T00:00:00.000Z\",\n            \"session_start\": \"08:00:00\",\n            \"duration\": 5400000,\n            \"score\": 70\n        },\n        {\n            \"id\": 7,\n            \"title\": \"Java Script Expert\",\n            \"course_id\": 7,\n            \"date\": \"2021-04-01T00:00:00.000Z\",\n            \"session_start\": \"08:00:00\",\n            \"duration\": 5400000,\n            \"score\": 90\n        },\n        {\n            \"id\": 9,\n            \"title\": \"Html for Expert\",\n            \"course_id\": 9,\n            \"date\": \"2021-04-07T00:00:00.000Z\",\n            \"session_start\": \"08:00:00\",\n            \"duration\": 5400000,\n            \"score\": 0\n        },\n        {\n            \"id\": 11,\n            \"title\": \"CSS Introduction Advanced\",\n            \"course_id\": 11,\n            \"date\": \"2021-05-31T00:00:00.000Z\",\n            \"session_start\": \"08:00:00\",\n            \"duration\": 5400000,\n            \"score\": 0\n        }\n    ]\n}"}],"_postman_id":"005bb322-baf7-480d-991d-88cd9328b841"},{"name":"Create students score","id":"802f925b-c3a0-45ff-af5b-fbfa55979107","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"subcourse_id\": 9,\n    \"student_id\": 1,\n    \"score\": 90\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/v1/courses/:courseId/students","urlObject":{"path":["v1","courses",":courseId","students"],"host":["{{HOST}}"],"query":[],"variable":[{"type":"any","value":"1","key":"courseId"}]}},"response":[{"id":"4ce9aa11-ce97-4c9b-839a-45f998d81c3d","name":"Create students score success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"subcourse_id\": 9,\n    \"student_id\": 1,\n    \"score\": 90\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{HOST}}/v1/courses/:courseId/students","host":["{{HOST}}"],"path":["v1","courses",":courseId","students"],"variable":[{"key":"courseId","value":"1"}]}},"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":"70"},{"key":"ETag","value":"W/\"46-kXp5kw63Kh4+LPojIYx98JLeX4Y\""},{"key":"Date","value":"Sat, 03 Apr 2021 04:12:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Create new score for student successfully\"\n}"},{"id":"b7adca91-91e0-49d8-af94-1135ef2fd303","name":"Create students score failed (student already have score)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"subcourse_id\": 9,\n    \"student_id\": 1,\n    \"score\": 90\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{HOST}}/v1/courses/:courseId/students","host":["{{HOST}}"],"path":["v1","courses",":courseId","students"],"variable":[{"key":"courseId","value":"1"}]}},"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-UzXAX4antrKGFnNFSuqWnQAODQA\""},{"key":"Date","value":"Sat, 03 Apr 2021 04:13:19 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Student already have score\"\n}"}],"_postman_id":"802f925b-c3a0-45ff-af5b-fbfa55979107"},{"name":"Update Student's Score","id":"877a5b4f-b483-4796-8894-787fba86b447","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"subcourse_id\": 9,\n    \"score\": 70\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/v1/courses/1/students/1","urlObject":{"path":["v1","courses","1","students","1"],"host":["{{HOST}}"],"query":[{"disabled":true,"key":"","value":null}],"variable":[]}},"response":[{"id":"7c1c468d-fccb-4fae-b3be-904cfa89c1ff","name":"Update Student's Score","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"subcourse_id\": 9,\n    \"score\": 70\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{HOST}}/v1/courses/1/students/1","host":["{{HOST}}"],"path":["v1","courses","1","students","1"],"query":[{"key":"","type":"text","value":null,"disabled":true}]}},"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":"59"},{"key":"ETag","value":"W/\"3b-lUTSneSlas0iJPsAVfv1yd1rJ/A\""},{"key":"Date","value":"Sat, 03 Apr 2021 04:23:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Update student's score success\"\n}"}],"_postman_id":"877a5b4f-b483-4796-8894-787fba86b447"},{"name":"Delete Student's score by subcourse id","id":"df9e1ed3-a231-4f56-bef7-6f328c790fe4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{HOST}}/v1/courses/:courseId/students/:studentsId/:subcourseId","urlObject":{"path":["v1","courses",":courseId","students",":studentsId",":subcourseId"],"host":["{{HOST}}"],"query":[{"disabled":true,"key":"","value":null}],"variable":[{"type":"any","value":"1","key":"courseId"},{"type":"any","value":"1","key":"studentsId"},{"type":"any","value":"9","key":"subcourseId"}]}},"response":[{"id":"735acc4e-514a-48a1-9f60-db52d8b26c54","name":"Delete Student's score by subcourse id","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{HOST}}/v1/courses/:courseId/students/:studentsId/:subcourseId","host":["{{HOST}}"],"path":["v1","courses",":courseId","students",":studentsId",":subcourseId"],"query":[{"key":"","type":"text","value":null,"disabled":true}],"variable":[{"key":"courseId","value":"1"},{"key":"studentsId","value":"1"},{"key":"subcourseId","value":"9"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"X-Powered-By","value":"Express"},{"key":"ETag","value":"W/\"3b-/xojwnHcPOH/OtgMtkt2/DRlL7g\""},{"key":"Date","value":"Sat, 03 Apr 2021 04:31:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"df9e1ed3-a231-4f56-bef7-6f328c790fe4"},{"name":"Get Course Student","id":"e9376cac-4bcc-4f9e-8c6d-be733bc7d292","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{HOST}}/v1/courses/1/students","description":"<p>Get list of course member</p>\n","urlObject":{"path":["v1","courses","1","students"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[{"id":"6997dbbb-3d82-4efe-b8b2-143436cc7ae6","name":"Get Course Student","originalRequest":{"method":"GET","header":[],"url":"{{HOST}}/v1/courses/1/students"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"281"},{"key":"ETag","value":"W/\"119-dBvuxGXcGFrMZirJhiV5Qcpk+Yg\""},{"key":"Date","value":"Wed, 26 May 2021 06:25:49 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"List of registered students\",\n    \"data\": [\n        {\n            \"user_id\": 1,\n            \"name\": \"Ragil Student\",\n            \"avatar\": \"avatars/avatar-1-1621869734107.jpg\"\n        },\n        {\n            \"user_id\": 13,\n            \"name\": \"ragail\",\n            \"avatar\": null\n        },\n        {\n            \"user_id\": 7,\n            \"name\": \"ragail\",\n            \"avatar\": null\n        },\n        {\n            \"user_id\": 3,\n            \"name\": \"ragail\",\n            \"avatar\": null\n        }\n    ]\n}"}],"_postman_id":"e9376cac-4bcc-4f9e-8c6d-be733bc7d292"},{"name":"Create New Course","id":"1e612693-f9ed-4f7a-ba05-0148455db00c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN1}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"image","type":"file","src":"/home/alfatih/Pictures/Screenshot from 2021-04-07 20-20-12.png","disabled":true},{"key":"name","value":"New Advanced Javascript Course ","type":"text"},{"key":"description","value":"Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum ","type":"text"},{"key":"level","value":"2","type":"text"},{"key":"category","value":"2","type":"text"},{"key":"price","value":"50","type":"text"},{"key":"start_date","value":"2021-04-19","description":"<p>yyyy-mm-dd format, eg: 2021-04-19</p>\n","type":"text"},{"key":"session_start","value":"09:14:00","description":"<p>H:i:s format, eg: 09:15:00</p>\n","type":"text"},{"key":"duration","value":"9000000","description":"<p>duration in milliseconds</p>\n","type":"text"},{"key":"day","value":"1","description":"<p>day in number, sun = 0, saturday =7</p>\n","type":"text"}]},"url":"{{HOST}}/v1/courses","urlObject":{"path":["v1","courses"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[{"id":"e9b2f70f-e45f-445e-a9be-29834060dde6","name":"Create New Course","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"image","type":"file","src":"/home/alfatih/Pictures/Screenshot from 2021-04-07 20-20-12.png","disabled":true},{"key":"name","value":"New Advanced Javascript Course ","type":"text"},{"key":"description","value":"Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum ","type":"text"},{"key":"level","value":"2","type":"text"},{"key":"category","value":"2","type":"text"},{"key":"price","value":"50","type":"text"},{"key":"start_date","value":"2021-04-19","description":"yyyy-mm-dd format, eg: 2021-04-19","type":"text"},{"key":"session_start","value":"09:14:00","description":"H:i:s format, eg: 09:15:00","type":"text"},{"key":"duration","value":"9000000","description":"duration in milliseconds","type":"text"},{"key":"day","value":"1","description":"day in number, sun = 0, saturday =7","type":"text"}]},"url":"{{HOST}}/v1/courses"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"43"},{"key":"ETag","value":"W/\"2b-RO/xd5fscBuRmWnjsRyH9W0OvBY\""},{"key":"Date","value":"Fri, 09 Apr 2021 03:00:41 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Course Created\"\n}"}],"_postman_id":"1e612693-f9ed-4f7a-ba05-0148455db00c"},{"name":"Update Course By Id","id":"08508ae5-962e-4110-8e61-7319ac2cb5cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN1}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"image","type":"file","src":"/home/alfatih/Pictures/Screenshot from 2021-01-26 15-41-06.png","disabled":true},{"key":"name","value":"New Advanced Javascript Course ","type":"text"},{"key":"description","value":"Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum ","type":"text"},{"key":"level","value":"2","type":"text"},{"key":"category","value":"2","type":"text"},{"key":"price","value":"50","type":"text"},{"key":"start_date","value":"2021-04-19","description":"<p>yyyy-mm-dd format, eg: 2021-04-19</p>\n","type":"text"},{"key":"session_start","value":"09:14:00","description":"<p>H:i:s format, eg: 09:15:00</p>\n","type":"text"},{"key":"duration","value":"9000000","description":"<p>duration in milliseconds</p>\n","type":"text"},{"key":"day","value":"1","description":"<p>day in number, sun = 0, saturday =7</p>\n","type":"text"}]},"url":"{{HOST}}/v1/courses/:courseId","urlObject":{"path":["v1","courses",":courseId"],"host":["{{HOST}}"],"query":[],"variable":[{"type":"any","value":"11","key":"courseId"}]}},"response":[{"id":"86193dbc-7c76-4f8c-afa1-e0758f64a138","name":"Update Course By Id Success","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"image","type":"file","src":"/home/alfatih/Pictures/Screenshot from 2021-01-26 15-41-06.png","disabled":true},{"key":"name","value":"New Advanced Javascript Course ","type":"text"},{"key":"description","value":"Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum ","type":"text"},{"key":"level","value":"2","type":"text"},{"key":"category","value":"2","type":"text"},{"key":"price","value":"50","type":"text"},{"key":"start_date","value":"2021-04-19","description":"yyyy-mm-dd format, eg: 2021-04-19","type":"text"},{"key":"session_start","value":"09:14:00","description":"H:i:s format, eg: 09:15:00","type":"text"},{"key":"duration","value":"9000000","description":"duration in milliseconds","type":"text"},{"key":"day","value":"1","description":"day in number, sun = 0, saturday =7","type":"text"}]},"url":{"raw":"{{HOST}}/v1/courses/:courseId","host":["{{HOST}}"],"path":["v1","courses",":courseId"],"variable":[{"key":"courseId","value":"11"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"43"},{"key":"ETag","value":"W/\"2b-wcbWcahGMhA/XuZNQSTP5whDp5c\""},{"key":"Date","value":"Fri, 09 Apr 2021 03:54:26 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Course Updated\"\n}"},{"id":"68e18ea4-1ec2-4611-8a65-b64eadfab205","name":"Update Course By Id Forbidden ACCESS","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"image","type":"file","src":"/home/alfatih/Pictures/Screenshot from 2021-01-26 15-41-06.png","disabled":true},{"key":"name","value":"New Advanced Javascript Course ","type":"text"},{"key":"description","value":"Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum ","type":"text"},{"key":"level","value":"2","type":"text"},{"key":"category","value":"2","type":"text"},{"key":"price","value":"50","type":"text"},{"key":"start_date","value":"2021-04-19","description":"yyyy-mm-dd format, eg: 2021-04-19","type":"text"},{"key":"session_start","value":"09:14:00","description":"H:i:s format, eg: 09:15:00","type":"text"},{"key":"duration","value":"9000000","description":"duration in milliseconds","type":"text"},{"key":"day","value":"1","description":"day in number, sun = 0, saturday =7","type":"text"}]},"url":{"raw":"{{HOST}}/v1/courses/:courseId","host":["{{HOST}}"],"path":["v1","courses",":courseId"],"variable":[{"key":"courseId","value":"11"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"46"},{"key":"ETag","value":"W/\"2e-zMLmj+cA4XeNqPwsbz7zNAWrxwA\""},{"key":"Date","value":"Fri, 09 Apr 2021 03:55:19 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"Forbidden Access\"\n}"}],"_postman_id":"08508ae5-962e-4110-8e61-7319ac2cb5cb"},{"name":"Delete Course by Id","id":"fd491403-e8bf-405e-8e7f-d4225d063589","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN1}}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"{{HOST}}/v1/courses/:courseId","urlObject":{"path":["v1","courses",":courseId"],"host":["{{HOST}}"],"query":[],"variable":[{"type":"any","value":"10","key":"courseId"}]}},"response":[{"id":"6608512e-3ee2-4615-8669-89e15c75d046","name":"Delete Course by Id","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{HOST}}/v1/courses/:courseId","host":["{{HOST}}"],"path":["v1","courses",":courseId"],"variable":[{"key":"courseId","value":"10"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"10-oV4hJxRVSENxc/wX8+mA4/Pe4tA\""},{"key":"Date","value":"Fri, 09 Apr 2021 04:36:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"fd491403-e8bf-405e-8e7f-d4225d063589"}],"id":"99e8da10-3613-4d82-a742-4d7261af4c4c","_postman_id":"99e8da10-3613-4d82-a742-4d7261af4c4c","description":""},{"name":"Student","item":[],"id":"0f8f7d6f-a691-4a1a-87d6-94a25e043091","_postman_id":"0f8f7d6f-a691-4a1a-87d6-94a25e043091","description":""},{"name":"Get All courses with sort","id":"ec69670c-b2ab-4e09-88b2-a1d553e8612c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN1}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{HOST}}/v1/courses?search=&sort=category-az&page=1&limit=100&price=all","description":"<p>List of courses</p>\n","urlObject":{"path":["v1","courses"],"host":["{{HOST}}"],"query":[{"description":{"content":"<p>optional</p>\n","type":"text/plain"},"key":"search","value":""},{"description":{"content":"<p>optional</p>\n","type":"text/plain"},"key":"sort","value":"category-az"},{"key":"page","value":"1"},{"key":"limit","value":"100"},{"key":"price","value":"all"}],"variable":[]}},"response":[{"id":"18e56bfb-23ef-4b52-9ed6-bc9d6e8c29b8","name":"Get All courses with sort,filter and pagination","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{HOST}}/v1/courses?search=&sort=category-az&page=2&limit=3","host":["{{HOST}}"],"path":["v1","courses"],"query":[{"key":"search","value":"","description":"optional"},{"key":"sort","value":"category-az","description":"optional"},{"key":"page","value":"2"},{"key":"limit","value":"3"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"412"},{"key":"ETag","value":"W/\"19c-gjxoN6Er4DVbfxLBtKEevkrRxBs\""},{"key":"Date","value":"Wed, 07 Apr 2021 14:37:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"List of Available Courses\",\n    \"data\": [\n        {\n            \"id\": 4,\n            \"name\": \"HTML CSS Fundamentals\",\n            \"category_id\": 1,\n            \"level_id\": 1,\n            \"price\": 4,\n            \"session_start\": \"08:00:00\",\n            \"duration\": 5400000,\n            \"start_date\": \"2021-03-28T17:00:00.000Z\",\n            \"day_id\": 1,\n            \"description\": \"This Description\",\n            \"level\": \"Beginner\",\n            \"category\": \"Software\"\n        }\n    ],\n    \"info\": {\n        \"total\": 4,\n        \"current_page\": 2,\n        \"total_page\": 2,\n        \"next\": null,\n        \"prev\": \"/v1/courses?page=1&limit=3\"\n    }\n}"}],"_postman_id":"ec69670c-b2ab-4e09-88b2-a1d553e8612c"},{"name":"Get Course by Id","id":"31cc3d84-14d3-4203-9c94-377689fcfaef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{HOST}}/v1/courses/1","description":"<p>Get Course detail by course ID</p>\n","urlObject":{"path":["v1","courses","1"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[{"id":"b51eccc5-bc6e-42c8-b38b-d28c5a52b118","name":"Get Course by Id For Registered student","originalRequest":{"method":"GET","header":[],"url":"{{HOST}}/v1/courses/1"},"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":"371"},{"key":"ETag","value":"W/\"173-NAE+mlGXmLaIudynsQedvM+5hRA\""},{"key":"Date","value":"Thu, 01 Apr 2021 07:56:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Course detail for registered student\",\n    \"data\": {\n        \"id\": 1,\n        \"name\": \"Javascript for Cat\",\n        \"category_id\": 1,\n        \"level_id\": 1,\n        \"price\": 0,\n        \"session_start\": \"08:00:00\",\n        \"duration\": 90000,\n        \"start_date\": \"2021-03-25T17:00:00.000Z\",\n        \"day_id\": 1,\n        \"description\": \"A long description\",\n        \"level\": \"Beginner\",\n        \"category\": \"Software\",\n        \"score\": 80,\n        \"subcourses_done\": 2,\n        \"subcourses_total\": 4\n    }\n}"},{"id":"f10a3ba8-55fc-4b4d-b8f5-729cd8488fd7","name":"Get Course by Id for instructor","originalRequest":{"method":"GET","header":[],"url":"{{HOST}}/v1/courses/1"},"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":"337"},{"key":"ETag","value":"W/\"151-HQCYVPSxg/o3FkbO36v7rS4w+Pw\""},{"key":"Date","value":"Thu, 01 Apr 2021 19:37:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Course detail information for instructor\",\n    \"data\": {\n        \"id\": 1,\n        \"name\": \"Javascript for Cat\",\n        \"category_id\": 1,\n        \"level_id\": 1,\n        \"price\": 0,\n        \"session_start\": \"08:00:00\",\n        \"duration\": 90000,\n        \"start_date\": \"2021-03-25T17:00:00.000Z\",\n        \"day_id\": 1,\n        \"description\": \"A long description\",\n        \"level\": \"Beginner\",\n        \"category\": \"Software\",\n        \"progress\": 75\n    }\n}"}],"_postman_id":"31cc3d84-14d3-4203-9c94-377689fcfaef"},{"name":"Get All Subcourses","id":"93b6161e-5a32-4108-9886-9dc79cd46d0e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{HOST}}/v1/courses/1/subcourses","description":"<p>Get list of available subcourses \nif User enrolled to the course it will get the score</p>\n","urlObject":{"path":["v1","courses","1","subcourses"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[{"id":"d3132796-1d6c-485e-bf2c-eecce2809f34","name":"Get All Subcourses","originalRequest":{"method":"GET","header":[],"url":"{{HOST}}/v1/courses/1/subcourses"},"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":"577"},{"key":"ETag","value":"W/\"241-7KiwXjOhTZYUjTIFM01rFcAqvF4\""},{"key":"Date","value":"Thu, 01 Apr 2021 19:55:41 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"List of Subcourses for Instructor\",\n    \"data\": [\n        {\n            \"id\": 4,\n            \"title\": \"Java Script Beginner\",\n            \"course_id\": 1,\n            \"date\": \"2021-03-28T17:00:00.000Z\",\n            \"session_start\": \"08:00:00\",\n            \"duration\": 90000\n        },\n        {\n            \"id\": 6,\n            \"title\": \"ES 6 \",\n            \"course_id\": 1,\n            \"date\": \"2021-03-28T17:00:00.000Z\",\n            \"session_start\": \"08:00:00\",\n            \"duration\": 90000\n        },\n        {\n            \"id\": 7,\n            \"title\": \"Java Script Expert\",\n            \"course_id\": 1,\n            \"date\": \"2021-03-31T17:00:00.000Z\",\n            \"session_start\": \"08:00:00\",\n            \"duration\": 90000\n        },\n        {\n            \"id\": 9,\n            \"title\": \"Html for Expert\",\n            \"course_id\": 1,\n            \"date\": \"2021-04-06T17:00:00.000Z\",\n            \"session_start\": \"08:00:00\",\n            \"duration\": 90000\n        }\n    ]\n}"}],"_postman_id":"93b6161e-5a32-4108-9886-9dc79cd46d0e"},{"name":"Register to Course","id":"6341a59a-52c1-41c6-9da0-52711ebd510c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN2}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"course_id\":4\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/v1/courses/register","description":"<p>Register a user to course</p>\n","urlObject":{"path":["v1","courses","register"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[{"id":"a57f138a-5f89-4a82-ab09-ea753df30532","name":"Register to Course Failed for Instructors","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"course_id\":1\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/v1/courses/register"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"84"},{"key":"ETag","value":"W/\"54-3pX+i5J/r7mH95fy2EJZbiM8fzI\""},{"key":"Date","value":"Thu, 01 Apr 2021 20:20:39 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"You are not a student, you can't enroll to this course\"\n}"},{"id":"d8575777-5ba0-477f-b660-a0a4c3698de4","name":"Register to Course for Student","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"course_id\":1\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/v1/courses/register"},"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":"70"},{"key":"ETag","value":"W/\"46-ey2Qr0dpOzHv4OFHn4eJDAX+AJ8\""},{"key":"Date","value":"Thu, 01 Apr 2021 20:25:02 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"You are already registered to this course\"\n}"}],"_postman_id":"6341a59a-52c1-41c6-9da0-52711ebd510c"},{"name":"Activity Home My Class with Sort","id":"a793662a-38e0-4d15-82bc-e8f5ef53940c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN1}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{HOST}}/v1/courses/my-class?search=&sort=registered-az&page=1&limit=100","description":"<p>List of 3 latest enrolled courses</p>\n","urlObject":{"path":["v1","courses","my-class"],"host":["{{HOST}}"],"query":[{"key":"search","value":""},{"description":{"content":"<p>available, price, category, name, registered. az for asc, za for desc</p>\n","type":"text/plain"},"key":"sort","value":"registered-az"},{"key":"page","value":"1"},{"key":"limit","value":"100"}],"variable":[]}},"response":[{"id":"6d06ddf7-78f8-4e0c-bda8-ad703904ff33","name":"Student activity my class","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{HOST}}/v1/courses/my-class?search=&sort=registered-az&page=1&limit=100","host":["{{HOST}}"],"path":["v1","courses","my-class"],"query":[{"key":"search","value":""},{"key":"sort","value":"registered-az","description":"available, price, category, name, registered. az for asc, za for desc"},{"key":"page","value":"1"},{"key":"limit","value":"100"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"608"},{"key":"ETag","value":"W/\"260-LNIGXt6uTVtHFOglKIRIpJzBYrU\""},{"key":"Date","value":"Fri, 18 Jun 2021 13:11:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"List of Enrolled Courses\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"name\": \"Javascript for Cat\",\n            \"description\": \"A long description\",\n            \"category\": \"Software\",\n            \"progress\": 40,\n            \"score\": 76.6667\n        },\n        {\n            \"id\": 2,\n            \"name\": \"Java Script for Human\",\n            \"description\": null,\n            \"category\": \"JavaScript\",\n            \"progress\": 50,\n            \"score\": 76.6667\n        },\n        {\n            \"id\": 3,\n            \"name\": \"Java Script for Alien\",\n            \"description\": null,\n            \"category\": \"Software\",\n            \"progress\": 0,\n            \"score\": 76.6667\n        },\n        {\n            \"id\": 4,\n            \"name\": \"HTML CSS Fundamentals\",\n            \"description\": \"This Description\",\n            \"category\": \"Software\",\n            \"progress\": 0,\n            \"score\": 76.6667\n        }\n    ],\n    \"info\": {\n        \"total\": 4,\n        \"current_page\": 1,\n        \"total_page\": 1,\n        \"next\": null,\n        \"prev\": null\n    }\n}"},{"id":"91ca6291-95a4-43cb-8f98-8de48dc73e4e","name":"Student Activity My Class with Sort and pagination","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{HOST}}/v1/courses/my-class?search=&sort=price-za&page=1&limit=3","host":["{{HOST}}"],"path":["v1","courses","my-class"],"query":[{"key":"search","value":""},{"key":"sort","value":"price-za"},{"key":"page","value":"1"},{"key":"limit","value":"3"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"487"},{"key":"ETag","value":"W/\"1e7-YmFsYnrRZj8/rPJ0ds9i85r+j8A\""},{"key":"Date","value":"Wed, 07 Apr 2021 15:56:41 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"List of Enrolled Courses\",\n    \"data\": [\n        {\n            \"name\": \"Java Script for Alien\",\n            \"description\": null,\n            \"category\": \"Software\",\n            \"progress\": 0,\n            \"score\": 76.6667\n        },\n        {\n            \"name\": \"Java Script for Human\",\n            \"description\": null,\n            \"category\": \"JavaScript\",\n            \"progress\": 50,\n            \"score\": 76.6667\n        },\n        {\n            \"name\": \"HTML CSS Fundamentals\",\n            \"description\": \"This Description\",\n            \"category\": \"Software\",\n            \"progress\": 0,\n            \"score\": 76.6667\n        }\n    ],\n    \"info\": {\n        \"total\": 4,\n        \"current_page\": 1,\n        \"total_page\": 2,\n        \"next\": \"/v1/courses?page=2&limit=3\",\n        \"prev\": null\n    }\n}"},{"id":"f2c8935a-4607-4e87-b6d1-b670a4a4cc40","name":"Instructor Activity My Class with Sort and pagination","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{HOST}}/v1/courses/my-class?search=&sort=price-za&page=1&limit=1","host":["{{HOST}}"],"path":["v1","courses","my-class"],"query":[{"key":"search","value":""},{"key":"sort","value":"price-za"},{"key":"page","value":"1"},{"key":"limit","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"332"},{"key":"ETag","value":"W/\"14c-Kl3dNihbqHwsH1CtRdf0CZPVVAE\""},{"key":"Date","value":"Wed, 07 Apr 2021 16:14:32 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"List of instructor courses\",\n    \"data\": [\n        {\n            \"id\": 4,\n            \"day\": \"Monday\",\n            \"name\": \"HTML CSS Fundamentals\",\n            \"description\": \"This Description\",\n            \"category\": \"Software\",\n            \"session_start\": \"08:00:00\",\n            \"duration\": 5400000,\n            \"students\": 1\n        }\n    ],\n    \"info\": {\n        \"total\": 2,\n        \"current_page\": 1,\n        \"total_page\": 2,\n        \"next\": \"/v1/courses?page=2&limit=1\",\n        \"prev\": null\n    }\n}"}],"_postman_id":"a793662a-38e0-4d15-82bc-e8f5ef53940c"}],"id":"092e5028-587a-4475-9c22-ae930a25d519","_postman_id":"092e5028-587a-4475-9c22-ae930a25d519","description":""},{"name":"Dashboard","item":[{"name":"Add new Task (subcourses)","id":"03cb9c6b-55fb-4abb-9b2b-4724b57e49ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"course_id\":1,\n    \"date\": \"2021-03-29\",\n    \"title\" : \"CSS Introduction Advanced\"\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/v1/dashboard","description":"<p>Create new Task (subcourse)</p>\n","urlObject":{"path":["v1","dashboard"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[{"id":"957e7dfd-1a20-4d14-bea5-28ef77d2d471","name":"Add new Task/subcoruses for instructors only","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"course_id\":1,\n    \"date\": \"2021-03-29\",\n    \"title\" : \"CSS Introduction Advanced\"\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/v1/dashboard"},"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":"54"},{"key":"ETag","value":"W/\"36-xTD/dlGe66TxOMWGxSDRKD7mqjw\""},{"key":"Date","value":"Sat, 03 Apr 2021 07:55:37 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Task created successfully\"\n}"}],"_postman_id":"03cb9c6b-55fb-4abb-9b2b-4724b57e49ea"},{"name":"Get Task Schedule","id":"f76350fa-58f6-4919-9e4a-841b9d2b4138","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN2}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{HOST}}/v1/dashboard/:date","description":"<p>Create new Task (subcourse)</p>\n","urlObject":{"path":["v1","dashboard",":date"],"host":["{{HOST}}"],"query":[],"variable":[{"type":"any","value":"2021-03-29","key":"date"}]}},"response":[{"id":"f659508b-da5d-4de2-9831-cb133c046c1c","name":"Get Task Schedule for instructors","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{HOST}}/v1/dashboard/:date","host":["{{HOST}}"],"path":["v1","dashboard",":date"],"variable":[{"key":"date","value":"2021-03-29"}]}},"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":"227"},{"key":"ETag","value":"W/\"e3-G4XJXPVWtqyPmJJ2+9flEZtL3sQ\""},{"key":"Date","value":"Sat, 03 Apr 2021 07:51:56 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"List of today tasks for instructor\",\n    \"data\": [\n        {\n            \"title\": \"Java Script Beginner\",\n            \"start_at\": \"08:00:00\",\n            \"duration\": 90000,\n            \"students\": 4\n        },\n        {\n            \"title\": \"ES 6 \",\n            \"start_at\": \"08:00:00\",\n            \"duration\": 90000,\n            \"students\": 4\n        }\n    ]\n}"},{"id":"18f21b41-c25a-4160-84bc-152fde227c8f","name":"Get Task Schedule","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{HOST}}/v1/dashboard/:date/all","host":["{{HOST}}"],"path":["v1","dashboard",":date","all"],"variable":[{"key":"date","value":"2021-03-29"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1533"},{"key":"ETag","value":"W/\"5fd-HadAsgMB8YrDRIf9LO5ahwMSkKQ\""},{"key":"Date","value":"Wed, 12 May 2021 07:57:01 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"List of today all task for students\",\n    \"data\": [\n        {\n            \"id\": 4,\n            \"title\": \"Java Script Beginner\",\n            \"start_at\": \"08:00:00\",\n            \"duration\": 5400000,\n            \"progress\": 40\n        },\n        {\n            \"id\": 4,\n            \"title\": \"Java Script Beginner\",\n            \"start_at\": \"08:00:00\",\n            \"duration\": 5400000,\n            \"progress\": 0\n        },\n        {\n            \"id\": 4,\n            \"title\": \"Java Script Beginner\",\n            \"start_at\": \"08:00:00\",\n            \"duration\": 5400000,\n            \"progress\": 0\n        },\n        {\n            \"id\": 4,\n            \"title\": \"Java Script Beginner\",\n            \"start_at\": \"08:00:00\",\n            \"duration\": 5400000,\n            \"progress\": 0\n        },\n        {\n            \"id\": 4,\n            \"title\": \"Java Script Beginner\",\n            \"start_at\": \"08:00:00\",\n            \"duration\": 5400000,\n            \"progress\": 0\n        },\n        {\n            \"id\": 6,\n            \"title\": \"ES 6 \",\n            \"start_at\": \"08:00:00\",\n            \"duration\": 5400000,\n            \"progress\": 40\n        },\n        {\n            \"id\": 6,\n            \"title\": \"ES 6 \",\n            \"start_at\": \"08:00:00\",\n            \"duration\": 5400000,\n            \"progress\": 0\n        },\n        {\n            \"id\": 6,\n            \"title\": \"ES 6 \",\n            \"start_at\": \"08:00:00\",\n            \"duration\": 5400000,\n            \"progress\": 0\n        },\n        {\n            \"id\": 6,\n            \"title\": \"ES 6 \",\n            \"start_at\": \"08:00:00\",\n            \"duration\": 5400000,\n            \"progress\": 0\n        },\n        {\n            \"id\": 6,\n            \"title\": \"ES 6 \",\n            \"start_at\": \"08:00:00\",\n            \"duration\": 5400000,\n            \"progress\": 0\n        },\n        {\n            \"id\": 8,\n            \"title\": \"React JS Beginner\",\n            \"start_at\": \"09:00:00\",\n            \"duration\": 5400000,\n            \"progress\": 50\n        },\n        {\n            \"id\": 11,\n            \"title\": \"CSS Introduction Advanced\",\n            \"start_at\": \"08:00:00\",\n            \"duration\": 5400000,\n            \"progress\": 40\n        },\n        {\n            \"id\": 11,\n            \"title\": \"CSS Introduction Advanced\",\n            \"start_at\": \"08:00:00\",\n            \"duration\": 5400000,\n            \"progress\": 0\n        },\n        {\n            \"id\": 11,\n            \"title\": \"CSS Introduction Advanced\",\n            \"start_at\": \"08:00:00\",\n            \"duration\": 5400000,\n            \"progress\": 0\n        },\n        {\n            \"id\": 11,\n            \"title\": \"CSS Introduction Advanced\",\n            \"start_at\": \"08:00:00\",\n            \"duration\": 5400000,\n            \"progress\": 0\n        },\n        {\n            \"id\": 11,\n            \"title\": \"CSS Introduction Advanced\",\n            \"start_at\": \"08:00:00\",\n            \"duration\": 5400000,\n            \"progress\": 0\n        }\n    ]\n}"}],"_postman_id":"f76350fa-58f6-4919-9e4a-841b9d2b4138"},{"name":"Get All Task Schedule Student","id":"4d4eb75d-0b78-407c-8320-0a0643d3a8bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN2}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{HOST}}/v1/dashboard/:date","description":"<p>Create new Task (subcourse)</p>\n","urlObject":{"path":["v1","dashboard",":date"],"host":["{{HOST}}"],"query":[],"variable":[{"type":"any","value":"2021-03-29","key":"date"}]}},"response":[{"id":"3eb2ddf1-4d5c-4bd4-9713-4cba94d40cbb","name":"Get Task Schedule for instructors","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{HOST}}/v1/dashboard/:date","host":["{{HOST}}"],"path":["v1","dashboard",":date"],"variable":[{"key":"date","value":"2021-03-29"}]}},"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":"227"},{"key":"ETag","value":"W/\"e3-G4XJXPVWtqyPmJJ2+9flEZtL3sQ\""},{"key":"Date","value":"Sat, 03 Apr 2021 07:51:56 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"List of today tasks for instructor\",\n    \"data\": [\n        {\n            \"title\": \"Java Script Beginner\",\n            \"start_at\": \"08:00:00\",\n            \"duration\": 90000,\n            \"students\": 4\n        },\n        {\n            \"title\": \"ES 6 \",\n            \"start_at\": \"08:00:00\",\n            \"duration\": 90000,\n            \"students\": 4\n        }\n    ]\n}"}],"_postman_id":"4d4eb75d-0b78-407c-8320-0a0643d3a8bf"},{"name":"Get Task Schedule Instructor","id":"0e0569d4-f528-45e4-b2b3-20256167198a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN1}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{HOST}}/v1/dashboard/2021-03-29","description":"<p>Create new Task (subcourse)</p>\n","urlObject":{"path":["v1","dashboard","2021-03-29"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[{"id":"d603ef10-dc16-4fd7-b761-7db874b63b89","name":"Get Task Schedule Instructor","originalRequest":{"method":"GET","header":[],"url":"{{HOST}}/v1/dashboard/2021-03-29"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Thu, 20 May 2021 14:45:38 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"323"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"143-Mp3ToftlNdjyjqwPHziDqNElhuk\""}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"List of today tasks for instructor\",\n    \"data\": [\n        {\n            \"title\": \"Java Script Beginner\",\n            \"start_at\": \"08:00:00\",\n            \"duration\": 5400000,\n            \"students\": 4\n        },\n        {\n            \"title\": \"ES 6 \",\n            \"start_at\": \"08:00:00\",\n            \"duration\": 5400000,\n            \"students\": 4\n        },\n        {\n            \"title\": \"CSS Introduction Advanced\",\n            \"start_at\": \"08:00:00\",\n            \"duration\": 5400000,\n            \"students\": 4\n        }\n    ]\n}"}],"_postman_id":"0e0569d4-f528-45e4-b2b3-20256167198a"},{"name":"Get today All Schedule","id":"2b514e54-8bd3-49ef-8afc-f8238ccd2518","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN2}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{HOST}}/v1/dashboard/:date/all","urlObject":{"path":["v1","dashboard",":date","all"],"host":["{{HOST}}"],"query":[],"variable":[{"type":"any","value":"2021-03-29","key":"date"}]}},"response":[{"id":"93c277f2-5003-4f73-aecf-3d62705c5355","name":"Get today All Schedule","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{HOST}}/v1/dashboard/:date/all","host":["{{HOST}}"],"path":["v1","dashboard",":date","all"],"variable":[{"key":"date","value":"2021-03-29"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Mon, 24 May 2021 03:01:18 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1034"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"40a-tLdLfhuMNTHzgagTmkZz1J8yay4\""}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"List of today all task for students\",\n    \"data\": [\n        {\n            \"id\": 4,\n            \"title\": \"Java Script Beginner\",\n            \"start_at\": \"08:00:00\",\n            \"duration\": 5400000,\n            \"progress\": 80\n        },\n        {\n            \"id\": 4,\n            \"title\": \"Java Script Beginner\",\n            \"start_at\": \"08:00:00\",\n            \"duration\": 5400000,\n            \"progress\": 40\n        },\n        {\n            \"id\": 4,\n            \"title\": \"Java Script Beginner\",\n            \"start_at\": \"08:00:00\",\n            \"duration\": 5400000,\n            \"progress\": 0\n        },\n        {\n            \"id\": 4,\n            \"title\": \"Java Script Beginner\",\n            \"start_at\": \"08:00:00\",\n            \"duration\": 5400000,\n            \"progress\": 0\n        },\n        {\n            \"id\": 4,\n            \"title\": \"Java Script Beginner\",\n            \"start_at\": \"08:00:00\",\n            \"duration\": 5400000,\n            \"progress\": 0\n        },\n        {\n            \"id\": 6,\n            \"title\": \"ES 6 \",\n            \"start_at\": \"08:00:00\",\n            \"duration\": 5400000,\n            \"progress\": 80\n        },\n        {\n            \"id\": 6,\n            \"title\": \"ES 6 \",\n            \"start_at\": \"08:00:00\",\n            \"duration\": 5400000,\n            \"progress\": 40\n        },\n        {\n            \"id\": 6,\n            \"title\": \"ES 6 \",\n            \"start_at\": \"08:00:00\",\n            \"duration\": 5400000,\n            \"progress\": 0\n        },\n        {\n            \"id\": 6,\n            \"title\": \"ES 6 \",\n            \"start_at\": \"08:00:00\",\n            \"duration\": 5400000,\n            \"progress\": 0\n        },\n        {\n            \"id\": 6,\n            \"title\": \"ES 6 \",\n            \"start_at\": \"08:00:00\",\n            \"duration\": 5400000,\n            \"progress\": 0\n        },\n        {\n            \"id\": 8,\n            \"title\": \"React JS Beginner\",\n            \"start_at\": \"09:00:00\",\n            \"duration\": 5400000,\n            \"progress\": 50\n        }\n    ]\n}"}],"_postman_id":"2b514e54-8bd3-49ef-8afc-f8238ccd2518"}],"id":"0f56f765-eb9f-4799-ab83-03a4aac6af36","description":"<p>Collection of Dasboard end point</p>\n","_postman_id":"0f56f765-eb9f-4799-ab83-03a4aac6af36"},{"name":"Profile","item":[{"name":"Get Profile information","id":"d623ce2f-9401-41ae-a95f-6f4ca33e0d70","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN2}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{HOST}}/v1/profile","urlObject":{"path":["v1","profile"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[{"id":"97f34b70-fffd-4a37-be3d-6aae579e62db","name":"Get Profile information","originalRequest":{"method":"GET","header":[],"url":"{{HOST}}/v1/profile"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"120"},{"key":"ETag","value":"W/\"78-cThOn28VrRKUd7oXOEZ0rAK4rfM\""},{"key":"Date","value":"Mon, 05 Apr 2021 01:01:13 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Profile information\",\n    \"data\": {\n        \"avatar\": \"avatar-1.png\",\n        \"name\": \"Burhan\",\n        \"phone\": \"082220488116\"\n    }\n}"}],"_postman_id":"d623ce2f-9401-41ae-a95f-6f4ca33e0d70"},{"name":"update profile","id":"33e55096-5f82-4890-a408-b38d2720c533","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN2}}"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"image","description":"<p>optional</p>\n","type":"file","src":"/home/alfatih/Documents/testing/gallery-1617096136339.jpg"},{"key":"name","value":"Ragil Student","description":"<p>optional</p>\n","type":"text"},{"key":"phone","value":"08222123123123","description":"<p>optional</p>\n","type":"text"},{"key":"old_password","value":"password","description":"<p>required to update profile</p>\n","type":"text"},{"key":"new_password","value":"password","description":"<p>optional</p>\n","type":"text","disabled":true}]},"url":"{{HOST}}/v1/profile","description":"<p>update profile based on key parameter</p>\n","urlObject":{"path":["v1","profile"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[{"id":"4df41479-a44c-4c82-81de-e8d65f4077ff","name":"Update Profile with Image","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"image","description":"optional","type":"file","src":"/home/alfatih/Pictures/Screenshot from 2021-01-26 15-41-20.png"},{"key":"name","value":"Burhan Updatea","description":"optional","type":"text"},{"key":"phone","value":"08222123123123","description":"optional","type":"text"},{"key":"old_password","value":"password","description":"required to update profile","type":"text"},{"key":"new_password","value":"password","description":"optional","type":"text"}],"options":{"raw":{"language":"json"}}},"url":"{{HOST}}/v1/profile"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"43"},{"key":"ETag","value":"W/\"2b-YSKJUKZuyUHTYWGaRcvuhuRVa8g\""},{"key":"Date","value":"Thu, 08 Apr 2021 03:36:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"profile update\"\n}"}],"_postman_id":"33e55096-5f82-4890-a408-b38d2720c533"}],"id":"60415e9f-1193-4a09-9497-00be9ce4586e","description":"<p>Collection of profile end points</p>\n","_postman_id":"60415e9f-1193-4a09-9497-00be9ce4586e"},{"name":"Levels","item":[{"name":"Get Levels","id":"df8cac94-e211-48f0-a633-0f25c3ca6f2e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN1}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{HOST}}/V1/levels","urlObject":{"path":["V1","levels"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[{"id":"571f6be1-9145-48c5-b31d-ef64371a5165","name":"Get Levels","originalRequest":{"method":"GET","header":[],"url":"{{HOST}}/V1/levels"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"134"},{"key":"ETag","value":"W/\"86-fsZlpY0RqiWM7RZHIGBvoyMUzwg\""},{"key":"Date","value":"Thu, 08 Apr 2021 00:19:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"List of level\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"name\": \"Beginner\"\n        },\n        {\n            \"id\": 2,\n            \"name\": \"Intermediete\"\n        },\n        {\n            \"id\": 3,\n            \"name\": \"Expert\"\n        }\n    ]\n}"}],"_postman_id":"df8cac94-e211-48f0-a633-0f25c3ca6f2e"}],"id":"bf0c03e5-59a1-495c-b0c1-3842e7c7665f","_postman_id":"bf0c03e5-59a1-495c-b0c1-3842e7c7665f","description":""},{"name":"Chats","item":[{"name":"Get Users List","id":"721b5e79-f2db-4f49-b765-0d0565ba4199","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{HOST}}/v1/chats/users?page=1&limit=10","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN2}}"}]},"isInherited":true,"source":{"_postman_id":"67ebd32e-d6e9-4b51-9c18-cdc661270f60","id":"67ebd32e-d6e9-4b51-9c18-cdc661270f60","name":"Chats","type":"folder"}},"urlObject":{"path":["v1","chats","users"],"host":["{{HOST}}"],"query":[{"description":{"content":"<p>default 1</p>\n","type":"text/plain"},"key":"page","value":"1"},{"description":{"content":"<p>default 5</p>\n","type":"text/plain"},"key":"limit","value":"10"}],"variable":[]}},"response":[{"id":"19e0d201-2ef4-427f-9a68-2a352a119d1e","name":"Get Users List","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{HOST}}/v1/chats/users?page=1&limit=10","host":["{{HOST}}"],"path":["v1","chats","users"],"query":[{"key":"page","value":"1","description":"default 1"},{"key":"limit","value":"10","description":"default 5"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"604"},{"key":"ETag","value":"W/\"25c-QJMY9+RJcEesWCN/QxNivF4dW00\""},{"key":"Date","value":"Tue, 01 Jun 2021 15:15:19 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"List of users\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"name\": \"Ragil Student\",\n            \"avatar\": \"avatars/avatar-1-1621869734107.jpg\"\n        },\n        {\n            \"id\": 3,\n            \"name\": \"ragail\",\n            \"avatar\": null\n        },\n        {\n            \"id\": 7,\n            \"name\": \"ragail\",\n            \"avatar\": null\n        },\n        {\n            \"id\": 13,\n            \"name\": \"ragail\",\n            \"avatar\": null\n        },\n        {\n            \"id\": 18,\n            \"name\": \"Burhan\",\n            \"avatar\": \"avatars/avatar-1.png\"\n        },\n        {\n            \"id\": 19,\n            \"name\": \"user\",\n            \"avatar\": null\n        },\n        {\n            \"id\": 20,\n            \"name\": \"Burhanaa\",\n            \"avatar\": null\n        },\n        {\n            \"id\": 23,\n            \"name\": \"ragil@sipamungkas.coma\",\n            \"avatar\": null\n        },\n        {\n            \"id\": 24,\n            \"name\": \"sipamungkas\",\n            \"avatar\": null\n        },\n        {\n            \"id\": 25,\n            \"name\": \"ragil123\",\n            \"avatar\": null\n        }\n    ],\n    \"info\": {\n        \"total\": 10,\n        \"current_page\": 1,\n        \"total_page\": 1,\n        \"next\": null,\n        \"prev\": null\n    }\n}"}],"_postman_id":"721b5e79-f2db-4f49-b765-0d0565ba4199"},{"name":"Get Room List","id":"d03b4a61-95dc-4d71-9337-86bf484f999e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{HOST}}/v1/chats/rooms","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN2}}"}]},"isInherited":true,"source":{"_postman_id":"67ebd32e-d6e9-4b51-9c18-cdc661270f60","id":"67ebd32e-d6e9-4b51-9c18-cdc661270f60","name":"Chats","type":"folder"}},"urlObject":{"path":["v1","chats","rooms"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[{"id":"adee6148-4e6f-4055-a9a3-b557ea78159d","name":"Get Room List","originalRequest":{"method":"GET","header":[],"url":"{{HOST}}/v1/chats/rooms"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"203"},{"key":"ETag","value":"W/\"cb-4V8rOrJWyI3vpQhKIC9FVQ5ecPY\""},{"key":"Date","value":"Mon, 07 Jun 2021 04:56:37 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Room List\",\n    \"data\": [\n        \"42daee2c-3aa1-42c8-a3c2-041958825a16\",\n        \"d1b37066-751b-485e-b325-39db92949113\",\n        \"0634755e-2ba9-471a-b6f9-1b7e778cbeaa\",\n        \"782dfe3e-c214-4396-87c6-bbaf75cc0028\"\n    ]\n}"}],"_postman_id":"d03b4a61-95dc-4d71-9337-86bf484f999e"},{"name":"Send New Message","id":"6d17824c-9c49-4b01-a00f-396204ffba91","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"content\":\"random with new feature\",\n    \"room_id\" : \"42daee2c-3aa1-42c8-a3c2-041958825a16\"\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/v1/chats","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN2}}"}]},"isInherited":true,"source":{"_postman_id":"67ebd32e-d6e9-4b51-9c18-cdc661270f60","id":"67ebd32e-d6e9-4b51-9c18-cdc661270f60","name":"Chats","type":"folder"}},"urlObject":{"path":["v1","chats"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[{"id":"4bdc3d28-ea87-489c-8f7b-eae60256a33b","name":"Send New Message","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"content\":\"random with new feature\",\n    \"room_id\" : \"42daee2c-3aa1-42c8-a3c2-041958825a16\"\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/v1/chats"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"16"},{"key":"ETag","value":"W/\"10-oV4hJxRVSENxc/wX8+mA4/Pe4tA\""},{"key":"Date","value":"Sun, 06 Jun 2021 18:44:45 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"}],"_postman_id":"6d17824c-9c49-4b01-a00f-396204ffba91"},{"name":"Get Chat List","id":"b68a93ed-d06f-4798-b874-6f4e2201559b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{HOST}}/v1/chats","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN2}}"}]},"isInherited":true,"source":{"_postman_id":"67ebd32e-d6e9-4b51-9c18-cdc661270f60","id":"67ebd32e-d6e9-4b51-9c18-cdc661270f60","name":"Chats","type":"folder"}},"urlObject":{"path":["v1","chats"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[{"id":"b00b97f0-5ae5-4297-9bcd-2edab5ff7b5b","name":"Get Chat List","originalRequest":{"method":"GET","header":[],"url":"{{HOST}}/v1/chats"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"472"},{"key":"ETag","value":"W/\"1d8-/jC3CCoHYLX/Rs/lpjYvmVgZM9E\""},{"key":"Date","value":"Sun, 06 Jun 2021 17:12:48 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Chat List\",\n    \"data\": [\n        {\n            \"id\": \"d1b37066-751b-485e-b325-39db92949113\",\n            \"name\": \"Group kondang\",\n            \"content\": \"This is new mesage from postman terbaru 6 juni\",\n            \"created_at\": \"2021-06-04T12:12:54.000Z\"\n        },\n        {\n            \"id\": \"42daee2c-3aa1-42c8-a3c2-041958825a16\",\n            \"name\": \"Group kondang\",\n            \"content\": \"This is new mesage from postman\",\n            \"created_at\": \"2021-06-04T12:03:55.000Z\"\n        },\n        {\n            \"id\": \"fbc81a88-37a2-4f3d-a29c-2c454013046b\",\n            \"name\": \"Group haha hihi\",\n            \"content\": null,\n            \"created_at\": null\n        }\n    ]\n}"}],"_postman_id":"b68a93ed-d06f-4798-b874-6f4e2201559b"},{"name":"Create New Room Chat / Group","id":"09bf8250-fcf4-49b2-9b9d-79179c7bc1e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"members\" : [18]\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/v1/chats/rooms","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN2}}"}]},"isInherited":true,"source":{"_postman_id":"67ebd32e-d6e9-4b51-9c18-cdc661270f60","id":"67ebd32e-d6e9-4b51-9c18-cdc661270f60","name":"Chats","type":"folder"}},"urlObject":{"path":["v1","chats","rooms"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[{"id":"ff8c0ae8-7d00-40b1-b484-3b4130ea71f0","name":"Create New Room Chat / Group","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\" : \"Group kondang\",\n    \"members\" : [\n        1,3,7,13\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/v1/chats/rooms"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"100"},{"key":"ETag","value":"W/\"64-uOmFXP1A+ZpoK0E5oGz4DPRMcGg\""},{"key":"Date","value":"Sun, 06 Jun 2021 16:13:08 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Room Created!\",\n    \"data\": {\n        \"room_id\": \"42daee2c-3aa1-42c8-a3c2-041958825a16\"\n    }\n}"}],"_postman_id":"09bf8250-fcf4-49b2-9b9d-79179c7bc1e0"},{"name":"Create Private Room","id":"dd28bcf9-ac0a-4025-aeb3-fafdedf41522","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN3}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"members\" : [7]\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/v1/chats/rooms/private","urlObject":{"path":["v1","chats","rooms","private"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[{"id":"866c9bbb-d86c-4b9f-a7ae-68e6594d05ed","name":"Create Private Room","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"members\" : [7]\n}","options":{"raw":{"language":"json"}}},"url":"{{HOST}}/v1/chats/rooms/private"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"107"},{"key":"ETag","value":"W/\"6b-xZjQifIScSuJuJTBE7tW3ea8/vE\""},{"key":"Date","value":"Mon, 07 Jun 2021 17:01:48 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Room Already exists!\",\n    \"data\": {\n        \"room_id\": \"ed87eccb-869a-4fec-a387-2aab1bbc7c26\"\n    }\n}"}],"_postman_id":"dd28bcf9-ac0a-4025-aeb3-fafdedf41522"},{"name":"Get Room Information","id":"2dc3e247-d904-4d8b-b441-dfbd1eb14cd1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{HOST}}/v1/chats/rooms/:roomId","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN2}}"}]},"isInherited":true,"source":{"_postman_id":"67ebd32e-d6e9-4b51-9c18-cdc661270f60","id":"67ebd32e-d6e9-4b51-9c18-cdc661270f60","name":"Chats","type":"folder"}},"urlObject":{"path":["v1","chats","rooms",":roomId"],"host":["{{HOST}}"],"query":[],"variable":[{"type":"any","value":"42daee2c-3aa1-42c8-a3c2-041958825a16","key":"roomId"}]}},"response":[{"id":"22a107f0-3e85-4202-83cb-805dc027dfb1","name":"Get Room Information","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{HOST}}/v1/chats/rooms/:roomId","host":["{{HOST}}"],"path":["v1","chats","rooms",":roomId"],"variable":[{"key":"roomId","value":"42daee2c-3aa1-42c8-a3c2-041958825a16"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"161"},{"key":"ETag","value":"W/\"a1-1LaAVZwBXTsNYD9ZS2iyUJVi0Tc\""},{"key":"Date","value":"Sun, 06 Jun 2021 16:33:52 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Room information\",\n    \"data\": {\n        \"id\": \"42daee2c-3aa1-42c8-a3c2-041958825a16\",\n        \"name\": \"Group kondang\",\n        \"created_at\": \"2021-06-06T16:13:08.000Z\"\n    }\n}"}],"_postman_id":"2dc3e247-d904-4d8b-b441-dfbd1eb14cd1"},{"name":"Get Messages List by room id","id":"ad150bb8-faf1-4db0-8b5d-fcc4e62260ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{HOST}}/v1/chats/rooms/:roomId/messages?page=1&limit=1","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN2}}"}]},"isInherited":true,"source":{"_postman_id":"67ebd32e-d6e9-4b51-9c18-cdc661270f60","id":"67ebd32e-d6e9-4b51-9c18-cdc661270f60","name":"Chats","type":"folder"}},"urlObject":{"path":["v1","chats","rooms",":roomId","messages"],"host":["{{HOST}}"],"query":[{"description":{"content":"<p>default 1</p>\n","type":"text/plain"},"key":"page","value":"1"},{"description":{"content":"<p>default 10</p>\n","type":"text/plain"},"key":"limit","value":"1"}],"variable":[{"type":"any","value":"42daee2c-3aa1-42c8-a3c2-041958825a16","key":"roomId"}]}},"response":[{"id":"bcbb7079-8e51-4bd6-bd2b-5e053bca6e3b","name":"Get Messages List by room id","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{HOST}}/v1/chats/rooms/:roomId/messages?page=1&limit=1","host":["{{HOST}}"],"path":["v1","chats","rooms",":roomId","messages"],"query":[{"key":"page","value":"1","description":"default 1"},{"key":"limit","value":"1","description":"default 10"}],"variable":[{"key":"roomId","value":"42daee2c-3aa1-42c8-a3c2-041958825a16"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"294"},{"key":"ETag","value":"W/\"126-UsnFJFqY2wjXQ8FuQMGMmvlKrbw\""},{"key":"Date","value":"Sun, 06 Jun 2021 19:46:25 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Messages\",\n    \"data\": [\n        {\n            \"id\": 17,\n            \"user_id\": 18,\n            \"content\": \"random with new feature\",\n            \"created_at\": \"2021-06-06T18:44:46.000Z\"\n        }\n    ],\n    \"info\": {\n        \"total\": 8,\n        \"current_page\": 1,\n        \"total_page\": 8,\n        \"next\": \"/v1/chats/rooms/42daee2c-3aa1-42c8-a3c2-041958825a16/messages?page=2&limit=1\",\n        \"prev\": null\n    }\n}"}],"_postman_id":"ad150bb8-faf1-4db0-8b5d-fcc4e62260ff"}],"id":"67ebd32e-d6e9-4b51-9c18-cdc661270f60","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN2}}"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"6f8982bc-b9fc-4919-8460-4ed15401d997","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"ce9831d2-8a87-4aca-b6ad-bb058299be2a","type":"text/javascript","exec":[""]}}],"_postman_id":"67ebd32e-d6e9-4b51-9c18-cdc661270f60","description":""},{"name":"Notifications","item":[{"name":"Get All Notifications with pagination","id":"c9d39937-a9d3-4ec1-96ab-ef3aa5c3c5a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{HOST}}/v1/notifications","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN1}}"}]},"isInherited":true,"source":{"_postman_id":"cf46053f-f226-4c93-b9e4-628f14d0ccd7","id":"cf46053f-f226-4c93-b9e4-628f14d0ccd7","name":"Notifications","type":"folder"}},"urlObject":{"path":["v1","notifications"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[{"id":"2f27cdbf-1060-4826-a6d1-5fcdd136425a","name":"Get All Notifications with pagination","originalRequest":{"method":"GET","header":[],"url":"{{HOST}}/v1/notifications"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"246"},{"key":"ETag","value":"W/\"f6-PO+nZ/NjRH+CGCimh+3/9Su9b74\""},{"key":"Date","value":"Sun, 06 Jun 2021 14:15:25 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"List of Available notifications\",\n    \"data\": [\n        {\n            \"id\": 13,\n            \"content\": \"new notification\",\n            \"read\": 0,\n            \"receiver\": 18,\n            \"created_at\": \"2021-06-06T13:59:25.000Z\"\n        }\n    ],\n    \"info\": {\n        \"total\": 1,\n        \"current_page\": 1,\n        \"total_page\": 1,\n        \"next\": null,\n        \"prev\": null\n    }\n}"}],"_postman_id":"c9d39937-a9d3-4ec1-96ab-ef3aa5c3c5a8"}],"id":"cf46053f-f226-4c93-b9e4-628f14d0ccd7","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN1}}"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"aecec6c4-2353-4442-a88a-a7142afe8de7","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"51737354-4f70-4421-b7ba-a38dd8b07e94","type":"text/javascript","exec":[""]}}],"_postman_id":"cf46053f-f226-4c93-b9e4-628f14d0ccd7","description":""}],"event":[{"listen":"prerequest","script":{"id":"d3a37584-f15a-49e9-bb30-6952ee50359f","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"f6f65abe-0115-4ac9-b98f-ec2f2b0d98c4","type":"text/javascript","exec":[""]}}]}