QuestionProblem

Creates a new problem-solving question.

post

Creates a new problem-solving question.

Authorizations
Body
examIdstring · uuidOptional
Responses
200

OK

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

{
  "examId": "123e4567-e89b-12d3-a456-426614174000",
  "problemQuestions": [
    {
      "statementMarkdown": "text",
      "points": 1,
      "difficultyType": "Easy",
      "testCases": [
        {
          "input": "text",
          "output": "text"
        }
      ]
    }
  ]
}
[
  {
    "questionId": "123e4567-e89b-12d3-a456-426614174000",
    "examId": "123e4567-e89b-12d3-a456-426614174000",
    "questionType": "ProblemSolving",
    "statementMarkdown": "text",
    "points": 1,
    "difficultyType": "Easy",
    "testCases": [
      {
        "testCaseId": "123e4567-e89b-12d3-a456-426614174000",
        "input": "text",
        "output": "text"
      }
    ]
  }
]

Retrieves a specific problem-solving question by its unique identifier.

get

Retrieves a specific problem-solving question by its unique identifier.

Authorizations
Path parameters
questionIdstring · uuidRequired

The unique identifier of the problem-solving question to retrieve.

Responses
200

OK

application/json
get
GET /api/Questions/Problem/{questionId} HTTP/1.1
Host: 
Authorization: Bearer JWT
Accept: */*
{
  "questionId": "123e4567-e89b-12d3-a456-426614174000",
  "examId": "123e4567-e89b-12d3-a456-426614174000",
  "questionType": "ProblemSolving",
  "statementMarkdown": "text",
  "points": 1,
  "difficultyType": "Easy",
  "testCases": [
    {
      "testCaseId": "123e4567-e89b-12d3-a456-426614174000",
      "input": "text",
      "output": "text"
    }
  ]
}

Retrieves all problem-solving questions associated with a specific exam.

get

Retrieves all problem-solving 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/Problem/ByExam/{examId} HTTP/1.1
Host: 
Authorization: Bearer JWT
Accept: */*
[
  {
    "questionId": "123e4567-e89b-12d3-a456-426614174000",
    "examId": "123e4567-e89b-12d3-a456-426614174000",
    "questionType": "ProblemSolving",
    "statementMarkdown": "text",
    "points": 1,
    "difficultyType": "Easy",
    "testCases": [
      {
        "testCaseId": "123e4567-e89b-12d3-a456-426614174000",
        "input": "text",
        "output": "text"
      }
    ]
  }
]

Updates an existing problem-solving question with new details and test cases.

patch

Updates an existing problem-solving question with new details and test cases.

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

OK

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

{
  "questionId": "123e4567-e89b-12d3-a456-426614174000",
  "statementMarkdown": "text",
  "points": 1,
  "difficultyType": "Easy",
  "testCases": [
    {
      "testCaseId": "123e4567-e89b-12d3-a456-426614174000",
      "input": "text",
      "output": "text"
    }
  ]
}
{
  "questionId": "123e4567-e89b-12d3-a456-426614174000",
  "examId": "123e4567-e89b-12d3-a456-426614174000",
  "questionType": "ProblemSolving",
  "statementMarkdown": "text",
  "points": 1,
  "difficultyType": "Easy",
  "testCases": [
    {
      "testCaseId": "123e4567-e89b-12d3-a456-426614174000",
      "input": "text",
      "output": "text"
    }
  ]
}

Deletes a specific problem-solving question by its unique identifier.

delete

Deletes a specific problem-solving question by its unique identifier.

Authorizations
Path parameters
questionIdstring · uuidRequired

The unique identifier of the problem-solving question to delete.

Responses
200

OK

application/json
Responseobject
delete
DELETE /api/Questions/Problem/Delete/{questionId} HTTP/1.1
Host: 
Authorization: Bearer JWT
Accept: */*
{}

Deletes a specific test case associated with a problem-solving question.

delete

Deletes a specific test case associated with a problem-solving question.

Authorizations
Path parameters
testCaseIdstring · uuidRequired

The unique identifier of the test case to delete.

Responses
200

OK

delete
DELETE /api/Questions/Problem/TestCase/{testCaseId} HTTP/1.1
Host: 
Authorization: Bearer JWT
Accept: */*

No content