All routes start with /api
* are protected routes
* [Get] /user
Get current user data from token
-
[GET] /course
get all course name, tags, avg rating and instructor -
?* [GET] /course/:courseID
Get course content -
* [PUT] /course/:courseID
Update last studied -
* [Post] /course
Add course data -
* [PATCH] /course/:courseID
update course
-
* [DEL] /course/:courseID
Delete a course -
* [PUT] /course/:courseID /enroll
Enroll current user to course. ( add course to user, user to course, new courseProgress object ) -
* [PUT] /course/review
Add/update review to course -
* [PUT] /course/:courseID/topic
Add topic to course -
* [DEL] /course/:courseID/topic/:topicID
Delete topic
-
* [GET] /topic/:topicID
Get topic -
* [PUT] /topic/:topicID/completed
Update progress -
* [PUT] /topic/:topicID
Update a topic -
* [PUT] /topic/:topicID/doubt
Add doubt -
* [DELETE] /topic/:topicID/doubt/:doubtID
Delete doubt -
* [PUT] /topic/core-resource
Add single / array of core-resources. Body should be like,
[
{
type,
payload: {},
pos
}
];
-
* [DEL] /topic/core_resource/:resID
Delete resource -
* [PUT] /topic/:topicID/resource_dump
Add a resource -
* [DEL] /topic/rescource_dump/:id
Delete resource
-
* [PUT] /doubt/:doubtID/like
Add a like -
* [DEL] /doubt/:doubtID/like
Delete like -
* [PUT] /doubt/:doubtID/reply
Add reply -
* [DEL] /doubt/:doubtID/reply/:replyID
Delete reply
-
* [GET] /topic/:topicID/test/:testID
Get test content -
* [Post] /topic/:topicID/test/:testID
Save test score