Skip to content

Create quiz submission API view #25

@payamnj

Description

@payamnj

The public template view for a quiz sends the user response to this API.
This is also a public view and should not have session authentication but the JWT token sent via the payload should be validated that the sent_item_id in JWT payload are signed by DJANGO_SECRET_KEY and the signature is valid.
It should also check that the enrollment status is active and the learner has not already submitted this quiz.

Payload:

  • responses: List[Response]
  • jwt: str

Response Type:

  • question_id
  • chosen_answer_id

The response should contain the score, if the user pass or not and also the required score to pass the quiz.

Response Payload:

  • passed: bool
  • score: int
  • required_score

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions