API¶
All endpoints return JSON and carry no authentication: the server is meant to listen on
localhost only. Errors are { "error": "message" } with a matching status.
| Route | Purpose |
|---|---|
GET /api/config |
The whole config, defaults filled in |
PUT /api/config |
Replace the whole config; validated, saved atomically |
GET /api/dashboards/:id/board |
Computed board; the query string is the filter set |
GET /api/dashboards/:id/inbox |
Computed inbox; same query string as the board |
GET /api/unmatched?filter= |
Open items no dashboard places; see Board |
POST /api/sync |
{ "repos"?, "full"?, "stale"? }; see Sync |
GET /api/version |
Sync status per repository plus rate-limit budget |
GET /api/labels?repos=a/b,c/d |
Cached label catalogue for the pickers |
GET /api/nav |
Nav tabs with their repos, global repos, refresh interval |
Board¶
GET /api/dashboards/:id/board?q=&assignee=&label=&type=&sort=updated&dir=desc
returns the grid as cells keyed by swimlane and column id (adjacent fluid lanes hold each item in
one of their cells per column, fluidHiddenBlocked counts what they hide), lowest, the ranked columns with the fewest cards
in each lane, the repositories
among the dashboard's items with the hidden ones among them, whose items it leaves out, and the
label catalogue used for colouring. The React island renders it as-is; all placement logic is
server-side and unit-tested.
GET /api/dashboards/:id/inbox takes the same query string and returns the inbox's cards by
group id, with the same repositories, label catalogue and sort. Each endpoint answers 404 for
a dashboard of the other type.
GET /api/unmatched?filter= returns { "items", "offer", "status" }: the open items of
the global users that no dashboard places in a cell or inbox group, most recently updated first,
as cards shaped like the board's with every label, leaving out hidden repositories; filter takes a
dashboard filter expression; offer holds the repos, labels and users the filter box suggests.
The browser keeps the repositories switched off in the landschaft_hidden_repos cookie, as
owner/repo names separated by commas. The board, inbox and unmatched routes read it from
the request and leave those repositories' items out; without the cookie every repository is on.
Sync¶
POST /api/sync syncs every configured repository in the background, or with
{ "repos": ["owner/repo"] } just those, and answers 202 with { "status", "run" } at once,
never 409; a repository that is not configured, or an unknown key, is refused with
400. "full": true refetches
every open issue instead of only those changed since the last sync. "stale": true leaves out
the repositories synced within the last minute. A call during a running
sync-all joins that run and adds its repositories to it. Follow progress by polling
GET /api/version: a repository is waiting while it is in queued and busy while it is in
inFlight, the run is done once runs
reaches run, and its failures land in lastError, each until its repository next syncs. A
background sync's failure stays in that repository's entry under repos. boot is an id the
server picks when it starts: once it differs from the one in the 202 answer, the server has
restarted, runs counts from zero again, and the run is lost. seq numbers the statuses the
server gives out: of two with the same boot, the one with the higher seq is the newer.