exercise-services-client

* POST /api/v0/exercise-services/client/exercises/:id/submit * * Accepts an exercise submission from the user. A `file` answer names files previously stored * through this exercise's `files` endpoint, in the order they are to be graded; those files are the * answer. An answer that names no files is a JSON answer, carried in `data_json`.

Changed on
post/api/v0/exercise-services/client/exercises/{id}/submit

Request

  • The document declares no server URL.
  • Auth: HTTP bearer

Path parameters

idstring uuid required

Exercise id

Headers

X-Client-Versionstring nullable

Optional client version; obsolete clients get 426

Request body

answer_kind'json' | 'file'

Which of the two representations an answer is: the JSON in data_json, or the files in data_files. A request that omits it means Json.

data_filesstring[] nullable

Ids from this exercise's files endpoint, in the order they are to be graded and displayed. A file answer must name at least one, and every id must have been uploaded by this user for this exercise.

data_jsonunknown
exercise_slide_idstring uuid required
exercise_task_idstring uuid required

Response

The created submission, identified by both its task and slide submission ids

slide_submission_idstring uuid required
task_submission_idstring uuid required

Changes

    • ○

      the response property became required for the status

    • ○

      the response property became required for the status

    • ○

      the response property became required for the status

    • ○

      the response property became required for the status

    • ○

      the response property became required for the status

    • ○

      the response property became required for the status

    • ○

      the response property became required for the status

    • ○

      the response property became required for the status

    • ○

      the response property became required for the status

    • ○

      the response property became required for the status

    • ○

      the response property became required for the status

    • ○

      the response property became required for the status

    • ○

      the response property became required for the status

    • ○

      the response property became required for the status

    • ○

      the response property became required for the status

    • ●

      removed the request property

    • ○

      added the new optional request property

    • ○

      added the new optional request property

    • ○

      added the new optional request property