Skip to content

Commit c396566

Browse files
feat(cdn): add versioned artifact endpoints (#7400)
Co-authored-by: Adam Benhassen <adambenhassen@hotmail.com>
1 parent 1cd44f6 commit c396566

File tree

13 files changed

+1133
-15
lines changed

13 files changed

+1133
-15
lines changed

.changeset/two-baboons-tie.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'hive': minor
3+
---
4+
5+
Add support for retrieving CDN artifacts by version ID.
6+
7+
New CDN endpoints allow fetching schema artifacts for a specific version:
8+
- `/artifacts/v1/:targetId/version/:versionId/:artifactType`
9+
- `/artifacts/v1/:targetId/version/:versionId/contracts/:contractName/:artifactType`
10+
11+
Artifacts are now written to both the latest path and a versioned path during schema publish, enabling retrieval of historical versions.
12+
13+
CDN artifact responses now include the `x-hive-schema-version-id` header, providing the version ID of the schema being served.

0 commit comments

Comments
 (0)