Skip to main content

REST API

The Artifact Bridge exposes .ctn/ artifacts via a REST API server.

Starting the Server

batho bridge serve --root /path/to/repo

Default: http://127.0.0.1:8766

Endpoints

All endpoints are mounted under /api/v1/bridge/.

Indexes

EndpointMethodDescription
/indexesGETList all indexes
/indexes/{index_id}GETGet specific index metadata
/index-metaGETCurrent index metadata

Artifacts

EndpointMethodDescription
/artifactsGETList registered artifacts
/artifacts/{artifact_type}GETRetrieve artifacts by type
/artifacts/{artifact_type}/contentGETArtifact content by path

Files & Stats

EndpointMethodDescription
/file-contentGETFile content with BSG enrichment
/statsGETRegistry statistics

Patches & Snapshots

EndpointMethodDescription
/patchesGETList patch operations
/patches/{operation_id}GETPatch operation detail
/snapshots/diffGETDiff two snapshots (base + new)