feat(api): axum skeleton with health and OpenAPI #53
Merged
naps62-yolo
merged 2 commits from 2026-08-22 20:09:53 +01:00
issue/5-axum-skeleton into main
Labels
Clear labels
area/api
area/ci
area/compat
area/core
area/daemon
area/db
area/dl
area/indexer
area/infra
area/meta
area/parse
area/probe
area/subs
area/web
difficulty/easy
difficulty/hard
difficulty/moderate
difficulty/trivial
phase/1-skeleton
phase/2-logic
phase/3-sourcing
phase/4-movies
phase/5-ui
phase/6-tv
phase/7-people
phase/8-compat
phase/9-subtitles
type/bug
type/chore
type/feature
type/test
arr-api
CI and test harness
arr-compat
arr-core
arr-daemon
arr-db
arr-dl
arr-indexer
workspace and tooling
arr-meta
arr-parse
arr-probe
arr-subs crate: providers, extraction, translation, sync
web/
bounded, obvious approach, few files
subtle correctness or cross-cutting
multiple files, judgement, an interface to design
one file, mechanical, no design decisions
workspace, CI, config, database, empty API and SPA
parsing and policy engine, pure, no network
TMDB and Prowlarr, read-only
movies end to end
search, buckets, library views, queues
seasons, episodes, tracking, derived status
owner tags and notifications
Jellyseerr shim
build order: subtitles, DESIGN.md §15
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: yolo/arr#53
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes #5.
GET /api/healthprobes Prowlarr (/ping), Transmission (an RPC call — a409asking for a session id is a live daemon) and TMDB, concurrently, with a3s timeout each. It always answers
200; the body carriesokordegradedplus a per-upstream verdict, so a degraded service can explain itself instead
of looking like a fourth outage. A missing TMDB key is
unconfigured, not anoutage. Failure details never include the probed URL, which carries the TMDB
key in its query string.
The OpenAPI document is collected from
#[utoipa::path]annotations viautoipa_axum::routes!, so it is generated, not written.routes!does notaccept a handler without the annotation:
Served at
/api/openapi.json, browsable at/api/docs(Scalar).just gen-clientdumps the spec viaarr --openapi(no port, no upstreams)and runs
openapi-typescriptintoweb/src/api/. Output is gitignored —nothing consumes it until #6, and generated files no CI step regenerates go
stale silently.
The
web/probe in the Justfile and CI now keys onweb/package.jsonratherthan the directory, since
gen-clientcreatesweb/before the SPA exists.Verification
just cigreen: fmt, clippy-D warnings, machete, 24 tests.Not verified against the live Prowlarr or Transmission — neither answered from
this machine at the addresses in DESIGN.md §3, so the probe shapes are covered
by wiremock only.
Reviewed
2de7f88e42410a7032a6087b239c93d6dd56c118. No findings.