You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add search_term to files, modules, and module item apis
test plan:
* test the new /courses/:course_id/files index endpoint,
which should return all files that belong to a course
* refer to the API documentation to test the
search_term parameter (which should work as with other
API index actions), for:
- Files (both folder and course specific)
- Modules
- Module Items
closes #CNVS-6904
Change-Id: I4c6f80792cda453d53bf48741d14e851f5040dd4
Reviewed-on: https://gerrit.instructure.com/22746
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Bracken Mosbacker <bracken@instructure.com>
Copy file name to clipboardExpand all lines: app/controllers/context_modules_api_controller.rb
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -85,6 +85,7 @@ class ContextModulesApiController < ApplicationController
85
85
# if items are not returned.
86
86
# @argument include[] ["content_details"] (Requires include['items']) Returns additional details with module items specific to their associated content items.
87
87
# Refer to the {api:Modules:Module%20Item Module Item specification} for more details.
88
+
# @argument search_term (optional) The partial name of the modules (and module items, if include['items'] is specified) to match and return.
Copy file name to clipboardExpand all lines: app/controllers/files_controller.rb
+27-7Lines changed: 27 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -116,9 +116,10 @@ def index
116
116
end
117
117
118
118
# @API List files
119
-
# Returns the paginated list of files for the folder.
119
+
# Returns the paginated list of files for the folder or course.
120
120
#
121
121
# @argument content_types[] [optional] Filter results by content-type. You can specify type/subtype pairs (e.g., 'image/jpeg'), or simply types (e.g., 'image', which will match 'image/gif', 'image/jpeg', etc.).
122
+
# @argument search_term (optional) The partial name of the files to match and return.
0 commit comments