App og versjon

Laveste støttede versjon og helsesjekk, for appene og plattformen.5 operasjoner

Operasjoner

GET/healthTrenger ingen sesjon

Say which build is answering

Public. Always ok with the version and build id of the process that answered; the platform's liveness and readiness probes live beside it and are not part of the contract.

Parametre

Ingen parametre

Svar

200OK
application/jsonHealthResponse
Hoder
X-Trace-Id
— The W3C trace id of this request — the same id in the log and in the traceId of a problem. Quote it when reporting.
Server-Timing
— Where the time went: total, db;dur=…;desc="N queries", and every step the handler named (ADR-163).
X-Diagnostics
— Only when the request asked with X-Diagnostics: 1 or ?diagnostics=1: the same breakdown as one JSON object, with the trace id (ADR-163).

Eksempel

curl \
  "https://bryti.app/health"

Eksempel på svar

200application/json
{
  "status": "string",
  "version": "string",
  "build": "string"
}
GET/robots.txtTrenger ingen sesjon

Tell crawlers to stay off the API host

Public. Plain text that disallows every path and sets the content signals to no; the API has no pages for a crawler and no sitemap.

Parametre

Ingen parametre

Svar

200OK
text/plainstring
429Too many calls in the window; Retry-After says how long.
application/problem+jsonProblemDetails
Hoder
X-Trace-Id
— The W3C trace id of this request — the same id in the log and in the traceId of a problem. Quote it when reporting.
Server-Timing
— Where the time went: total, db;dur=…;desc="N queries", and every step the handler named (ADR-163).
X-Diagnostics
— Only when the request asked with X-Diagnostics: 1 or ?diagnostics=1: the same breakdown as one JSON object, with the trace id (ADR-163).
Retry-After
— Seconds to wait when a rate limit answered, or an HTTP date when the household's AI is paused. Absent when the household's AI quota for the period is used up — that resets by itself.

Eksempel

curl \
  "https://bryti.app/robots.txt"
GET/health/liveTrenger ingen sesjon

Say whether the process is up

Public. The platform's liveness probe: always ok with the version and build id of the process that answered. Infrastructure rather than contract — the apps have no reason to call it.

Parametre

Ingen parametre

Svar

200OK
application/jsonHealthResponse
Hoder
X-Trace-Id
— The W3C trace id of this request — the same id in the log and in the traceId of a problem. Quote it when reporting.
Server-Timing
— Where the time went: total, db;dur=…;desc="N queries", and every step the handler named (ADR-163).
X-Diagnostics
— Only when the request asked with X-Diagnostics: 1 or ?diagnostics=1: the same breakdown as one JSON object, with the trace id (ADR-163).

Eksempel

curl \
  "https://bryti.app/health/live"

Eksempel på svar

200application/json
{
  "status": "string",
  "version": "string",
  "build": "string"
}
GET/health/readyTrenger ingen sesjon

Say whether this build can serve

Public. The platform's readiness probe, which Railway gates deploy cutover on: ok when the database answers and this build's migrations are all applied, 503 otherwise. Infrastructure rather than contract — the apps have no reason to call it.

Parametre

Ingen parametre

Svar

200OK
Hoder
X-Trace-Id
— The W3C trace id of this request — the same id in the log and in the traceId of a problem. Quote it when reporting.
Server-Timing
— Where the time went: total, db;dur=…;desc="N queries", and every step the handler named (ADR-163).
X-Diagnostics
— Only when the request asked with X-Diagnostics: 1 or ?diagnostics=1: the same breakdown as one JSON object, with the trace id (ADR-163).

Eksempel

curl \
  "https://bryti.app/health/ready"
GET/api/v1/app/versionTrenger ingen sesjon

Get the oldest app version each platform may still use

Public, and the one path the version gate never blocks: a stopped build must be able to ask whether it is still stopped (ADR-070, #725). Both fields null for a platform means no floor. Cached for 60 seconds (Cache-Control: public, max-age=60).

Parametre

Ingen parametre

Svar

200OK
application/jsonAppVersionResponse
Hoder
X-Trace-Id
— The W3C trace id of this request — the same id in the log and in the traceId of a problem. Quote it when reporting.
Server-Timing
— Where the time went: total, db;dur=…;desc="N queries", and every step the handler named (ADR-163).
X-Diagnostics
— Only when the request asked with X-Diagnostics: 1 or ?diagnostics=1: the same breakdown as one JSON object, with the trace id (ADR-163).
429Too many calls in the window; Retry-After says how long.
application/problem+jsonProblemDetails
Hoder
X-Trace-Id
— The W3C trace id of this request — the same id in the log and in the traceId of a problem. Quote it when reporting.
Server-Timing
— Where the time went: total, db;dur=…;desc="N queries", and every step the handler named (ADR-163).
X-Diagnostics
— Only when the request asked with X-Diagnostics: 1 or ?diagnostics=1: the same breakdown as one JSON object, with the trace id (ADR-163).
Retry-After
— Seconds to wait when a rate limit answered, or an HTTP date when the household's AI is paused. Absent when the household's AI quota for the period is used up — that resets by itself.

Eksempel

curl \
  "https://bryti.app/api/v1/app/version"

Eksempel på svar

200application/json
{
  "ios": {
    "minimum": "string",
    "storeUrl": "string"
  },
  "android": {
    "minimum": "string",
    "storeUrl": "string"
  }
}

Skjema

AppVersionFloorResponse

FeltTypePåkrevd
minimumstring | nullPåkrevd
storeUrlstring | nullPåkrevd

AppVersionResponse

FeltTypePåkrevd
iosAppVersionFloorResponsePåkrevd
androidAppVersionFloorResponsePåkrevd

HealthResponse

FeltTypePåkrevd
statusstringPåkrevd
versionstringPåkrevd
buildstringPåkrevd

ProblemDetails

FeltTypePåkrevd
typestring | null—
titlestring | null—
statusinteger (int32) | null—
detailstring | null—
instancestring | null—
codestring | null—