Skip to content

Latest commit

 

History

History
158 lines (111 loc) · 5.17 KB

catalogs.md

File metadata and controls

158 lines (111 loc) · 5.17 KB

Catalog endpoints

Get published course

Request property Spec
Action GET /catalogs/staged/courses/courseId
Scala class GetCourse

Delete published course

One of the following permissions must hold:

  • the session user must have PublishCourses permission on the course
  • the course belongs to a legacy org, and the caller has Admin or Author role in that org
  • the course is shared on a VFO org, and the caller has AdministerOrg permission in that org
Request property Spec
Action DELETE /catalogs/staged/courses/courseId
Scala class DeleteCatalogCourse

Get published lessons

DEPRECATED

Request property Spec
Action GET /catalogs/staged/courses/courseId/lessons
Scala class GetLessons

Get published lesson

Request property Spec
Action GET /catalogs/staged/courses/courseId/lessons/lessonId
Scala class GetLesson

Get published gadget instances

Request property Spec
Action GET /catalogs/staged/courses/courseId/lessons/lessonId/gadgets
Scala class GetGadgets

Get published gadget instance

DEPRECATED

Request property Spec
Action GET /catalogs/staged/courses/courseId/lessons/lessonId/gadgets/gadgetInstanceId
Action GET /catalogs/staged/courses/courseId/gadgets/gadgetInstanceId
Scala class GetGadget

Get published course overview

DEPRECATED

Request property Spec
Action GET /catalogs/staged/courses/courseId/overview
Scala class GetOverview

Get published gadget instance config

Request property Spec
Action GET /catalogs/staged/courses/courseId/lessons/lessonId/gadgets/gadgetInstanceId/config
Action GET /catalogs/staged/courses/courseId/gadgets/gadgetInstanceId/config
Scala class GetGConfig

Replace published gadget instance config

Request property Spec
Action PUT /catalogs/staged/courses/courseId/lessons/lessonId/gadgets/gadgetInstanceId/config
Action PUT /catalogs/staged/courses/courseId/gadgets/gadgetInstanceId/config
Scala class ReplaceGConfig

Publish course

In order to be able to publish a course, at least one of the following conditions must hold:

  • the caller has the permission PublishCourses for the course
  • the course belongs to a legacy org, and the caller has either Admin or Author role in that org
  • the course is shared on a VFO org, and the caller has AdministerOrg permission in that org

The request body specifies the course ID and the revision ID. The revision must have been created earlier; see Create course revision.

Request property Spec
Action POST /catalogs/staged/courses
Body model Course revision data
Scala class AddCourseToCatalog
Status Response body spec
201 Course revision data

Delete published course

DEPRECATED

Request property Spec
Action DELETE /labs/courseId
Scala class DelistFromLabs

Get published course progress

Request property Spec
Action GET /catalogs/staged/courses/courseId/progress
Scala class GetProgress

Put published course progress

Request property Spec
Action PUT /catalogs/staged/courses/courseId/progress
Scala class ReplaceProgress

Get published course user state

** DEPRECATED **

Start published course

Request property Spec
Action POST /catalogs/staged/courses/courseId/start
Scala class StartCourse

Get published gadget instance user state

Request property Spec
Action GET /catalogs/staged/courses/courseId/lessons/lessonId/gadgets/gadgetInstanceId/userstate
Action GET /catalogs/staged/courses/courseId/gadgets/gadgetInstanceId/userstate
Scala class GetGuState

Put published gadget instance user state

Request property Spec
Action PUT /catalogs/staged/courses/courseId/lessons/lessonId/gadgets/gadgetInstanceId/userstate
Action PUT /catalogs/staged/courses/courseId/gadgets/gadgetInstanceId/userstate
Scala class ReplaceGuState

** REMOVED **

Request property Spec
Action GET /catalogs/staged/courses/courseId/state/userId
Scala class GetUserState