Get published bundle
GET/api/v1/applications/{applicationId}/bundles/{locale}
The published translations of a locale. Called by consumer applications with a service account, at startup and when the locale changes. Pass the ETag of a cached bundle as If-None-Match to get 304 Not Modified while it is still current. Drafts are never part of a bundle.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”Lowercase slug that identifies an application
Identifier of the application, a lowercase slug chosen at creation (match-tracker). Consumer applications configure it, so it never changes.
BCP 47 language tag (language, optionally a script and a region)
BCP 47 language tag of the locale (nl, en-GB)
Header Parameters
Section titled “Header Parameters”ETag of a bundle the client already has. When it is still the published version the response is 304 Not Modified without a body.
Responses
Section titled “ Responses ”The published translations of the locale
The published translations of one locale. Holds only the keys that have a published translation; a consumer keeps its built-in text for every other key.
object
Lowercase slug that identifies an application
BCP 47 language tag (language, optionally a script and a region)
Release that published this bundle
Date-time (ISO 8601)
Message key to text
object
Text of a message in ICU MessageFormat: plain text, {name}, {n, number}, {d, date, short}, {n, plural, one {...} other {...}} and {x, select, a {...} other {...}}. It may only use the arguments of its key.
Headers
Section titled “Headers”Version of the bundle, use as If-None-Match on a subsequent GET
The bundle of the If-None-Match header is still the published version
Headers
Section titled “Headers”Version of the bundle
Request validation failed
object
Canonical error type identifier (URI). The values are the problem types of stratastax-http’s problem-core; stratastax-codegen fails the build of a service when the two disagree.
Short, human-readable summary
HTTP status code
Human-readable explanation
URI of the request that caused the error
object
Field or property that failed validation
Machine-readable validation error code, e.g. REQUIRED, VALUE_TOO_LONG, INVALID_FORMAT, OUT_OF_RANGE. Canonical list is maintained per resource in the documentation.
Human readable validation message
The actual value that failed validation. Omitted if the value is sensitive.
Examples
{ "type": "https://errors.stratastax.dev/validation", "title": "Bad Request", "status": 400, "detail": "Received invalid request data", "errors": [ { "field": "displayName", "code": "REQUIRED", "message": "missing required field" } ]}{ "type": "https://errors.stratastax.dev/validation", "title": "Bad Request", "status": 400, "detail": "Received invalid request data", "errors": [ { "field": "participants[2].ghostPlayerId", "code": "DUPLICATE_GHOST_PLAYER", "message": "the ghost player already takes part in this match" } ]}{ "type": "https://errors.stratastax.dev/validation", "title": "Bad Request", "status": 400, "detail": "Request validation failed", "errors": [ { "field": "query", "code": "INVALID_SEARCH", "message": "'nonsense' is not a filterable field" } ]}Authentication required or token invalid
object
Canonical error type identifier (URI). The values are the problem types of stratastax-http’s problem-core; stratastax-codegen fails the build of a service when the two disagree.
Short, human-readable summary
HTTP status code
Human-readable explanation
URI of the request that caused the error
Examples
{ "type": "https://errors.stratastax.dev/authentication", "title": "Unauthorized", "status": 401, "detail": "Authentication required"}Insufficient permissions
object
Canonical error type identifier (URI). The values are the problem types of stratastax-http’s problem-core; stratastax-codegen fails the build of a service when the two disagree.
Short, human-readable summary
HTTP status code
Human-readable explanation
URI of the request that caused the error
Examples
{ "type": "https://errors.stratastax.dev/authorization", "title": "Access denied", "status": 403, "detail": "Insufficient permissions"}Resource not found
object
Canonical error type identifier (URI). The values are the problem types of stratastax-http’s problem-core; stratastax-codegen fails the build of a service when the two disagree.
Short, human-readable summary
HTTP status code
Human-readable explanation
URI of the request that caused the error
Examples
{ "type": "https://errors.stratastax.dev/not-found", "title": "Resource not found", "status": 404, "detail": "The requested resource could not be found"}Unexpected server error
object
Canonical error type identifier (URI). The values are the problem types of stratastax-http’s problem-core; stratastax-codegen fails the build of a service when the two disagree.
Short, human-readable summary
HTTP status code
Human-readable explanation
URI of the request that caused the error
Examples
{ "type": "https://errors.stratastax.dev/internal", "title": "Oops! Something went wrong.", "status": 500, "detail": "Try again later."}