canvas-lms/config
Jeremy Stanley 4f40687b02 favorite courses api, closes #9178
overhaul the FavoritesController to implement an API,
and retarget the web UI on top of this API.

note: /favorites was capable of adding favorite _anythings_,
not just courses - however, in a publicly documented API,
we don't want to encourage users to start creating
favorite files or sections or discussions and then
expect these to have meaning.

it would not be much effort to generalize the API a bit
(parameterizing the object type, but limiting the
allowed types to ["Course"] for the time being) -
if we think this won't make the documentation too
awkward.  (we can, of course, make this change once
we actually _need_ it, without breaking backward
compatibility.)

test plan:
 - make sure the web UI for course favorites works;
   it has been retargeted on the API
 - view the API documentation for Favorites;
   verify that it was generated properly
 - exercise the new APIs:
   * GET /api/v1/users/self/favorites/courses
   * POST /api/v1/users/self/favorites/courses/:id
   * DELETE /api/v1/users/self/favorites/courses/:id
   * DELETE /api/v1/users/self/favorites/courses

Change-Id: Ib4b6590af0202896846a5eb75f59a8fabb95fe6c
Reviewed-on: https://gerrit.instructure.com/12032
Reviewed-by: Simon Williams <simon@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
2012-07-11 11:04:46 -06:00
..
environments switch to debugger gem for 1.9 2012-05-14 14:24:47 -06:00
initializers formatting for ICS calendar events 2012-07-02 11:05:48 -06:00
locales %-d instead of %e in date formatting 2012-06-07 10:19:22 -06:00
amazon_s3.yml.example Initial commit. 2011-01-31 18:57:29 -07:00
assets.yml fix user and group profile styles that got ruined 2012-06-22 12:06:57 -06:00
boot.rb add rails root to load path 2011-09-27 12:04:07 -06:00
build.js.erb js bundle extensions for plugins, bugfixes and DRYification 2012-06-25 10:28:49 -06:00
cache_store.yml.example support redis as well as memcache for a rails cache store 2011-07-20 14:59:03 -06:00
compass.rb there are no 'new' styles, take 2 2012-06-13 13:58:19 -06:00
cutycapt.yml.example Initial commit. 2011-01-31 18:57:29 -07:00
database.yml.example support running specs in parallel 2011-06-15 15:18:42 -06:00
database.yml.sqlite-example support running specs in parallel 2011-06-15 15:18:42 -06:00
delayed_jobs.yml.example allow disabling periodic jobs 2011-05-19 14:56:01 -06:00
domain.yml.example api: translate absolute paths to full urls with the canvas host 2012-07-02 09:53:59 -06:00
environment.rb use built-in escape_html_entities_in_json support 2012-04-27 14:22:28 -06:00
external_migration.yml.example allow migrations to work across job servers 2011-02-07 15:07:49 -07:00
facebooker.yml.example Initial commit. 2011-01-31 18:57:29 -07:00
file_store.yml.example api: translate absolute paths to full urls with the canvas host 2012-07-02 09:53:59 -06:00
incoming_mail.yml.example Handle incoming mails. Closes #4016. 2011-04-07 10:46:11 -06:00
jslint.conf add a rake canvas:check_syntax task to check for js errors 2011-04-20 08:07:30 -06:00
linked_in.yml.example Initial commit. 2011-01-31 18:57:29 -07:00
logging.yml.example allow including the PID in syslog logging 2012-02-27 12:59:47 -07:00
memcache.yml.example support redis as well as memcache for a rails cache store 2011-07-20 14:59:03 -06:00
outgoing_mail.yml.example allow for configuration of outgoing email name 2011-07-21 13:33:16 -06:00
periodic_jobs.rb process page views in parallel for multiple shards 2012-06-03 05:36:09 -06:00
periodic_jobs.yml.example allow overriding periodic jobs schedules 2012-02-01 14:01:28 -07:00
preinitializer.rb 1.9.3 fixes 2012-05-14 12:26:20 -06:00
redis.yml.example optionally track completed job stats in redis 2011-06-01 10:58:37 -06:00
routes.rb favorite courses api, closes #9178 2012-07-11 11:04:46 -06:00
saml.yml.example add support for SAML encrypted assertions; fixes #5299 2011-11-08 15:54:22 -07:00
scribd.yml.example Initial commit. 2011-01-31 18:57:29 -07:00
security.yml.example Initial commit. 2011-01-31 18:57:29 -07:00
selenium.yml.example allow specifying browser path in selenium.yml 2011-12-01 09:38:52 -07:00
session_store.yml.example make "stay logged in" use a one-time token 2011-11-22 10:15:13 -07:00
twitter.yml.example Initial commit. 2011-01-31 18:57:29 -07:00
zendesk.yml.example Minor code refactor loosely related to #8521 2012-06-25 15:10:48 -06:00