Skip to content

Expose dataset through the Collection API - #1270

Merged
Ndpnt merged 19 commits into
mainfrom
expose-dataset-through-api
Sep 16, 2026
Merged

Ndpnt merged 19 commits into
mainfrom
expose-dataset-through-api

Conversation

@clementbiron

Copy link
Copy Markdown
Member

Implements the RFC #1262: each instance stores its latest dataset locally and exposes it through the Collection API, becoming the authoritative source of its own dataset instead of relying solely on third-party publications.

  • ota dataset writes the archive into the directory defined by the new dataset.storagePath configuration option, atomically, alongside a metadata.json sidecar describing it (title, license, dates, counts, size, checksum).
  • GET /dataset/latest returns the metadata with an absolute downloadURL; GET /dataset/latest/download streams the archive with HTTP caching (ETag/Last-Modified, conditional requests) and resumable downloads (Range).
  • The local copy is now the reference dataset served by the API, so --remove-local-copy is removed and the archive is kept after publishing; existing publications to GitHub, GitLab and data.gouv.fr are unaffected and become downstream consumers of this local store.

@clementbiron
clementbiron requested a review from Ndpnt September 9, 2026 15:05
@Ndpnt
Ndpnt merged commit 9b52655 into main Sep 16, 2026
8 checks passed
@Ndpnt
Ndpnt deleted the expose-dataset-through-api branch September 16, 2026 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants