QuestionWritten

Creates a new written question.

post

Creates a new written question.

Authorizations
Body
examIdstring · uuidOptional
Responses
200

OK

application/json
post
POST /api/Questions/Written/Create HTTP/1.1
Host: 
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 155

{
  "examId": "123e4567-e89b-12d3-a456-426614174000",
  "writtenQuestions": [
    {
      "statementMarkdown": "text",
      "points": 1,
      "difficultyType": "Easy",
      "hasLongAnswer": true
    }
  ]
}
[
  {
    "questionId": "123e4567-e89b-12d3-a456-426614174000",
    "examId": "123e4567-e89b-12d3-a456-426614174000",
    "questionType": "ProblemSolving",
    "hasLongAnswer": true,
    "statementMarkdown": "text",
    "score": 1,
    "difficultyType": "Easy"
  }
]

Retrieves a specific written question by its unique identifier.

get

Retrieves a specific written question by its unique identifier.

Authorizations
Path parameters
questionIdstring · uuidRequired

The unique identifier of the written question to retrieve.

Responses
200

OK

application/json
get
GET /api/Questions/Written/{questionId} HTTP/1.1
Host: 
Authorization: Bearer JWT
Accept: */*
{
  "questionId": "123e4567-e89b-12d3-a456-426614174000",
  "examId": "123e4567-e89b-12d3-a456-426614174000",
  "questionType": "ProblemSolving",
  "hasLongAnswer": true,
  "statementMarkdown": "text",
  "score": 1,
  "difficultyType": "Easy"
}

Retrieves all written questions associated with a specific exam.

get

Retrieves all written questions associated with a specific exam.

Authorizations
Path parameters
examIdstring · uuidRequired

The unique identifier of the exam.

Responses
200

OK

application/json
get
GET /api/Questions/Written/ByExam/{examId} HTTP/1.1
Host: 
Authorization: Bearer JWT
Accept: */*
[
  {
    "questionId": "123e4567-e89b-12d3-a456-426614174000",
    "examId": "123e4567-e89b-12d3-a456-426614174000",
    "questionType": "ProblemSolving",
    "hasLongAnswer": true,
    "statementMarkdown": "text",
    "score": 1,
    "difficultyType": "Easy"
  }
]

Updates an existing written question with new details.

patch

Updates an existing written question with new details.

Authorizations
Body
questionIdstring · uuidOptional
statementMarkdownstring | nullableOptional
pointsnumber · double | nullableOptional
hasLongAnswerboolean | nullableOptional
difficultyTypestring · enumOptionalPossible values:
Responses
200

OK

application/json
patch
PATCH /api/Questions/Written/Update HTTP/1.1
Host: 
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 136

{
  "questionId": "123e4567-e89b-12d3-a456-426614174000",
  "statementMarkdown": "text",
  "points": 1,
  "hasLongAnswer": true,
  "difficultyType": "Easy"
}
{
  "questionId": "123e4567-e89b-12d3-a456-426614174000",
  "examId": "123e4567-e89b-12d3-a456-426614174000",
  "questionType": "ProblemSolving",
  "hasLongAnswer": true,
  "statementMarkdown": "text",
  "score": 1,
  "difficultyType": "Easy"
}

Deletes a specific written question by its unique identifier.

delete

Deletes a specific written question by its unique identifier.

Authorizations
Path parameters
questionIdstring · uuidRequired

The unique identifier of the written question to delete.

Responses
200

OK

delete
DELETE /api/Questions/Written/Delete/{questionId} HTTP/1.1
Host: 
Authorization: Bearer JWT
Accept: */*

No content