Merge pull request #24993 from edx/ciduarte/AA-368

AA-368: Surface resume_block in Outline Tab API
This commit is contained in:
Carla Duarte
2020-09-16 13:44:47 -04:00
committed by GitHub
2 changed files with 2 additions and 0 deletions

View File

@@ -47,6 +47,7 @@ class CourseBlockSerializer(serializers.Serializer):
'icon': icon,
'id': block_key,
'lms_web_url': block['lms_web_url'] if enable_links else None,
'resume_block': block.get('resume_block', False),
'type': block_type,
},
}

View File

@@ -81,6 +81,7 @@ class OutlineTabView(RetrieveAPIView):
xBlock on the web LMS.
children: (list) If the block has child blocks, a list of IDs of
the child blocks.
resume_block: (bool) Whether the block is the resume block
course_goals:
goal_options: (list) A list of goals where each goal is represented as a tuple (goal_key, goal_string)
selected_goal: