Patinas stream registry HTTP contract
Purpose
Expose a small, stable, machine-checkable registry of Patinas stream identities and how they should be presented to downstream consumers such as:
patinas-onvif-facadecapability graph and profile tokens- test-farm harnesses that must assert end-to-end wiring correctness without inference
This endpoint is served by patinas-node’s metrics/health HTTP server.
Endpoint summary
| Method | Path | Contract | Notes |
|---|---|---|---|
| GET | /streams | legacy | Unversioned array response for backward compatibility |
| GET | /streams/v1 | pinned | Versioned envelope response. This is the contract surface to depend on |
Versioning and stability rules
/streams/v1is the pinned contract. Fields documented as stable MUST NOT be removed or change meaning within v1.- New optional fields MAY be added to v1 as long as:
- existing fields keep their meaning
- defaults are well-defined when omitted
- Breaking changes require a new endpoint version, e.g.
/streams/v2. - Clients SHOULD treat unknown fields as ignorable forward-compatibility data.
GET /streams/v1
Response
- Status codes
200: always (empty registry is allowed)
- Body
- JSON object matching
docs/contracts/streams.v1.schema.json
- JSON object matching
Stable fields
api_v: integer, always1generated_at_unix_ms: integer unix milliseconds, best-effort timestampstreams[]: list of stream entriesstream_id: stable stream identifier used across Patinas roles and routingprofile_token: stable ONVIF Media profile token (consumer: ONVIF facade)mount: RTSP mount name (consumer: VMS bridge + ONVIF GetStreamUri)codec: codec label (h264orh265today)
Legacy GET /streams
Returns the same streams[] entry objects as an unversioned JSON array.
This exists to avoid breaking older integrations. New integrations MUST use /streams/v1.