Files
lincodex/api/core/routes/support_case.yml
T

41 lines
2.2 KiB
YAML

get:
operationId: GetMySupportCase
summary: Read a support case of the current account.
description: |-
Requires the session cookie of a candidate or an employer account. Returns the case with its number, type, object reference, status, response target, decision, and public history. The owner reads the case whatever happened to the object since then: a revoked access, a closed invitation, or a refused test never hides the case from its author.
The case never contains the identity of a moderator, an expert, or a support agent, internal notes, evidence, assessment answers, anti-cheat or risk signals, or contact data of another person. `decision` is null until the case is `resolved`.
The history lists every public event and is never truncated: the server keeps a case within 200 events by rejecting a staff event that would leave no room for the terminal one.
The case must belong to the account of the session: a case of another account, including another member of the same organization, answers 404 not_found, the same as an unknown identifier, so identifiers cannot be probed. TASK-314 says forbidden for a foreign case URL; the contract answers 404 instead, so the client shows the same "not found" state for a foreign and an unknown case. A malformed `case_id` answers 400 validation_failed with the path pointer.
security:
- sessionCookie: []
tags:
- support
parameters:
- $ref: ../components/parameters.yml#/SupportCaseId
responses:
"200":
description: The case.
headers:
Cache-Control:
$ref: ../components/headers.yml#/CacheControlNoStore
content:
application/json:
schema:
$ref: ../components/schemas.yml#/SupportCase
examples:
manual_assessment_created:
$ref: ../components/examples.yml#/SupportCaseManualAssessmentCreated
grade_appeal_resolved:
$ref: ../components/examples.yml#/SupportCaseGradeAppealResolved
"400":
$ref: ../components/responses.yml#/ValidationFailed
"401":
$ref: ../components/responses.yml#/Unauthenticated
"404":
$ref: ../components/responses.yml#/NotFound
default:
$ref: ../components/responses.yml#/Problem