GET api/users/user/{userId}/getCourses
Get user courses.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
userId |
A user id. |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of UserCourseName | Description | Type | Additional information |
---|---|---|---|
IsEnrolled |
Is learner enrolled on this course. |
boolean |
None. |
CourseGroup |
Course Group |
CourseGroup |
None. |
CourseName |
Course Name |
string |
None. |
CourseSubject |
Course Subject |
string |
None. |
CourseIconUrl |
Course Icon |
string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "IsEnrolled": true, "CourseGroup": { "CourseGroupId": 1, "CourseGroupName": "sample string 2", "CourseGroupIconUrl": "sample string 3" }, "CourseName": "sample string 2", "CourseSubject": "sample string 3", "CourseIconUrl": "sample string 4" }, { "IsEnrolled": true, "CourseGroup": { "CourseGroupId": 1, "CourseGroupName": "sample string 2", "CourseGroupIconUrl": "sample string 3" }, "CourseName": "sample string 2", "CourseSubject": "sample string 3", "CourseIconUrl": "sample string 4" } ]
application/xml, text/xml
Sample:
<ArrayOfUserCourse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <UserCourse> <CourseName>sample string 2</CourseName> <CourseSubject>sample string 3</CourseSubject> <CourseIconUrl>sample string 4</CourseIconUrl> <CourseGroup> <CourseGroupId>1</CourseGroupId> <CourseGroupName>sample string 2</CourseGroupName> <CourseGroupIconUrl>sample string 3</CourseGroupIconUrl> </CourseGroup> <IsEnrolled>true</IsEnrolled> </UserCourse> <UserCourse> <CourseName>sample string 2</CourseName> <CourseSubject>sample string 3</CourseSubject> <CourseIconUrl>sample string 4</CourseIconUrl> <CourseGroup> <CourseGroupId>1</CourseGroupId> <CourseGroupName>sample string 2</CourseGroupName> <CourseGroupIconUrl>sample string 3</CourseGroupIconUrl> </CourseGroup> <IsEnrolled>true</IsEnrolled> </UserCourse> </ArrayOfUserCourse>