canvas-lms/lib/api
Michael Brewer-Davis 54280153ec update api for mobile
- change assignment model to full assignment json
- change select_mastery_path to return context module items in
  addition to assignments

closes CYOE-329

Test plan:
1.  Create a CYOE rule that includes an OR condition.  Include
    the trigger assignment and some of the follow on assignments
    in a module
2.  Grade a student so that they fall in the OR range
3.  As the student, hit the modules API to determine
    which assignment sets are relevant:
      /api/v1/courses/:course_id/modules/:module_id/items?includes[]=mastery_paths
    Look for the conditional release rules of the trigger assignment
4.  Verify that the follow on assignments listed show their
    submission_types attribute as an array
5.  Select a mastery path as the student
      /api/v1/courses/:course_id/modules/:module_id/items/:trigger_item_id/select_mastery_path?assignment_set_id=:assignment_set_id
6.  Verify that the response includes:
    - a meta tag specifying that the primary content is the assignments
    - an assignments tag listing all assignments in the assignment set
      (including those w/o modules)
    - an items tag listing all context module items related to those
      assignments
7.  Verify that the UI version of the above (visiting context modules
    page with a "select assignment set" block showing, select the
    assignment set from the choice page) works as expected

Change-Id: Iab652af64fa02a76e896bfc0a21f882ad51319ab
Reviewed-on: https://gerrit.instructure.com/91457
Tested-by: Jenkins
Reviewed-by: Christian Prescott <cprescott@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
Product-Review: Michael Brewer-Davis <mbd@instructure.com>
2016-10-07 16:16:05 +00:00
..
html correctly scope rce urls with host to context 2016-09-23 20:56:58 +00:00
v1 update api for mobile 2016-10-07 16:16:05 +00:00
errors.rb fix account_authorization_config api errors for rails 3 2014-02-27 15:36:43 +00:00