This documentation outlines the available endpoints and functionalities of the E-Learning Express API.
- URL:
http://localhost:3000/api/v1/user/1
- Method:
GET
Retrieve user information by ID.
- URL:
http://localhost:3000/api/v1/user/1
- Method:
PUT
Update user information by ID.
- URL:
http://localhost:3000/api/v1/user/1/uploadProfile
- Method:
PUT
Upload user profile picture.
- URL:
http://localhost:3000/api/v1/course?page=1&limit=3&category=Programming&level=Intermediate
- Method:
GET
View courses based on category and level with pagination.
- URL:
http://localhost:3000/api/v1/enrollCourse/
- Method:
GET
View enrolled courses.
- URL:
http://localhost:3000/api/v1/course
- Method:
POST
Create a new course.
- URL:
http://localhost:3000/api/v1/course/3
- Method:
PUT
Update a course by ID.
- URL:
http://localhost:3000/api/v1/enrollCourse/3/enroll
- Method:
PUT
Enroll in a course by ID.
- URL:
http://localhost:3000/api/v1/auth/resetPassword
- Method:
POST
Initiate password reset by providing email.
- URL:
http://localhost:3000/api/v1/auth/reset-password/38746b3920ba1119a6dfa701fc13eedd5f20a78e678f77f5869b70e1660cb6ab
- Method:
POST
Confirm password reset by providing new password.
- URL:
http://localhost:3000/api/v1/user/login
- Method:
POST
Login by providing email and password.
- URL:
http://localhost:3000/api/v1/user/refresh
- Method:
GET
Refresh authentication token.
- URL:
http://localhost:3000/api/v1/user/register
- Method:
POST
Register a new user.