GameResult

Creates a new game result

Changed on

Creates a new result entry for a game result

post/game-results

Request

  • Base URL: http://localhost:8080/api/v1
  • URL: http://localhost:8080/api/v1/game-results
  • Auth: none declared

Request body

session_student_idinteger required

Serial-ID of the Session-Student associated with the gameplay

content_idstring uuid required

ID of the Content of the Game

time_taken_secinteger required

Number of seconds it takes to complete the game

completedboolean

Whether or not the game was completed

count_of_incorrect_attemptsinteger required

The number of incorrect attempts made during the game

incorrect_attemptsstring[]

The actual incorrect options selected in the course of the game

Example request

{
  "session_student_id": 2,
  "content_id": "123e4567-e89b-12d3-a456-426614174394",
  "time_taken_sec": 93,
  "completed": true,
  "count_of_incorrect_attempts": 3,
  "incorrect_attempts": [
    "Lijard",
    "Leopaard",
    "BARES"
  ]
}

Response

Game Result created successfully

idstring uuid required

ID of the Game Result.

session_student_idstring uuid required

ID of the Student-Session associated with the Game.

content_idstring uuid required

ID of the Content of the Game

time_taken_secinteger required

Number of seconds it takes to complete the game

completedboolean required

Whether or not the game was completed or not

count_of_incorrect_attemptsinteger required

The number of incorrect attempts made during the game

incorrect_attemptsstring[] required

The actual incorrect answers chosen during the game

created_atstring date-time required

When the game-content was created

updated_atstring date-time required

When the game-content was last updated

Example response

{
  "id": "123e4567-e89b-12d3-a456-426614174946",
  "session_student_id": "123e4567-e89b-12d3-a456-426614174946",
  "content_id": "123e4567-e89b-12d3-a456-426614174cid",
  "time_taken_sec": 93,
  "completed": true,
  "count_of_incorrect_attempts": 1,
  "incorrect_attempts": [
    "Kroookodiley"
  ],
  "created_at": "2025-09-13T17:19:00Z",
  "updated_at": "2025-09-13T17:19:00Z"
}

Changes