Files
mesh/testdata/package_paths.json
T
waozi fa98f4f6d2 Quote each feedback reply's report title for apps
Apps show a developer's reply like a chat reply, quoting the feedback it
answers. The replies page now carries the report's title (still without
its message or diagnostics) for the single reply and for added replies.

Also bring testdata/package_paths.json up to date with the history asset
described in c80d978, which the OpenAPI baseline test compares.
2026-10-18 22:33:10 -03:00

150 lines
4.1 KiB
JSON

{
"/api/v1/packages/{app_id}/{asset}": {
"get": {
"summary": "Read an app's desktop portable release",
"parameters": [
{
"name": "app_id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "asset",
"in": "path",
"required": true,
"description": "latest or the release SHA-256 followed by .zib",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Signed release metadata or the portable bundle"
},
"403": {
"description": "The artifact is gated; v2 serves it with a grant"
},
"404": {
"description": "App or release is unavailable"
}
}
}
},
"/api/v2/packages/{app_id}/{asset}": {
"get": {
"summary": "Read an app's portable release for current hosts",
"parameters": [
{
"name": "app_id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "asset",
"in": "path",
"required": true,
"description": "latest, history (up to three signed releases), or the release SHA-256 followed by .zib",
"schema": {
"type": "string"
}
},
{
"name": "host_api",
"in": "query",
"description": "For latest/history: the newest host interface the app runs; an older archived release is served when the latest needs a newer one",
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 65535
}
},
{
"name": "module_api",
"in": "query",
"description": "For latest/history: the module interface the app requires",
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 65535
}
},
{
"name": "bucket",
"in": "query",
"description": "For latest/history: the device's stable rollout bucket; a staged release reaches buckets below its share until it expires. Apps without a bucket count as 99",
"schema": {
"type": "integer",
"minimum": 0,
"maximum": 99
}
}
],
"responses": {
"200": {
"description": "Signed release metadata or the portable bundle"
},
"400": {
"description": "Invalid interface version or bucket"
},
"403": {
"description": "The artifact is gated; request it with a grant"
},
"404": {
"description": "App or release is unavailable, or no release fits the app"
}
}
}
},
"/api/v2/packages/{app_id}/{asset}/{grant}": {
"get": {
"summary": "Read a gated portable artifact with a download grant",
"parameters": [
{
"name": "app_id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "asset",
"in": "path",
"required": true,
"description": "The artifact SHA-256 followed by .zib",
"schema": {
"type": "string"
}
},
{
"name": "grant",
"in": "path",
"required": true,
"description": "An unexpired grant from POST /api/v1/unlocks/grant for the artifact's product. Artifacts that are not gated ignore it",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "The portable bundle; private, no-store when gated"
},
"403": {
"description": "The artifact is gated and the grant is missing, expired, forged or for another product"
},
"404": {
"description": "App or artifact is unavailable"
}
}
}
}
}