Course Modules


List of all course modules with list of course documents in each module.

QueryArguments

courseID integer The course id.
subjectID integer The course subject id.
enrollmentID integer The user enrollment id.
Definition:
 POST https://app.alphalearn.com/webapi/v1/course-modules 
Example Request:
 curl -X POST \
  https://app.alphalearn.com/webapi/v1/course-modules \
  -H 'authorization: Bearer {Authorization Token}' \
  -F {
      enrollmentID={enrollmentID},
      courseID={courseID},
      subjectID={subjectID},
    }
Example Response:
200 OK
{
    "success": true,
    "data": {
        "modules": [
            {
                "chapterID": "integer",
                "module": "string",
                "modaltitle": "string",
                "modaldescription": "string",
                "isSequenceDate": "boolean",
                "courseDocuments": [
                    {
                        "doccontent": "string",
                        "checked": "boolean",
                        "documentID": "integer",
                        "documentTypeID": "integer",
                        "disableDocument": "boolean",
                        "icon": "string",
                        "color": "string"
                    }, 
                ]
            },  
    ],     
   }
}