GET restapi/personal/courses/{courseId}/resources/lastupdated/v1?elementType={elementType}&numberOfElements={numberOfElements}&excludeLearningPathSubElements={excludeLearningPathSubElements}
Gets the last three updated resources for a given element type in a given course for the current user
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
courseId |
The course identifier |
integer |
Required |
elementType |
The element type |
integer |
Required |
numberOfElements |
[OPTIONAL] Number of elements to return for each element type. Value can be between 1 and 10. By default, this value is 3. |
integer |
Default value is 3 |
excludeLearningPathSubElements |
[OPTIONAL] If it is true sub-elements of a learning path will not be returned. |
boolean |
Default value is False |
Body Parameters
None.
Response Information
Resource Description
EntityListOfItslearning.RestApi.Entities.Personal.Course.CourseResourceName | Description | Type | Additional information |
---|---|---|---|
EntityArray | Collection of Itslearning.RestApi.Entities.Personal.Course.CourseResource |
None. |
|
Total | integer |
None. |
|
CurrentPageIndex | integer |
None. |
|
PageSize | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "EntityArray": [ { "Title": "sample string 1", "ElementId": 2, "ElementType": "Unknown", "CourseId": 3, "Url": "sample string 4", "ContentUrl": "sample string 5", "IconUrl": "sample string 6", "Active": true, "LearningToolId": 8, "AddElementUrl": "sample string 9", "Homework": true, "Path": "sample string 11", "LearningObjectId": 12, "LearningObjectInstanceId": 13 }, { "Title": "sample string 1", "ElementId": 2, "ElementType": "Unknown", "CourseId": 3, "Url": "sample string 4", "ContentUrl": "sample string 5", "IconUrl": "sample string 6", "Active": true, "LearningToolId": 8, "AddElementUrl": "sample string 9", "Homework": true, "Path": "sample string 11", "LearningObjectId": 12, "LearningObjectInstanceId": 13 } ], "Total": 1, "CurrentPageIndex": 2, "PageSize": 3 }
application/xml, text/xml
Sample:
<EntityList xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <CurrentPageIndex>2</CurrentPageIndex> <EntityArray> <CourseResource> <Active>true</Active> <AddElementUrl>sample string 9</AddElementUrl> <ContentUrl>sample string 5</ContentUrl> <CourseId>3</CourseId> <ElementId>2</ElementId> <ElementType>Unknown</ElementType> <Homework>true</Homework> <IconUrl>sample string 6</IconUrl> <LearningObjectId>12</LearningObjectId> <LearningObjectInstanceId>13</LearningObjectInstanceId> <LearningToolId>8</LearningToolId> <Path>sample string 11</Path> <Title>sample string 1</Title> <Url>sample string 4</Url> </CourseResource> <CourseResource> <Active>true</Active> <AddElementUrl>sample string 9</AddElementUrl> <ContentUrl>sample string 5</ContentUrl> <CourseId>3</CourseId> <ElementId>2</ElementId> <ElementType>Unknown</ElementType> <Homework>true</Homework> <IconUrl>sample string 6</IconUrl> <LearningObjectId>12</LearningObjectId> <LearningObjectInstanceId>13</LearningObjectInstanceId> <LearningToolId>8</LearningToolId> <Path>sample string 11</Path> <Title>sample string 1</Title> <Url>sample string 4</Url> </CourseResource> </EntityArray> <PageSize>3</PageSize> <Total>1</Total> </EntityList>