35 lines
2.2 KiB
YAML
35 lines
2.2 KiB
YAML
get:
|
|
operationId: GetMyCardPreview
|
|
summary: Preview the anonymous card that organizations would read.
|
|
description: |-
|
|
Requires the session cookie of a candidate account. Returns the card exactly as an organization that the candidate does not hide the profile from would read it now, built from the current profile, the current publication, and the consent ledger. The response is `Cache-Control: no-store`.
|
|
|
|
The preview is a private read for the candidate: it creates no view, leaves no access record, and is never shown to an organization. While the profile is closed `card` is null. `card` is `AnonymousCardContent`, whose schema reaches no private profile schema, no contact, and no identifier of the candidate: it has no name, email, phone, Telegram name, employer, salary figure, or account or profile identifier, and each property is null when it is not published or has no value, so a reader cannot tell the two apart. Only the fields in `fields` are filled, and only with values that the candidate confirmed: an unconfirmed suggestion and an unknown value never appear. A free text value that looks like a contact (an email address, a phone number, a URL, a Telegram link, an @handle) is dropped from the card, so the preview shows exactly what an organization would read. The self-assessed grade is not a category and never appears; categories come only from assessment results.
|
|
|
|
A missing, unknown, expired, or revoked session answers 401 unauthenticated; an employer account answers 403 forbidden.
|
|
security:
|
|
- sessionCookie: []
|
|
tags:
|
|
- privacy
|
|
responses:
|
|
"200":
|
|
description: The anonymous card as organizations would read it now.
|
|
headers:
|
|
Cache-Control:
|
|
$ref: ../components/headers.yml#/CacheControlNoStore
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: ../components/schemas.yml#/CardPreview
|
|
examples:
|
|
published:
|
|
$ref: ../components/examples.yml#/PublishedCardPreview
|
|
closed:
|
|
$ref: ../components/examples.yml#/ClosedCardPreview
|
|
"401":
|
|
$ref: ../components/responses.yml#/Unauthenticated
|
|
"403":
|
|
$ref: ../components/responses.yml#/Forbidden
|
|
default:
|
|
$ref: ../components/responses.yml#/Problem
|