Skip to content

Phase 2: metadata.json sibling endpoint for indexing #496

Closed

Description

@neuromechanist

Part of epic #449. Triggered by @bruAristimunha's request to "combine [HTTPS access] with the metadata" so external viewers (eegdash-viewer, etc.) can resolve dataset -> subjects/tasks/runs -> files in one fetch.

Scope

  • New endpoint: GET https://data.nemar.org/:datasetId/metadata.json
  • Payload combines D1 catalog (from the seed/enrich pipeline tracked in MEMORY: authors, modalities, MeSH keywords, DOI) and version list
  • Stable JSON contract; document in docs/reference/
  • Same anonymous-read access as Phase 1 (public datasets only)
  • No new data sources — reuses existing enrichment pipeline output

Coordination

Test plan

  • Unit: payload shape matches contract, missing-enrichment cases return partial payloads (no 500s)
  • E2E against nm099999: fetch metadata.json, assert authors / modalities / DOI populated after enrichment run

Activity

  1. added
    feature
    on May 14, 2026
  2. added a commit that references this issue on May 15, 2026
    bd8e59f
  3. neuromechanist commented on May 15, 2026

    @neuromechanist
    ContributorAuthor

    Shipped in PR #504 (squash-merged on epic branch at bd8e59f). Closed when epic merged to dev in PR #507 (e101294).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions