{"info":{"_postman_id":"092e5903-7606-4350-9ee5-459519ce0831","name":"project-authenticated-courses","description":"<html><head></head><body><p>This is the documentation for the course project where we are required to implement authentication and authorization</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"13553956","collectionId":"092e5903-7606-4350-9ee5-459519ce0831","publishedId":"2s9YsDjEEc","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-12-29T15:56:59.000Z"},"item":[{"name":"Course","item":[{"name":"Create course","id":"f8f7155b-eeec-44e4-b179-26b62249d100","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NThlZjE2NjFkMDY4NGZlZmFhYzNkNzUiLCJyb2xlIjoiYWRtaW4iLCJlbWFpbCI6InJpeWFkQGdtYWlsLmNvbSIsImlhdCI6MTcwMzg2NjgwOSwiZXhwIjoxNzA1MTYyODA5fQ.cMWBYjVhd1WO34_aISrUEH_tlESdhHYoNEPAvig-WEM","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"Design Thinking in Daily Life\",\n    \"instructor\": \"Prof. Emily Carter\",\n    \"categoryId\": \"658ede890f254059d9525718\",\n    \"price\": 89.99,\n    \"tags\": [\n        {\"name\": \"Design\", \"isDeleted\": false},\n        {\"name\": \"Innovation\", \"isDeleted\": false},\n        {\"name\": \"Creativity\", \"isDeleted\": false}\n    ],\n    \"startDate\": \"2023-08-15\",\n    \"endDate\": \"2023-10-23\",\n    \"language\": \"English\",\n    \"provider\": \"Innovation Hub\",\n    \"durationInWeeks\": 12,\n    \"details\": {\n        \"level\": \"Intermediate\",\n        \"description\": \"Immerse yourself in the world of design thinking and learn practical approaches to foster innovation and creativity in your projects.\"\n    }\n}\n","options":{"raw":{"language":"json"}}},"url":"https://auth-courses.vercel.app/api/courses","urlObject":{"protocol":"https","path":["api","courses"],"host":["auth-courses","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"6bda4a1b-d53c-4a49-b4fe-9074cc65c3fd","name":"Create course","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NThlY2U0ZDFlZTNmMmI3OTRhMzkxNTAiLCJyb2xlIjoiYWRtaW4iLCJlbWFpbCI6Im1laGVkaUBnbWFpbC5jb20iLCJpYXQiOjE3MDM4NTc3NjQsImV4cCI6MTcwNTE1Mzc2NH0.6WtJvg5AEqFyp4PQGMcE-2MAtYFZqBc6WUg6AMWMg5Y","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"Design Thinking in Practice\",\n    \"instructor\": \"Prof. Emily Carter\",\n    \"categoryId\": \"658ede890f254059d9525718\",\n    \"price\": 99.99,\n    \"tags\": [\n        {\"name\": \"Design\", \"isDeleted\": false},\n        {\"name\": \"Innovation\", \"isDeleted\": false},\n        {\"name\": \"Creativity\", \"isDeleted\": false}\n    ],\n    \"startDate\": \"2023-08-15\",\n    \"endDate\": \"2023-10-23\",\n    \"language\": \"English\",\n    \"provider\": \"Innovation Hub\",\n    \"durationInWeeks\": 12,\n    \"details\": {\n        \"level\": \"Intermediate\",\n        \"description\": \"Immerse yourself in the world of design thinking and learn practical approaches to foster innovation and creativity in your projects.\"\n    }\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/courses"},"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":"786"},{"key":"ETag","value":"W/\"312-p3blmvv4Pirx4EzfaCW35CcpY+A\""},{"key":"Date","value":"Fri, 29 Dec 2023 15:03:34 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"statusCode\": 201,\n    \"message\": \"Course created successfully\",\n    \"data\": {\n        \"_id\": \"658edfc50f254059d9525728\",\n        \"title\": \"Design Thinking in Practice\",\n        \"instructor\": \"Prof. Emily Carter\",\n        \"categoryId\": \"658ede890f254059d9525718\",\n        \"price\": 99.99,\n        \"tags\": [\n            {\n                \"name\": \"Design\",\n                \"isDeleted\": false\n            },\n            {\n                \"name\": \"Innovation\",\n                \"isDeleted\": false\n            },\n            {\n                \"name\": \"Creativity\",\n                \"isDeleted\": false\n            }\n        ],\n        \"startDate\": \"2023-08-15\",\n        \"endDate\": \"2023-10-23\",\n        \"language\": \"English\",\n        \"provider\": \"Innovation Hub\",\n        \"durationInWeeks\": 12,\n        \"details\": {\n            \"level\": \"Intermediate\",\n            \"description\": \"Immerse yourself in the world of design thinking and learn practical approaches to foster innovation and creativity in your projects.\"\n        },\n        \"createdBy\": \"658ece4d1ee3f2b794a39150\",\n        \"createdAt\": \"2023-12-29T15:03:33.671Z\",\n        \"updatedAt\": \"2023-12-29T15:03:33.671Z\"\n    }\n}"}],"_postman_id":"f8f7155b-eeec-44e4-b179-26b62249d100"},{"name":"Get all courses","id":"fa232bbe-9849-4529-a1ed-37621850ed6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://auth-courses.vercel.app/api/courses","urlObject":{"protocol":"https","path":["api","courses"],"host":["auth-courses","vercel","app"],"query":[{"disabled":true,"key":"provider","value":"Design Institute"},{"disabled":true,"key":"minPrice","value":"29.99"},{"disabled":true,"key":"durationInWeeks","value":"6"},{"disabled":true,"key":"level","value":"Beginner"},{"disabled":true,"key":"startDate","value":"2023-03-15"},{"disabled":true,"key":"endDate","value":"2023-06-05"},{"disabled":true,"key":"language","value":"English"},{"disabled":true,"key":"maxPrice","value":"69.99"},{"disabled":true,"key":"limit","value":"2"},{"disabled":true,"key":"sortBy","value":"title"},{"disabled":true,"key":"minPrice","value":"20.00"},{"disabled":true,"key":"maxPrice","value":"50.00"},{"disabled":true,"key":"startDate","value":"2023-01-01"},{"disabled":true,"key":"endDate","value":"2023-06-31"},{"disabled":true,"key":"provider","value":"Tech Academy"},{"disabled":true,"key":"page","value":"1"}],"variable":[]}},"response":[{"id":"2948ec7d-3da5-4e30-b43d-b95c2fb88f65","name":"Get all courses","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5000/api/courses?limit=2&sortBy=title&page=1","protocol":"http","host":["localhost"],"port":"5000","path":["api","courses"],"query":[{"key":"provider","value":"Design Institute","disabled":true},{"key":"minPrice","value":"29.99","disabled":true},{"key":"durationInWeeks","value":"6","disabled":true},{"key":"level","value":"Beginner","disabled":true},{"key":"startDate","value":"2023-03-15","disabled":true},{"key":"endDate","value":"2023-06-05","disabled":true},{"key":"language","value":"English","disabled":true},{"key":"maxPrice","value":"69.99","disabled":true},{"key":"limit","value":"2"},{"key":"sortBy","value":"title"},{"key":"minPrice","value":"20.00","disabled":true},{"key":"maxPrice","value":"50.00","disabled":true},{"key":"startDate","value":"2023-01-01","disabled":true},{"key":"endDate","value":"2023-06-31","disabled":true},{"key":"provider","value":"Tech Academy","disabled":true},{"key":"page","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":"1513"},{"key":"ETag","value":"W/\"5e9-3/3b3EOW99DrGZKIvsFDMlG63MY\""},{"key":"Date","value":"Fri, 29 Dec 2023 15:00:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"statusCode\": 200,\n    \"message\": \"Courses retrieved successfully\",\n    \"meta\": {\n        \"page\": 1,\n        \"limit\": 2,\n        \"total\": 4\n    },\n    \"data\": {\n        \"courses\": [\n            {\n                \"_id\": \"658ed1221c30b95372ab634a\",\n                \"title\": \"Advanced Data Science with Python\",\n                \"instructor\": \"Dr. Emily Rodriguez\",\n                \"categoryId\": \"658ecf0f1ee3f2b794a39156\",\n                \"price\": 79.99,\n                \"tags\": [\n                    {\n                        \"name\": \"Data Science\",\n                        \"isDeleted\": false\n                    },\n                    {\n                        \"name\": \"Python\",\n                        \"isDeleted\": false\n                    }\n                ],\n                \"startDate\": \"2023-03-15\",\n                \"endDate\": \"2023-05-10\",\n                \"language\": \"English\",\n                \"provider\": \"Data Science Institute\",\n                \"details\": {\n                    \"level\": \"Intermediate\",\n                    \"description\": \"Dive deep into advanced data science concepts and techniques using Python.\"\n                },\n                \"createdBy\": {\n                    \"_id\": \"658ece4d1ee3f2b794a39150\",\n                    \"username\": \"mehedi\",\n                    \"email\": \"mehedi@gmail.com\",\n                    \"role\": \"admin\"\n                },\n                \"createdAt\": \"2023-12-29T14:01:06.498Z\",\n                \"updatedAt\": \"2023-12-29T14:01:06.498Z\",\n                \"durationInWeeks\": 8\n            },\n            {\n                \"_id\": \"658ed05f1c30b95372ab6343\",\n                \"title\": \"Introduction to Web Development\",\n                \"instructor\": \"John Smith\",\n                \"categoryId\": \"658ecf0f1ee3f2b794a39156\",\n                \"price\": 49.99,\n                \"tags\": [\n                    {\n                        \"name\": \"Programming\",\n                        \"isDeleted\": false\n                    },\n                    {\n                        \"name\": \"Web Development\",\n                        \"isDeleted\": false\n                    },\n                    {\n                        \"name\": \"React\",\n                        \"isDeleted\": false\n                    }\n                ],\n                \"startDate\": \"2023-02-01\",\n                \"endDate\": \"2023-04-01\",\n                \"language\": \"English\",\n                \"provider\": \"Tech Academy\",\n                \"durationInWeeks\": 8,\n                \"details\": {\n                    \"level\": \"Beginner\",\n                    \"description\": \"A comprehensive introduction to web development.\"\n                },\n                \"createdBy\": {\n                    \"_id\": \"658ece4d1ee3f2b794a39150\",\n                    \"username\": \"mehedi\",\n                    \"email\": \"mehedi@gmail.com\",\n                    \"role\": \"admin\"\n                },\n                \"createdAt\": \"2023-12-29T13:57:51.329Z\",\n                \"updatedAt\": \"2023-12-29T14:11:14.681Z\"\n            }\n        ]\n    }\n}"}],"_postman_id":"fa232bbe-9849-4529-a1ed-37621850ed6d"},{"name":"Get single course with reviews","id":"4607471d-3904-47e6-b67d-be31c23cfadd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://auth-courses.vercel.app/api/courses/658ef32a1d0684fefaac3d8a/reviews","urlObject":{"protocol":"https","path":["api","courses","658ef32a1d0684fefaac3d8a","reviews"],"host":["auth-courses","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"6012f8d8-5b77-4d8c-884e-0e2955eec8ff","name":"Get single course with reviews","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/courses/658ed05f1c30b95372ab6343/reviews"},"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":"1681"},{"key":"ETag","value":"W/\"691-zcQWb4+FHiRpz8NFSpgTVgajQ84\""},{"key":"Date","value":"Fri, 29 Dec 2023 15:04:22 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"statusCode\": 200,\n    \"message\": \"Course with reviews retrieved successfully\",\n    \"data\": {\n        \"course\": {\n            \"_id\": \"658ed05f1c30b95372ab6343\",\n            \"title\": \"Introduction to Web Development\",\n            \"instructor\": \"John Smith\",\n            \"categoryId\": \"658ecf0f1ee3f2b794a39156\",\n            \"price\": 49.99,\n            \"tags\": [\n                {\n                    \"name\": \"Programming\",\n                    \"isDeleted\": false\n                },\n                {\n                    \"name\": \"Web Development\",\n                    \"isDeleted\": false\n                },\n                {\n                    \"name\": \"React\",\n                    \"isDeleted\": false\n                }\n            ],\n            \"startDate\": \"2023-02-01\",\n            \"endDate\": \"2023-04-01\",\n            \"language\": \"English\",\n            \"provider\": \"Tech Academy\",\n            \"durationInWeeks\": 8,\n            \"details\": {\n                \"level\": \"Beginner\",\n                \"description\": \"A comprehensive introduction to web development.\"\n            },\n            \"createdBy\": {\n                \"_id\": \"658ece4d1ee3f2b794a39150\",\n                \"username\": \"mehedi\",\n                \"email\": \"mehedi@gmail.com\",\n                \"role\": \"admin\"\n            },\n            \"createdAt\": \"2023-12-29T13:57:51.329Z\",\n            \"updatedAt\": \"2023-12-29T14:11:14.681Z\"\n        },\n        \"reviews\": [\n            {\n                \"_id\": \"658ed2381c30b95372ab635b\",\n                \"courseId\": \"658ed05f1c30b95372ab6343\",\n                \"rating\": 4,\n                \"review\": \"Great course.\",\n                \"createdBy\": {\n                    \"_id\": \"658ecb2ea6c022b77005bb27\",\n                    \"username\": \"john_doe\",\n                    \"email\": \"john@example.com\",\n                    \"role\": \"user\"\n                },\n                \"createdAt\": \"2023-12-29T14:05:44.796Z\",\n                \"updatedAt\": \"2023-12-29T14:05:44.796Z\"\n            },\n            {\n                \"_id\": \"658ed5e11c30b95372ab6392\",\n                \"courseId\": \"658ed05f1c30b95372ab6343\",\n                \"rating\": 4,\n                \"review\": \"Good course\",\n                \"createdBy\": {\n                    \"_id\": \"658ed5441c30b95372ab637e\",\n                    \"username\": \"sam\",\n                    \"email\": \"sam@gmail.com\",\n                    \"role\": \"user\"\n                },\n                \"createdAt\": \"2023-12-29T14:21:21.825Z\",\n                \"updatedAt\": \"2023-12-29T14:21:21.825Z\"\n            },\n            {\n                \"_id\": \"658ed63f1c30b95372ab639b\",\n                \"courseId\": \"658ed05f1c30b95372ab6343\",\n                \"rating\": 5,\n                \"review\": \"Amazing course\",\n                \"createdBy\": {\n                    \"_id\": \"658ed6101c30b95372ab6396\",\n                    \"username\": \"linda\",\n                    \"email\": \"linda@gmail.com\",\n                    \"role\": \"user\"\n                },\n                \"createdAt\": \"2023-12-29T14:22:55.599Z\",\n                \"updatedAt\": \"2023-12-29T14:22:55.599Z\"\n            }\n        ]\n    }\n}"}],"_postman_id":"4607471d-3904-47e6-b67d-be31c23cfadd"},{"name":"Get best course","id":"1be20a46-5786-45e5-b735-b013e38e1612","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://auth-courses.vercel.app/api/course/best","urlObject":{"protocol":"https","path":["api","course","best"],"host":["auth-courses","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"fa96bdd8-0933-4939-bd57-ea5b9ba1fe85","name":"Get best course","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/course/best"},"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":"819"},{"key":"ETag","value":"W/\"333-nUc/RSNzReYbFXPaa7dT7XukEUI\""},{"key":"Date","value":"Fri, 29 Dec 2023 15:04:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"statusCode\": 200,\n    \"message\": \"Best course retrieved successfully\",\n    \"data\": {\n        \"course\": {\n            \"_id\": \"658ed05f1c30b95372ab6343\",\n            \"title\": \"Introduction to Web Development\",\n            \"instructor\": \"John Smith\",\n            \"categoryId\": \"658ecf0f1ee3f2b794a39156\",\n            \"price\": 49.99,\n            \"tags\": [\n                {\n                    \"name\": \"Programming\",\n                    \"isDeleted\": false\n                },\n                {\n                    \"name\": \"Web Development\",\n                    \"isDeleted\": false\n                },\n                {\n                    \"name\": \"React\",\n                    \"isDeleted\": false\n                }\n            ],\n            \"startDate\": \"2023-02-01\",\n            \"endDate\": \"2023-04-01\",\n            \"language\": \"English\",\n            \"provider\": \"Tech Academy\",\n            \"durationInWeeks\": 8,\n            \"details\": {\n                \"level\": \"Beginner\",\n                \"description\": \"A comprehensive introduction to web development.\"\n            },\n            \"createdBy\": {\n                \"_id\": \"658ece4d1ee3f2b794a39150\",\n                \"username\": \"mehedi\",\n                \"email\": \"mehedi@gmail.com\",\n                \"role\": \"admin\"\n            },\n            \"createdAt\": \"2023-12-29T13:57:51.329Z\",\n            \"updatedAt\": \"2023-12-29T14:11:14.681Z\"\n        },\n        \"averageRating\": 4.3,\n        \"reviewCount\": 3\n    }\n}"}],"_postman_id":"1be20a46-5786-45e5-b735-b013e38e1612"},{"name":"Update course","id":"b32d8dbe-3687-4fae-8e7f-fdb85ed6d10f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NThlZGFkNzBmMjU0MDU5ZDk1MjU3MTAiLCJyb2xlIjoiYWRtaW4iLCJlbWFpbCI6Imhhc2FuQGdtYWlsLmNvbSIsImlhdCI6MTcwMzg2MTAwOSwiZXhwIjoxNzA1MTU3MDA5fQ.59MUaohckuMWHYQi5w4uNq0O86BrgTMeeOsWanBLUvU","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"instructor\" : \"Md Mehedi Hasan\",\n    \"price\": 59.99 ,\n    \"tags\": [\n            {\n                \"name\": \"Design\",\n                \"isDeleted\": false\n            },\n            {\n                \"name\": \"Innovation\",\n                \"isDeleted\": true\n            },\n            {\n                \"name\": \"Creativity\",\n                \"isDeleted\": false\n            }\n        ]\n}","options":{"raw":{"language":"json"}}},"url":"https://auth-courses.vercel.app/api/courses/658edfc50f254059d9525728","urlObject":{"protocol":"https","path":["api","courses","658edfc50f254059d9525728"],"host":["auth-courses","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"6e295744-9efb-4baa-97df-97ce01d7531b","name":"Update course","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NThlZGFkNzBmMjU0MDU5ZDk1MjU3MTAiLCJyb2xlIjoiYWRtaW4iLCJlbWFpbCI6Imhhc2FuQGdtYWlsLmNvbSIsImlhdCI6MTcwMzg2MTAwOSwiZXhwIjoxNzA1MTU3MDA5fQ.59MUaohckuMWHYQi5w4uNq0O86BrgTMeeOsWanBLUvU","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"instructor\" : \"Mehedi Hasan\",\n    \"price\": 55.99 \n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/courses/658ed1221c30b95372ab634a"},"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":"766"},{"key":"ETag","value":"W/\"2fe-B3tVSps0yPdzlOnCzdokE5ZoANk\""},{"key":"Date","value":"Fri, 29 Dec 2023 15:06:26 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"statusCode\": 200,\n    \"message\": \"Course updated successfully\",\n    \"data\": {\n        \"_id\": \"658ed1221c30b95372ab634a\",\n        \"title\": \"Advanced Data Science with Python\",\n        \"instructor\": \"Mehedi Hasan\",\n        \"categoryId\": \"658ecf0f1ee3f2b794a39156\",\n        \"price\": 55.99,\n        \"tags\": [\n            {\n                \"name\": \"Data Science\",\n                \"isDeleted\": false\n            },\n            {\n                \"name\": \"Python\",\n                \"isDeleted\": false\n            }\n        ],\n        \"startDate\": \"2023-03-15\",\n        \"endDate\": \"2023-05-10\",\n        \"language\": \"English\",\n        \"provider\": \"Data Science Institute\",\n        \"details\": {\n            \"level\": \"Intermediate\",\n            \"description\": \"Dive deep into advanced data science concepts and techniques using Python.\"\n        },\n        \"createdBy\": {\n            \"_id\": \"658ece4d1ee3f2b794a39150\",\n            \"username\": \"mehedi\",\n            \"email\": \"mehedi@gmail.com\",\n            \"role\": \"admin\"\n        },\n        \"createdAt\": \"2023-12-29T14:01:06.498Z\",\n        \"updatedAt\": \"2023-12-29T15:06:25.060Z\",\n        \"durationInWeeks\": 8\n    }\n}"}],"_postman_id":"b32d8dbe-3687-4fae-8e7f-fdb85ed6d10f"}],"id":"3be4774d-6139-4210-a59c-04f78824c43b","_postman_id":"3be4774d-6139-4210-a59c-04f78824c43b","description":""},{"name":"Category","item":[{"name":"Create category","id":"0cbe00d4-7362-4576-a800-3ffc2e956f0a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NThlZjE2NjFkMDY4NGZlZmFhYzNkNzUiLCJyb2xlIjoiYWRtaW4iLCJlbWFpbCI6InJpeWFkQGdtYWlsLmNvbSIsImlhdCI6MTcwMzg2NjgwOSwiZXhwIjoxNzA1MTYyODA5fQ.cMWBYjVhd1WO34_aISrUEH_tlESdhHYoNEPAvig-WEM","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Marketing\"\n}   ","options":{"raw":{"language":"json"}}},"url":"https://auth-courses.vercel.app/api/categories","urlObject":{"protocol":"https","path":["api","categories"],"host":["auth-courses","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"c05a9094-b7fd-46f4-a90c-df98d94db194","name":"Create category","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NThlZGFkNzBmMjU0MDU5ZDk1MjU3MTAiLCJyb2xlIjoiYWRtaW4iLCJlbWFpbCI6Imhhc2FuQGdtYWlsLmNvbSIsImlhdCI6MTcwMzg2MTAwOSwiZXhwIjoxNzA1MTU3MDA5fQ.59MUaohckuMWHYQi5w4uNq0O86BrgTMeeOsWanBLUvU","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Designing\"\n}   ","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/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":"253"},{"key":"ETag","value":"W/\"fd-OoaOHWvjkY/ot8Fnv7R6BJv0HVs\""},{"key":"Date","value":"Fri, 29 Dec 2023 14:58:18 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"statusCode\": 201,\n    \"message\": \"Category created successfully\",\n    \"data\": {\n        \"_id\": \"658ede890f254059d9525718\",\n        \"name\": \"Designing\",\n        \"createdBy\": \"658edad70f254059d9525710\",\n        \"createdAt\": \"2023-12-29T14:58:17.570Z\",\n        \"updatedAt\": \"2023-12-29T14:58:17.570Z\"\n    }\n}"}],"_postman_id":"0cbe00d4-7362-4576-a800-3ffc2e956f0a"},{"name":"Get all category","id":"84f9e703-36a7-4f51-890a-0b4c32926e79","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://auth-courses.vercel.app/api/categories","urlObject":{"protocol":"https","path":["api","categories"],"host":["auth-courses","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"446dad2a-31a3-4a4b-9842-206394172a06","name":"Get all category","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5000/api/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":"1067"},{"key":"ETag","value":"W/\"42b-49vEOVasGISoM3L5PS3YBwFd9nc\""},{"key":"Date","value":"Fri, 29 Dec 2023 14:58:39 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"statusCode\": 200,\n    \"message\": \"Categories retrieved successfully\",\n    \"data\": {\n        \"categories\": [\n            {\n                \"_id\": \"658ecf0f1ee3f2b794a39156\",\n                \"name\": \"Programming\",\n                \"createdBy\": {\n                    \"_id\": \"658ece4d1ee3f2b794a39150\",\n                    \"username\": \"mehedi\",\n                    \"email\": \"mehedi@gmail.com\",\n                    \"role\": \"admin\"\n                },\n                \"createdAt\": \"2023-12-29T13:52:15.817Z\",\n                \"updatedAt\": \"2023-12-29T13:52:15.817Z\"\n            },\n            {\n                \"_id\": \"658ecf469ada1b87e97307e5\",\n                \"name\": \"Management\",\n                \"createdBy\": {\n                    \"_id\": \"658ece4d1ee3f2b794a39150\",\n                    \"username\": \"mehedi\",\n                    \"email\": \"mehedi@gmail.com\",\n                    \"role\": \"admin\"\n                },\n                \"createdAt\": \"2023-12-29T13:53:10.404Z\",\n                \"updatedAt\": \"2023-12-29T13:53:10.404Z\"\n            },\n            {\n                \"_id\": \"658ed6f11c30b95372ab63af\",\n                \"name\": \"Research\",\n                \"createdBy\": {\n                    \"_id\": \"658ece4d1ee3f2b794a39150\",\n                    \"username\": \"mehedi\",\n                    \"email\": \"mehedi@gmail.com\",\n                    \"role\": \"admin\"\n                },\n                \"createdAt\": \"2023-12-29T14:25:53.340Z\",\n                \"updatedAt\": \"2023-12-29T14:25:53.340Z\"\n            },\n            {\n                \"_id\": \"658ede890f254059d9525718\",\n                \"name\": \"Designing\",\n                \"createdBy\": {\n                    \"_id\": \"658edad70f254059d9525710\",\n                    \"username\": \"hasan\",\n                    \"email\": \"hasan@gmail.com\",\n                    \"role\": \"admin\"\n                },\n                \"createdAt\": \"2023-12-29T14:58:17.570Z\",\n                \"updatedAt\": \"2023-12-29T14:58:17.570Z\"\n            }\n        ]\n    }\n}"}],"_postman_id":"84f9e703-36a7-4f51-890a-0b4c32926e79"}],"id":"9d6ca383-e110-48fc-9699-ac87a1838d33","_postman_id":"9d6ca383-e110-48fc-9699-ac87a1838d33","description":""},{"name":"Review","item":[{"name":"Create review","id":"a10b0447-753d-4c2b-bd09-ee2b3280df3c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NThlZDYxMDFjMzBiOTUzNzJhYjYzOTYiLCJyb2xlIjoidXNlciIsImVtYWlsIjoibGluZGFAZ21haWwuY29tIiwiaWF0IjoxNzAzODY3MDkxLCJleHAiOjE3MDUxNjMwOTF9.lx7k-yOtddwKJzeh-K20ZG7UNhASt3FWmBmPydbTkoc","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"courseId\": \"658edfc50f254059d9525728\",\n    \"rating\": 4,\n    \"review\": \"Informative\"\n}","options":{"raw":{"language":"json"}}},"url":"https://auth-courses.vercel.app/api/reviews","urlObject":{"protocol":"https","path":["api","reviews"],"host":["auth-courses","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"93ff721c-a622-42b0-a13e-a87e99247bfa","name":"Create review","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NThlZDYxMDFjMzBiOTUzNzJhYjYzOTYiLCJyb2xlIjoidXNlciIsImVtYWlsIjoibGluZGFAZ21haWwuY29tIiwiaWF0IjoxNzAzODYyMDE3LCJleHAiOjE3MDUxNTgwMTd9.ELGRkAA3TtjPV4TlJGSAGQBKRhhwKf5afD61QuWSWwU","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"courseId\": \"658ed1221c30b95372ab634a\",\n    \"rating\": 4,\n    \"review\": \"Nice course\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/reviews"},"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":"371"},{"key":"ETag","value":"W/\"173-8OI71Krh00uQGXsq0r/yXIDxGZQ\""},{"key":"Date","value":"Fri, 29 Dec 2023 15:01:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"statusCode\": 201,\n    \"message\": \"Review created successfully\",\n    \"data\": {\n        \"_id\": \"658edf490f254059d9525722\",\n        \"courseId\": \"658ed1221c30b95372ab634a\",\n        \"rating\": 4,\n        \"review\": \"Nice course\",\n        \"createdBy\": {\n            \"_id\": \"658ed6101c30b95372ab6396\",\n            \"username\": \"linda\",\n            \"email\": \"linda@gmail.com\",\n            \"role\": \"user\"\n        },\n        \"createdAt\": \"2023-12-29T15:01:29.666Z\",\n        \"updatedAt\": \"2023-12-29T15:01:29.666Z\"\n    }\n}"}],"_postman_id":"a10b0447-753d-4c2b-bd09-ee2b3280df3c"}],"id":"27ac4c7c-f930-43ed-ba6e-7121d75840e2","_postman_id":"27ac4c7c-f930-43ed-ba6e-7121d75840e2","description":""},{"name":"User","item":[{"name":"Register User","id":"2a73be26-17e7-43a0-a6b2-e663e0480b3e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"riyad\",\n    \"email\": \"riyad@gmail.com\",\n    \"password\": \"Pass1234\",\n    \"role\": \"admin\"\n}","options":{"raw":{"language":"json"}}},"url":"https://auth-courses.vercel.app/api/auth/register","urlObject":{"protocol":"https","path":["api","auth","register"],"host":["auth-courses","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"20e08145-aeb2-4dc7-8d83-3739190e83e0","name":"Register User","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"hasan\",\n    \"email\": \"hasan@gmail.com\",\n    \"password\": \"Pass1234\",\n    \"role\": \"admin\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/auth/register"},"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":"254"},{"key":"ETag","value":"W/\"fe-sKaqn27YxnThgPb3wxvriUlqJm8\""},{"key":"Date","value":"Fri, 29 Dec 2023 14:42:32 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"statusCode\": 201,\n    \"message\": \"User registered successfully\",\n    \"data\": {\n        \"_id\": \"658edad70f254059d9525710\",\n        \"username\": \"hasan\",\n        \"email\": \"hasan@gmail.com\",\n        \"role\": \"admin\",\n        \"createdAt\": \"2023-12-29T14:42:31.091Z\",\n        \"updatedAt\": \"2023-12-29T14:42:31.091Z\"\n    }\n}"}],"_postman_id":"2a73be26-17e7-43a0-a6b2-e663e0480b3e"},{"name":"Login User","id":"60809620-eabc-4bf9-b3be-f6e30e7824f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"linda\",\n    \"password\": \"Pass1234\"\n}","options":{"raw":{"language":"json"}}},"url":"https://auth-courses.vercel.app/api/auth/login","urlObject":{"protocol":"https","path":["api","auth","login"],"host":["auth-courses","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"9f783e9a-d29a-4eea-819d-301328110e6c","name":"Login User","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\n    \"username\": \"linda\",\n    \"password\": \"Pass1234\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/auth/login"},"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":"413"},{"key":"ETag","value":"W/\"19d-NhvO9WxWw1HLOYV1x0uJW8ckcHg\""},{"key":"Date","value":"Fri, 29 Dec 2023 15:52:03 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"statusCode\": 200,\n    \"message\": \"User login successful\",\n    \"data\": {\n        \"user\": {\n            \"_id\": \"658ed6101c30b95372ab6396\",\n            \"username\": \"linda\",\n            \"email\": \"linda@gmail.com\",\n            \"role\": \"user\"\n        },\n        \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NThlZDYxMDFjMzBiOTUzNzJhYjYzOTYiLCJyb2xlIjoidXNlciIsImVtYWlsIjoibGluZGFAZ21haWwuY29tIiwiaWF0IjoxNzAzODY1MTIzLCJleHAiOjE3MDUxNjExMjN9.VgIR6DrnpsOpMmhrsBdlUbPkk3mNJYaFXJ9j3QP93Yk\"\n    }\n}"}],"_postman_id":"60809620-eabc-4bf9-b3be-f6e30e7824f3"},{"name":"Change User Passoword","id":"765c1036-d521-4b0c-b40b-a53a8b2e4241","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NThlZjE2NjFkMDY4NGZlZmFhYzNkNzUiLCJyb2xlIjoiYWRtaW4iLCJlbWFpbCI6InJpeWFkQGdtYWlsLmNvbSIsImlhdCI6MTcwMzg2NjgwOSwiZXhwIjoxNzA1MTYyODA5fQ.cMWBYjVhd1WO34_aISrUEH_tlESdhHYoNEPAvig-WEM","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"currentPassword\": \"Pass1234\",\n    \"newPassword\": \"Password1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://auth-courses.vercel.app/api/auth/change-password","urlObject":{"protocol":"https","path":["api","auth","change-password"],"host":["auth-courses","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"0023111f-3933-45c2-bdd4-050dfb1d4587","name":"Change User Passoword","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NThlZDYxMDFjMzBiOTUzNzJhYjYzOTYiLCJyb2xlIjoidXNlciIsImVtYWlsIjoibGluZGFAZ21haWwuY29tIiwiaWF0IjoxNzAzODY1MTIzLCJleHAiOjE3MDUxNjExMjN9.VgIR6DrnpsOpMmhrsBdlUbPkk3mNJYaFXJ9j3QP93Yk","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"currentPassword\": \"Pass1234\",\n    \"newPassword\": \"Password1\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/auth/change-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":"254"},{"key":"ETag","value":"W/\"fe-MTSno7z8nSdfITMZtvip84O/MvI\""},{"key":"Date","value":"Fri, 29 Dec 2023 15:54:42 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"statusCode\": 200,\n    \"message\": \"Password changed successfully\",\n    \"data\": {\n        \"_id\": \"658ed6101c30b95372ab6396\",\n        \"username\": \"linda\",\n        \"email\": \"linda@gmail.com\",\n        \"role\": \"user\",\n        \"createdAt\": \"2023-12-29T14:22:08.469Z\",\n        \"updatedAt\": \"2023-12-29T15:54:42.093Z\"\n    }\n}"}],"_postman_id":"765c1036-d521-4b0c-b40b-a53a8b2e4241"}],"id":"1ddf60e6-ccfe-42c4-a20a-9e9fe553125e","_postman_id":"1ddf60e6-ccfe-42c4-a20a-9e9fe553125e","description":""}]}