canvas-lms/config
Matthew Berns 88805f4b1e add new Rubric API endpoint
closes OUT-358
refs PFS-4925

test plan:
- review new API documentation
- create some rubrics in the context of an account
- create some rubrics in the context of a course
- attach the rubrics to some assignments
- for at least one assignment, enable peer reviews
  and assign some students
- as a teacher, assess the assignment
- as a student, complete some peer reviews
- go to the following endpoints

  api/v1/accounts/{account_id}/rubrics
  - should list all rubrics in the given account

  api/v1/courses/{course_id}/rubrics
  - should list all rubrics in the given course

  api/v1/accounts/{account_id}/rubrics/{rubric_id}
  - should list the specific account rubric

  api/v1/courses/{course_id}/rubrics/{rubric_id}
  - should list the specific course rubric

  api/v1/courses/{course_id}/rubrics/{rubric_id}?include=assessments
  - should include all assessments for the rubric

  api/v1/courses/{course_id}/rubrics/{rubric_id}?include=graded_assessments
  - should include only the assessment(s) used for grading the rubric

  api/v1/courses/{course_id}/rubrics/{rubric_id}?include=peer_assessments
  - should include only the peer_assessment(s) for the rubric

- when getting assessments, add the following parameters

  &style=full
  should return the full data hash associated with returned assessments

  &style=comments_only
  should only return the comments from an assessment's data hash

- when entering in invalid values for include or style, an error
  should be returned that provides you with the valid values for
  the respective parameters

Change-Id: Ib46900d4c58e06d6fa2771614ba2efa11d3b5b6c
Reviewed-on: https://gerrit.instructure.com/87702
Tested-by: Jenkins
Reviewed-by: Michael Brewer-Davis <mbd@instructure.com>
QA-Review: Alex Ortiz-Rosado <aortiz@instructure.com>
Product-Review: Josh Simpson <jsimpson@instructure.com>
2016-08-26 18:53:43 +00:00
..
environments avoid port conflicts for remote debugging 2016-06-02 15:37:32 +00:00
initializers spec: transactional-ize core canvas specs, refs SD-1422 2016-08-19 21:35:26 +00:00
locales update es translation 2016-08-24 05:16:54 -06:00
saml configure SAML via metadata URI 2016-05-27 18:31:08 +00:00
amazon_s3.yml.example add non-US region example to amazon_s3.yml.example 2013-03-25 20:15:44 +00:00
application.rb Include CYOE data in Modules API 2016-08-25 22:17:01 +00:00
boot.rb cleanup refactor of Rubocop's Lint/DeprecatedClassMethods 2015-04-28 18:38:24 +00:00
bounce_notifications.yml.example bounced email handling 2014-09-04 16:48:13 +00:00
brandable_css.yml remove k12 css variant since we don't use it for now 2015-07-31 21:00:27 +00:00
browsers.yml update browsers in browsers.yml - to the safest level 2016-07-15 21:23:33 +00:00
build.js.erb move "old_unsupported_react" to client_apps 2016-08-05 19:26:33 +00:00
cache_store.yml.example sanity check cache_store.yml and warn of misconfig 2014-03-05 18:48:19 +00:00
canvas_cdn.yml.example A new way of doing css/sass & New Canvas Theme Editor 2015-07-02 22:42:18 +00:00
canvas_rails4_2.rb remove rails 3 support 2015-12-23 21:36:43 +00:00
cassandra.yml.example update cassandra.yml.example docs for clarity 2014-06-04 16:53:35 +00:00
conditional_release.yml.example Include CYOE data in Modules API 2016-08-25 22:17:01 +00:00
consul.yml.example ditch cdn_host for rich content service development 2016-05-06 18:02:57 +00:00
cutycapt.yml.example Initial commit. 2011-01-31 18:57:29 -07:00
database.yml.example remove queue from production database.yml.example 2016-01-26 18:07:23 +00:00
database.yml.travis Added .travis.yml 2014-01-15 20:30:11 +00:00
delayed_jobs.yml.example get rid of jobs max run time 2013-10-23 15:46:52 +00:00
domain.yml.example api: translate absolute paths to full urls with the canvas host 2012-07-02 09:53:59 -06:00
dynamic_settings.yml.example allow a file consul fallback for OSS users 2016-03-18 21:04:03 +00:00
environment.rb remove deprecation multiple warning suppressor 2015-04-17 15:24:35 +00:00
external_migration.yml.example allow migrations to work across job servers 2011-02-07 15:07:49 -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
fontcustom.yml mv public/font public/fonts (so it works with asset pipeline) 2015-06-08 18:02:55 +00:00
incoming_mail.yml.example improve robustness of incoming message processor 2013-04-29 14:47:09 +00:00
jslint.conf make jslint settings more sane 2012-08-17 11:04:40 -06:00
linked_in.yml.example Initial commit. 2011-01-31 18:57:29 -07:00
logging.yml.example allow setting the log level in logging.yml for syslog 2012-09-13 09:55:09 -06:00
marginalia.yml.example record migration name in marginalia comment 2016-03-09 04:00:47 +00:00
memcache.yml.example support redis as well as memcache for a rails cache store 2011-07-20 14:59:03 -06:00
notification_failures.yml.example Add more robust notification service config 2016-02-17 04:45:29 +00:00
notification_service.yml.example Add more robust notification service config 2016-02-17 04:45:29 +00:00
outgoing_mail.yml.example add multiple reply-to support to outgoing mail. 2013-02-22 14:02:27 -07:00
periodic_jobs.yml.example allow overriding periodic jobs schedules 2012-02-01 14:01:28 -07:00
raven.yml.example get sentry into canvas 2015-04-13 22:26:15 +00:00
redis.yml.example spec: enable redis on travis 2014-01-16 22:03:30 +00:00
routes.rb add new Rubric API endpoint 2016-08-26 18:53:43 +00:00
saml.yml.example support multiple SAML private keys for decryption 2013-03-15 14:31:57 -06:00
security.yml.example Use key for hashing tokens 2015-09-15 16:20:35 +00:00
selenium.yml.example run canvas specs on saucelabs 2016-06-13 16:06:49 +00:00
session_store.yml.example update the example session_store.yml 2014-01-21 02:15:18 +00:00
statsd.yml.example optionally don't append hostname to statsd keys 2013-04-04 19:14:49 +00:00
styleguide.yml force add config files that didn't make it 2013-04-10 18:50:05 +00:00
testem.yml force add config files that didn't make it 2013-04-10 18:50:05 +00:00
testrail.yml.example adding tests, plus testrail reporting 2014-07-31 16:32:16 +00:00
twilio.yml.example Send messages via Twilio 2015-09-14 15:46:23 +00:00
twitter.yml.example Initial commit. 2011-01-31 18:57:29 -07:00