canvas-lms/lib/api/v1
Ethan Vizitei f1db3089f2 refs #11479 send the syllabus body through the
api filter in the course api

The above was really a 2-line change, the 
syllabus body sometimes can have links in it
and so it needed to be sent through the
'api_user_content' method in order to get
the right host tacked on to the links rather
than having relative urls.

Also took the time to refactor out course json
generation into it's own class to make 
understanding the hash building a little easier
when reading the code.  Although much of this
could certainly have simple been written on 
the course api module, I was wary of polluting 
the namespace of anything else it got included in.
This way all the small methods involved in
building the hash for the JSON are all 
encapsulated inside the CourseJson object.
This is an incremental refactor, 
there's certainly more that could be done, 
but I didn't want to spend too much time on it
since the bug itself was so small.


Change-Id: I158bbd3c9c5a96328eb86a3ac639ade0b3437516
Reviewed-on: https://gerrit.instructure.com/14966
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Ethan Vizitei <ethan@12spokes.com>
2012-11-07 13:25:38 -07:00
..
account.rb add :read_sis as an account level permission that can be granted to teachers 2012-02-29 14:21:15 -07:00
account_authorization_config.rb allow multiple saml auth configs and full aac api 2012-10-03 15:23:56 -06:00
account_report.rb adding account report api closes #9456 2012-07-13 15:34:48 -06:00
admin.rb Roles API; refs #6182 2011-12-21 09:27:47 -07:00
assignment.rb VDD: overrides API 2012-11-05 15:05:37 -07:00
assignment_override.rb VDD: overrides API 2012-11-05 15:05:37 -07:00
attachment.rb submit to scribd unless a crocodoc document is present 2012-09-28 21:28:00 -06:00
avatar.rb bigger profile pictures 2012-08-21 16:25:55 -06:00
calendar_event.rb sanitize user content in calendar api, fixes #9479 2012-07-24 09:32:12 -06:00
collection.rb items and followers counts for collections 2012-06-18 11:04:58 -06:00
communication_channel.rb api: convert communication channels to @object/@returns 2012-08-28 11:20:13 -06:00
context.rb fix showing discussion entries from collection items in stream api 2012-08-03 09:05:47 -06:00
context_module.rb change module api field names to match convention 2012-09-17 12:29:17 -06:00
conversation.rb refactor conversation json, fix some API comments 2012-09-14 14:58:42 -06:00
course.rb refs #11479 send the syllabus body through the 2012-11-07 13:25:38 -07:00
course_json.rb refs #11479 send the syllabus body through the 2012-11-07 13:25:38 -07:00
developer_key.rb developer keys mgmt page 2012-07-18 09:13:52 -06:00
discussion_topics.rb fix api paginatations that were returning a path, not an absolute url 2012-10-18 14:59:18 -06:00
external_feeds.rb fix up announcement external feeds API 2012-08-30 12:39:17 -06:00
external_tools.rb fix api paginatations that were returning a path, not an absolute url 2012-10-18 14:59:18 -06:00
favorite.rb favorite courses api, closes #9178 2012-07-11 11:04:46 -06:00
folders.rb fix return type for locked_for_user in folders api 2012-08-17 08:56:00 -06:00
group.rb new profile page closes #9369 2012-07-27 10:56:10 -06:00
json.rb discussion topics materialized view api, refs #7567 2012-03-22 12:49:49 -06:00
media_object.rb Use html5 to show videos by default & show subtitles 2012-10-11 12:28:48 -06:00
notification.rb Rewrite of the Notification Preferences page. Closes #8066, Closes #9400 2012-07-25 10:04:36 -06:00
notification_policy.rb Update NotificationPolicy setting for all notifications in category. 2012-07-31 09:55:15 -06:00
outcome.rb Nested outcomes UI, closes #9158 2012-10-25 11:03:21 -06:00
page_view.rb cassandra store for page views 2012-10-24 17:23:56 -06:00
pseudonym.rb add :read_sis as an account level permission that can be granted to teachers 2012-02-29 14:21:15 -07:00
quiz.rb add API endpoint to list quizzes, closes: #11441 2012-10-25 09:32:58 -06:00
role.rb add :read_sis as an account level permission that can be granted to teachers 2012-02-29 14:21:15 -07:00
section.rb add api to get section info fixes #5885 2012-07-10 12:04:03 -06:00
stream_item.rb fix showing discussion entries from collection items in stream api 2012-08-03 09:05:47 -06:00
submission.rb add grader_id to submissions api closes #11127 2012-10-08 09:57:14 -06:00
tab.rb add api for listing visible navigation tabs 2012-10-23 10:13:20 -06:00
todo_item.rb make needs-grading counts respect sections; fixes #11001 2012-10-09 08:44:26 -06:00
user.rb cassandra store for page views 2012-10-24 17:23:56 -06:00
user_follow.rb following models and API, closes #8713 2012-06-05 13:11:20 -06:00
user_profile.rb new profile page closes #9369 2012-07-27 10:56:10 -06:00
wiki_page.rb wiki pages api; fixes #8140 2012-08-10 15:44:14 -06:00