Appearance
API Calls For Learn Service
WARNING
- Implement in frontend
1. Get Status
Endpoint:
GET /learn/courses/statusExample API Call:
json
{
"Headers": {},
"Body": {}
}2. Get All Courses
Endpoint:
GET /learn/coursesExample API Call:
json
{
"Headers": {},
"Body": {}
}3. Get Course by ID with Topics Covered
Endpoint:
GET /learn/courses/:idExample API Call:
json
{
"Headers": {},
"Body": {}
}4. Enroll in a Course
Endpoint:
POST /learn/courses/enroll/:idExample API Call:
json
{
"Headers": {
"authorization": "<token>",
"user_id": "<userId>"
},
"Body": {},
"cookie": "access_token=<token>"
}5. Get Module based on id
Endpoint:
GET /learn/courses/m/:moduleIdExample API Call:
json
{
"Headers": {},
"Body": {}
}6. Complete an module
Endpoint:
POST /learn/courses/complete/m/:moduleIdWARNING
Implement in frontend
Example API Call:
json
{
"Headers": {
"authorization": "<token>",
"user_id": "<userId>"
},
"Body": {},
"cookie": "access_token=<token>"
}