{"info":{"_postman_id":"714a1748-8626-4085-86e3-b0239aaab94c","name":"Course Management","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"18647190","collectionId":"714a1748-8626-4085-86e3-b0239aaab94c","publishedId":"VVdf5kWQ","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-09-10T09:16:48.000Z"},"item":[{"name":"Health Check","item":[{"name":"GET check","id":"b216a937-65a7-4267-a364-b81034f9ea30","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8080/ok","urlObject":{"protocol":"http","port":"8080","path":["ok"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"b216a937-65a7-4267-a364-b81034f9ea30"},{"name":"POST Check","id":"d299e778-953b-4fdc-9690-e628790d1c60","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://127.0.0.1:8080/","urlObject":{"protocol":"http","port":"8080","path":[""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"d299e778-953b-4fdc-9690-e628790d1c60"}],"id":"12544aab-a2b8-4772-99fd-26e83d849824","_postman_id":"12544aab-a2b8-4772-99fd-26e83d849824","description":""},{"name":"Signup","id":"574ff5ef-c69c-4807-924d-71527c0000e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\":\"Suresh\",\n    \"email\":\"suresh@gmail.com\",\n    \"password\":\"abc@123\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/signup","urlObject":{"protocol":"http","port":"8080","path":["api","signup"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"b19cf887-846c-48ff-ae9d-2f18d91a25ee","name":"Signup successful","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\":\"Shreeyash\",\n    \"email\":\"shreeyash@gmail.com\",\n    \"password\":\"abc@123\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/signup"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 09 Sep 2022 16:55:18 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"305"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Origin","value":""},{"key":"Access-Control-Allow-Credentials","value":"true"}],"cookie":[],"responseTime":null,"body":"{\n    \"body\": {\n        \"ID\": \"d097849c-7b15-4611-acb6-fc9736ab7036\",\n        \"CreatedAt\": 1662742518,\n        \"UpdatedAt\": 1662742518,\n        \"Name\": \"Shreeyash\",\n        \"Email\": \"shreeyash@gmail.com\",\n        \"Password\": \"$2a$14$idrxlImaasEx/s4JoeImeec9XzKtr6OTAEhgR5kaIv3bIkD4dXdim\",\n        \"Role\": \"employee\",\n        \"RewardPoints\": 0,\n        \"Courses\": null,\n        \"ViewedCourses\": null\n    },\n    \"msg\": \"ok\"\n}"}],"_postman_id":"574ff5ef-c69c-4807-924d-71527c0000e2"},{"name":"Login","id":"108c23a8-7184-462b-a0fd-449bb0b87d5d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"suresh@gmail.com\",\n    \"password\": \"abc@123\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/login","urlObject":{"protocol":"http","port":"8080","path":["api","login"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"108c23a8-7184-462b-a0fd-449bb0b87d5d"},{"name":"Change role","id":"627b1645-c090-4055-872e-9f4a1327fb15","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InNjaGJhbmdAZ21haWwuY29tIiwiZXhwIjoxNjYzNDAwNTg4LCJpZCI6ImI5ZTViMDJmLTcxYWUtNDFkNC1iN2Y3LTMxNTMxYjRlZWYwOSJ9.andrfP2S_aWydM-hLAeZ1crzAFYRPQZnGLcGYAdbL8I","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"role\":\"admin\",\n    \"changee_id\":\"b95e4741-e92c-4e66-97b3-d3168f213750\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/user/change_role","description":"<p>Only <em>superadmin</em> is allowed to change role of other users. i.e <em>employee</em> to <em>admin</em> and vice versa.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","user","change_role"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"e53e6a66-1768-4ec9-85d9-13972976590b","name":"Change role by super admin","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InNocmVleWFzaEBnbWFpbC5jb20iLCJleHAiOjE2NjMzNTIwMjcsImlkIjoiOThhMjdhNGUtZjIwZS00ZjVkLTllNjQtYjBkNjQ3MGUzNTJhIn0.X6jTnvC63RTZPxACi5JHbVTQI1G1SwwUPAhtjNZBjRk","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"role\":\"admin\",\n    \"changee_id\":\"f6cd234c-ab74-4c97-92c2-3506a2871541\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/user/change_role"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 09 Sep 2022 18:16:37 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"88"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Origin","value":""},{"key":"Access-Control-Allow-Credentials","value":"true"}],"cookie":[],"responseTime":null,"body":"{\n    \"body\": {\n        \"changee_id\": \"f6cd234c-ab74-4c97-92c2-3506a2871541\",\n        \"role\": \"admin\"\n    },\n    \"msg\": \"ok\"\n}"},{"id":"d33b9322-8289-4d4e-859f-053ace3463f1","name":"Change role by other","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InNhbUBnbWFpbC5jb20iLCJleHAiOjE2NjMzNTI0NjUsImlkIjoiZjNiYjAzMjUtMDQ0Yy00YzY0LWFjYTgtNGE1MGI0ZDQ2MDliIn0.NTyPtulievsJ7wHz4r5mbpWEy0K4s94d3Iy_m5ay0Ww","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"role\":\"admin\",\n    \"changee_id\":\"f6cd234c-ab74-4c97-92c2-3506a2871541\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/user/change_role"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 09 Sep 2022 18:21:41 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"22"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Origin","value":""},{"key":"Access-Control-Allow-Credentials","value":"true"}],"cookie":[],"responseTime":null,"body":"{\n    \"msg\": \"unauthorised\"\n}"}],"_postman_id":"627b1645-c090-4055-872e-9f4a1327fb15"},{"name":"Create course","id":"e19e6075-cf58-4685-853c-d1a618493c58","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InNocmVleWFzaEBnbWFpbC5jb20iLCJleHAiOjE2NjM0MDA2NzAsImlkIjoiYjk1ZTQ3NDEtZTkyYy00ZTY2LTk3YjMtZDMxNjhmMjEzNzUwIn0.wZqy7hAyaXsRJVDsycWlaS6FLav1G9WAGvKfqPbg_io","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\":\"English speaking\",\n    \"description\":\"72 hours\",\n    \"video_url\":\"https://youtube.com\",\n    \"topics\":[\"A\", \"B\"],\n    \"duration\":57,\n    \"category\":\"Language\",\n    \"points\":10\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/user/course/create","urlObject":{"protocol":"http","port":"8080","path":["api","user","course","create"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"532905cb-c500-44bc-b132-39e10e05402a","name":"Create course by admin","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InNhbUBnbWFpbC5jb20iLCJleHAiOjE2NjMzNTI0NjUsImlkIjoiZjNiYjAzMjUtMDQ0Yy00YzY0LWFjYTgtNGE1MGI0ZDQ2MDliIn0.NTyPtulievsJ7wHz4r5mbpWEy0K4s94d3Iy_m5ay0Ww","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\":\"SQL\",\n    \"description\":\"sql basics\",\n    \"video_url\":\"https://youtube.com\",\n    \"topics\":[\"A\", \"B\"],\n    \"duration\":57,\n    \"category\":\"IT\",\n    \"points\":5\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/user/course/create"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 09 Sep 2022 18:44:16 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"312"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Origin","value":""},{"key":"Access-Control-Allow-Credentials","value":"true"}],"cookie":[],"responseTime":null,"body":"{\n    \"body\": {\n        \"id\": \"5f6519b5-20c2-41ad-8128-afd8a2d3b95a\",\n        \"CreatedAt\": 1662749056,\n        \"UpdatedAt\": 1662749056,\n        \"Title\": \"SQL\",\n        \"Description\": \"sql basics\",\n        \"VideoURL\": \"https://youtube.com\",\n        \"Topics\": [\n            \"A\",\n            \"B\"\n        ],\n        \"Duration\": 57,\n        \"Category\": \"IT\",\n        \"Points\": 5,\n        \"IsApproved\": false,\n        \"UserID\": \"f3bb0325-044c-4c64-aca8-4a50b4d4609b\"\n    },\n    \"msg\": \"ok\"\n}"},{"id":"0809408d-536f-4f19-9001-a7a746ce48b7","name":"Create course by other","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cC6IkpXVCJ9.eyJlbWFpbCI6InNhbUBnbWFpbC5jb20iLCJleHAiOjE2NjMzNTI0NjUsImlkIjoiZjNiYjAzMjUtMDQ0Yy00YzY0LWFjYTgtNGE1MGI0ZDQ2MDliIn0.NTyPtulievsJ7wHz4r5mbpWEy0K4s94d3Iy_m5ay0Ww","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\":\"SQL\",\n    \"description\":\"sql basics\",\n    \"video_url\":\"https://youtube.com\",\n    \"topics\":[\"A\", \"B\"],\n    \"duration\":57,\n    \"category\":\"IT\",\n    \"points\":5\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/user/course/create"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 09 Sep 2022 18:45:02 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"22"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Origin","value":""},{"key":"Access-Control-Allow-Credentials","value":"true"}],"cookie":[],"responseTime":null,"body":"{\n    \"msg\": \"unauthorised\"\n}"}],"_postman_id":"e19e6075-cf58-4685-853c-d1a618493c58"},{"name":"Approve course","id":"25efc6d1-1d73-47a9-bac3-4e441bbf7c93","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InNjaGJhbmdAZ21haWwuY29tIiwiZXhwIjoxNjYzNDAwNTg4LCJpZCI6ImI5ZTViMDJmLTcxYWUtNDFkNC1iN2Y3LTMxNTMxYjRlZWYwOSJ9.andrfP2S_aWydM-hLAeZ1crzAFYRPQZnGLcGYAdbL8I","type":"text"}],"url":"http://127.0.0.1:8080/api/user/course/approve?course_id=4b323896-64ec-448a-be2c-743532120a4d","description":"<p>Only <em>superadmin</em> is allowed to approve course.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","user","course","approve"],"host":["127","0","0","1"],"query":[{"key":"course_id","value":"4b323896-64ec-448a-be2c-743532120a4d"}],"variable":[]}},"response":[{"id":"e680794a-6053-4ea0-9313-6bf9c2f0cf81","name":"Approve course by super admin","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InNocmVleWFzaEBnbWFpbC5jb20iLCJleHAiOjE2NjMzNTQxMzIsImlkIjoiOThhMjdhNGUtZjIwZS00ZjVkLTllNjQtYjBkNjQ3MGUzNTJhIn0.9GjlFxI97AfTIjPd-OLyHcc3gd2r6qqK2gEDJVgJkpo","type":"text"}],"url":{"raw":"http://127.0.0.1:8080/api/user/course/approve?course_id=5f6519b5-20c2-41ad-8128-afd8a2d3b95a","protocol":"http","host":["127","0","0","1"],"port":"8080","path":["api","user","course","approve"],"query":[{"key":"course_id","value":"5f6519b5-20c2-41ad-8128-afd8a2d3b95a"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 09 Sep 2022 18:49:39 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"91"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Origin","value":""},{"key":"Access-Control-Allow-Credentials","value":"true"}],"cookie":[],"responseTime":null,"body":"{\n    \"body\": {\n        \"course_id\": \"00000000-0000-0000-0000-000000000000\",\n        \"is_approved\": true\n    },\n    \"msg\": \"ok\"\n}"},{"id":"8f42d99b-fb02-41e9-8f3e-7dd69b6b917b","name":"Approve course by other","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsIncCI6IkpXVCJ9.eyJlbWFpbCI6InNocmVleWFzaEBnbWFpbC5jb20iLCJleHAiOjE2NjMzNTQxMzIsImlkIjoiOThhMjdhNGUtZjIwZS00ZjVkLTllNjQtYjBkNjQ3MGUzNTJhIn0.9GjlFxI97AfTIjPd-OLyHcc3gd2r6qqK2gEDJVgJkpo","type":"text"}],"url":{"raw":"http://127.0.0.1:8080/api/user/course/approve?course_id=5f6519b5-20c2-41ad-8128-afd8a2d3b95a","protocol":"http","host":["127","0","0","1"],"port":"8080","path":["api","user","course","approve"],"query":[{"key":"course_id","value":"5f6519b5-20c2-41ad-8128-afd8a2d3b95a"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 09 Sep 2022 18:51:22 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"22"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Origin","value":""},{"key":"Access-Control-Allow-Credentials","value":"true"}],"cookie":[],"responseTime":null,"body":"{\n    \"msg\": \"unauthorised\"\n}"}],"_postman_id":"25efc6d1-1d73-47a9-bac3-4e441bbf7c93"},{"name":"Update course","id":"ecbf6de7-6918-4355-a1d4-4fb871b288f2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InNhbUBnbWFpbC5jb20iLCJleHAiOjE2NjMzNTI0NjUsImlkIjoiZjNiYjAzMjUtMDQ0Yy00YzY0LWFjYTgtNGE1MGI0ZDQ2MDliIn0.NTyPtulievsJ7wHz4r5mbpWEy0K4s94d3Iy_m5ay0Ww","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\":\"5f6519b5-20c2-41ad-8128-afd8a2d3b95a\",\n    \"video_url\":\"https://udemy.com\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/user/course/update","urlObject":{"protocol":"http","port":"8080","path":["api","user","course","update"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"ecbf6de7-6918-4355-a1d4-4fb871b288f2"},{"name":"Delete course","id":"bef52195-76aa-4609-aa61-f0855bf401f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InNhbUBnbWFpbC5jb20iLCJleHAiOjE2NjMzNTcxMTUsImlkIjoiZjNiYjAzMjUtMDQ0Yy00YzY0LWFjYTgtNGE1MGI0ZDQ2MDliIn0.jyXpofiB6F3pz08Ol22eHc-aI1VvaCcn8wvllQ7D2pE","type":"text"}],"url":"http://127.0.0.1:8080/api/user/course/delete?course_id=74f4d910-7730-4db6-a191-eaecca9a4875","urlObject":{"protocol":"http","port":"8080","path":["api","user","course","delete"],"host":["127","0","0","1"],"query":[{"key":"course_id","value":"74f4d910-7730-4db6-a191-eaecca9a4875"}],"variable":[]}},"response":[{"id":"5a58ddc7-4674-4feb-af29-64d4a8a8e904","name":"Delete course by valid user","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InNhbUBnbWFpbC5jb20iLCJleHAiOjE2NjMzNTcxMTUsImlkIjoiZjNiYjAzMjUtMDQ0Yy00YzY0LWFjYTgtNGE1MGI0ZDQ2MDliIn0.jyXpofiB6F3pz08Ol22eHc-aI1VvaCcn8wvllQ7D2pE","type":"text"}],"url":{"raw":"http://127.0.0.1:8080/api/user/course/delete?course_id=74f4d910-7730-4db6-a191-eaecca9a4875","protocol":"http","host":["127","0","0","1"],"port":"8080","path":["api","user","course","delete"],"query":[{"key":"course_id","value":"74f4d910-7730-4db6-a191-eaecca9a4875"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 09 Sep 2022 19:41:06 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"90"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Origin","value":""},{"key":"Access-Control-Allow-Credentials","value":"true"}],"cookie":[],"responseTime":null,"body":"{\n    \"body\": {\n        \"course_id\": \"00000000-0000-0000-0000-000000000000\",\n        \"is_deleted\": true\n    },\n    \"msg\": \"ok\"\n}"}],"_postman_id":"bef52195-76aa-4609-aa61-f0855bf401f6"},{"name":"All Approved courses","id":"fdc0d4fd-901e-4328-9153-e0ed328540cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InN1cmVzaEBnbWFpbC5jb20iLCJleHAiOjE2NjM0MDA4NjQsImlkIjoiM2UzNjE4OTMtNTI2Yy00YjljLWFhMTAtMGVhYjIwMmJhZmVhIn0.wAt6zw6fBY9M0OQvc7x77YwyxGpdwNaWYhRLS88emUM","type":"text"}],"url":"http://127.0.0.1:8080/api/user/course/all","description":"<p>Fetches all the courses which are approved by <em>superadmin</em>.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","user","course","all"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"af125e7a-3c74-41e9-b849-71cda2b01a20","name":"Fetch all approved courses by Super Admin","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InN1cmVzaEBnbWFpbC5jb20iLCJleHAiOjE2NjM0MDA4NjQsImlkIjoiM2UzNjE4OTMtNTI2Yy00YjljLWFhMTAtMGVhYjIwMmJhZmVhIn0.wAt6zw6fBY9M0OQvc7x77YwyxGpdwNaWYhRLS88emUM","type":"text"}],"url":"http://127.0.0.1:8080/api/user/course/all"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 10 Sep 2022 08:47:39 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"623"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Origin","value":""},{"key":"Access-Control-Allow-Credentials","value":"true"}],"cookie":[],"responseTime":null,"body":"{\n    \"body\": [\n        {\n            \"id\": \"51030c42-cf4a-4f28-8109-adc52d877860\",\n            \"CreatedAt\": 1662795886,\n            \"UpdatedAt\": 1662796019,\n            \"Title\": \"Guitar Crash\",\n            \"Description\": \"5 days mastery\",\n            \"VideoURL\": \"https://youtube.com\",\n            \"Topics\": [\n                \"A\",\n                \"B\"\n            ],\n            \"Duration\": 57,\n            \"Category\": \"Music\",\n            \"Points\": 10,\n            \"IsApproved\": true,\n            \"UserID\": \"b95e4741-e92c-4e66-97b3-d3168f213750\"\n        },\n        {\n            \"id\": \"4b323896-64ec-448a-be2c-743532120a4d\",\n            \"CreatedAt\": 1662795929,\n            \"UpdatedAt\": 1662796033,\n            \"Title\": \"SQL\",\n            \"Description\": \"SQL basics\",\n            \"VideoURL\": \"https://youtube.com\",\n            \"Topics\": [\n                \"A\",\n                \"B\"\n            ],\n            \"Duration\": 57,\n            \"Category\": \"IT\",\n            \"Points\": 10,\n            \"IsApproved\": true,\n            \"UserID\": \"b95e4741-e92c-4e66-97b3-d3168f213750\"\n        }\n    ],\n    \"msg\": \"ok\"\n}"}],"_postman_id":"fdc0d4fd-901e-4328-9153-e0ed328540cd"},{"name":"View Course","id":"674f1ef5-7f6c-4cc0-8c75-9da4e0ff1b83","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InN1cmVzaEBnbWFpbC5jb20iLCJleHAiOjE2NjM0MDA4NjQsImlkIjoiM2UzNjE4OTMtNTI2Yy00YjljLWFhMTAtMGVhYjIwMmJhZmVhIn0.wAt6zw6fBY9M0OQvc7x77YwyxGpdwNaWYhRLS88emUM","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"course_id\":\"4b323896-64ec-448a-be2c-743532120a4d\",\n    \"completed_duration\":60\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/user/course/view","description":"<p><strong>Important Route!</strong> Please read till the end.</p>\n<p>Whenever a user (admin/employee) is directed to a course, after he is done visiting, front end sends the <em><strong>course_id</strong></em> &amp; <em><strong>completed_duration (</strong></em> timeline till which user has completed seeing the course***).***</p>\n<ul>\n<li>If completed_duration &gt;= course_duration, we mark the course as complete.</li>\n<li>Else, we mark the course as pending.</li>\n</ul>\n<p>Visiting again.</p>\n<ul>\n<li>If the user wishes to visit the same course again, we will update the viewed_course details using on conflict clause.</li>\n<li>However, if the user has already completed the course, it will stay completed (is_completed = true forever)</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["api","user","course","view"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"e793fc2b-cd03-41d3-b2ca-01e9b8af5480","name":"View Course completed","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InN1cmVzaEBnbWFpbC5jb20iLCJleHAiOjE2NjMzODcwNzAsImlkIjoiNzQ0NWNkMDMtNjU2NC00NGUwLTk2MmEtN2Q2NjM2ZTQ3NzU2In0.Jgc_DLbSnFMi91mjJFdqmyeteV2UxKwkYW54UQ3CctM","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"course_id\":\"74f4d910-7730-4db6-a191-eaecca9a4875\",\n    \"completed_duration\":60\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/user/course/view"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 10 Sep 2022 04:00:44 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"185"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Origin","value":""},{"key":"Access-Control-Allow-Credentials","value":"true"}],"cookie":[],"responseTime":null,"body":"{\n    \"body\": {\n        \"UserID\": \"7445cd03-6564-44e0-962a-7d6636e47756\",\n        \"CourseID\": \"74f4d910-7730-4db6-a191-eaecca9a4875\",\n        \"LastViewed\": 1662782444,\n        \"CompletedDuration\": 57,\n        \"IsCompleted\": true\n    },\n    \"msg\": \"ok\"\n}"},{"id":"1ca878d9-e40b-4385-98a8-c03d169fa5c4","name":"View Course Pending","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InN1cmVzaEBnbWFpbC5jb20iLCJleHAiOjE2NjMzODcwNzAsImlkIjoiNzQ0NWNkMDMtNjU2NC00NGUwLTk2MmEtN2Q2NjM2ZTQ3NzU2In0.Jgc_DLbSnFMi91mjJFdqmyeteV2UxKwkYW54UQ3CctM","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"course_id\":\"a9caedae-bed8-404f-8746-0122c1bad95d\",\n    \"completed_duration\":45\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/user/course/view"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 10 Sep 2022 04:04:27 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"185"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Origin","value":""},{"key":"Access-Control-Allow-Credentials","value":"true"}],"cookie":[],"responseTime":null,"body":"{\n    \"body\": {\n        \"UserID\": \"7445cd03-6564-44e0-962a-7d6636e47756\",\n        \"CourseID\": \"a9caedae-bed8-404f-8746-0122c1bad95d\",\n        \"LastViewed\": 1662782667,\n        \"CompletedDuration\": 0,\n        \"IsCompleted\": false\n    },\n    \"msg\": \"ok\"\n}"}],"_postman_id":"674f1ef5-7f6c-4cc0-8c75-9da4e0ff1b83"},{"name":"View completed courses for specific user","id":"d88df34c-5c32-4972-8153-12d7733f45b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InN1cmVzaEBnbWFpbC5jb20iLCJleHAiOjE2NjM0MDA4NjQsImlkIjoiM2UzNjE4OTMtNTI2Yy00YjljLWFhMTAtMGVhYjIwMmJhZmVhIn0.wAt6zw6fBY9M0OQvc7x77YwyxGpdwNaWYhRLS88emUM","type":"text"}],"url":"http://127.0.0.1:8080/api/user/course/completed","urlObject":{"protocol":"http","port":"8080","path":["api","user","course","completed"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"87379c3d-1a21-4a1a-96d7-9c36543264b8","name":"View completed courses for specific user","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InN1cmVzaEBnbWFpbC5jb20iLCJleHAiOjE2NjM0MDA4NjQsImlkIjoiM2UzNjE4OTMtNTI2Yy00YjljLWFhMTAtMGVhYjIwMmJhZmVhIn0.wAt6zw6fBY9M0OQvc7x77YwyxGpdwNaWYhRLS88emUM","type":"text"}],"url":"http://127.0.0.1:8080/api/user/course/completed"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 10 Sep 2022 08:16:57 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"330"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Origin","value":""},{"key":"Access-Control-Allow-Credentials","value":"true"}],"cookie":[],"responseTime":null,"body":"{\n    \"body\": [\n        {\n            \"id\": \"51030c42-cf4a-4f28-8109-adc52d877860\",\n            \"CreatedAt\": 1662795886,\n            \"UpdatedAt\": 1662796019,\n            \"Title\": \"Guitar Crash\",\n            \"Description\": \"5 days mastery\",\n            \"VideoURL\": \"https://youtube.com\",\n            \"Topics\": [\n                \"A\",\n                \"B\"\n            ],\n            \"Duration\": 57,\n            \"Category\": \"Music\",\n            \"Points\": 10,\n            \"IsApproved\": true,\n            \"UserID\": \"b95e4741-e92c-4e66-97b3-d3168f213750\"\n        }\n    ],\n    \"msg\": \"ok\"\n}"}],"_postman_id":"d88df34c-5c32-4972-8153-12d7733f45b9"},{"name":"View pending courses for specific user Copy","id":"0066c94c-334e-4688-b490-363230f97a35","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InN1cmVzaEBnbWFpbC5jb20iLCJleHAiOjE2NjM0MDA4NjQsImlkIjoiM2UzNjE4OTMtNTI2Yy00YjljLWFhMTAtMGVhYjIwMmJhZmVhIn0.wAt6zw6fBY9M0OQvc7x77YwyxGpdwNaWYhRLS88emUM","type":"text"}],"url":"http://127.0.0.1:8080/api/user/course/pending","urlObject":{"protocol":"http","port":"8080","path":["api","user","course","pending"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"1532d465-392a-46b3-b4c2-b61e7d9c45c4","name":"View pending courses for specific user Copy","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InN1cmVzaEBnbWFpbC5jb20iLCJleHAiOjE2NjM0MDA4NjQsImlkIjoiM2UzNjE4OTMtNTI2Yy00YjljLWFhMTAtMGVhYjIwMmJhZmVhIn0.wAt6zw6fBY9M0OQvc7x77YwyxGpdwNaWYhRLS88emUM","type":"text"}],"url":"http://127.0.0.1:8080/api/user/course/pending"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 10 Sep 2022 08:19:56 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"330"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Origin","value":""},{"key":"Access-Control-Allow-Credentials","value":"true"}],"cookie":[],"responseTime":null,"body":"{\n    \"body\": [\n        {\n            \"id\": \"51030c42-cf4a-4f28-8109-adc52d877860\",\n            \"CreatedAt\": 1662795886,\n            \"UpdatedAt\": 1662796019,\n            \"Title\": \"Guitar Crash\",\n            \"Description\": \"5 days mastery\",\n            \"VideoURL\": \"https://youtube.com\",\n            \"Topics\": [\n                \"A\",\n                \"B\"\n            ],\n            \"Duration\": 57,\n            \"Category\": \"Music\",\n            \"Points\": 10,\n            \"IsApproved\": true,\n            \"UserID\": \"b95e4741-e92c-4e66-97b3-d3168f213750\"\n        }\n    ],\n    \"msg\": \"ok\"\n}"}],"_postman_id":"0066c94c-334e-4688-b490-363230f97a35"}]}