caccl-api
Advanced tools
Comparing version 1.0.42 to 1.0.43
@@ -5,2 +5,6 @@ # Changelog | ||
## [1.0.44] - 10/15/19 | ||
Added support for listing students in sections | ||
## [1.0.42] - 09/28/19 | ||
@@ -7,0 +11,0 @@ |
@@ -8,2 +8,3 @@ /** | ||
const prefix = require('../../common/prefix'); | ||
const utils = require('../../common/utils'); | ||
@@ -28,2 +29,4 @@ class Section extends EndpointCategory { | ||
* @param {number} options.courseId - Canvas course Id to query | ||
* @param {boolean} [options.includeStudents] - if true, the list of students | ||
* from each section are included | ||
* @return {Promise.<Object[]>} list of Canvas Sections {@link https://canvas.instructure.com/doc/api/sections.html#Section} | ||
@@ -35,2 +38,7 @@ */ | ||
method: 'GET', | ||
params: { | ||
include: utils.genIncludesList({ | ||
students: options.includeStudents, | ||
}), | ||
}, | ||
}); | ||
@@ -50,2 +58,4 @@ }; | ||
* @param {number} options.sectionId - Section Id to retrieve | ||
* @param {boolean} [options.includeStudents] - if true, the list of students | ||
* in the section are included | ||
* @return {Promise.<Object>} Canvas Section {@link https://canvas.instructure.com/doc/api/sections.html#Section} | ||
@@ -57,2 +67,7 @@ */ | ||
method: 'GET', | ||
params: { | ||
include: utils.genIncludesList({ | ||
students: options.includeStudents, | ||
}), | ||
}, | ||
}); | ||
@@ -59,0 +74,0 @@ }; |
{ | ||
"name": "caccl-api", | ||
"version": "1.0.42", | ||
"version": "1.0.43", | ||
"description": "A class that defines a set of smart Canvas endpoints that actually behave how you'd expect them to.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3403531
44694