Skip to content

API for create course content #18

@payamnj

Description

@payamnj

API view for creating a course content.
The organization_id of the course_id from the payload should be used for authorization to check if the request is from a user with organization editor or admin role or a Django super user.

payload:

  • course_id
  • priority
  • waiting_period (WaitingPeriod)
  • content (Union[Lesson, Quiz])
  • is_published (bool)

WaitingPeriod Type:

  • period (int)
  • type (Union[Date, Hour])

Lesson Type:

  • title
  • content

Quiz Type:

  • title
  • required_score
  • question (List(Question)

Question Type:

  • text
  • priority
  • options (List[Answer])

Answer Type:

  • text
  • is_correct (bool)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions