Skip to main content

Source provenance

Generated from apiome-rest/openapi.yaml (API version 1.719.0) — do not edit by hand. How to authenticate is on the REST API reference.

Tag: source-provenance · 1 operation

GET /v1/versions/{tenant_slug}/{project_id}/{version_record_id}/provenance​

Get the source provenance of a revision's paths, operations and components

For every path, operation and component: imported (unchanged since the import), source-edited (changed through a source apply since) or local (changed or created in Apiome), keyed by JSON Pointer with the class or path id where one exists, plus the imported file and its digest. A draft is measured against its nearest ancestor's import.

?pointer= returns only the element that owns that pointer, with an excerpt of the original import text (at most 40 lines).

Requires projects:view.

Operation id: get_source_provenance_v1_versions__tenant_slug___project_id___version_record_id__provenance_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
version_record_idpathstringyesVersion row identifier (versions.id UUID).
pointerquerystring or nullnoNarrow to the element owning this JSON Pointer.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for get the source provenance of a revision's paths, operations and components.application/json SourceProvenanceResponse
422Validation Errorapplication/json HTTPValidationError

Schemas used​

HTTPValidationError​

Validation error response emitted when request data fails schema checks.

PropertyTypeRequiredDescription
detailarray of ValidationErrornoDetail.

SourceProvenanceResponse​

A revision's source provenance.

PropertyTypeRequiredDescription
versionRecordIdstringyesVersion Record ID.
snapshotImportSnapshotOut or nullnoNull when no import in the revision's lineage was recorded: every element then reads local, except those a source apply changed.
elementsarray of ElementProvenanceOutyesElements.
preservedarray of PreservedProvenanceOutyesPreserved.
countsmap of integeryesElements per status.