doxa-maps/plugin-designs/template-bundle/src/api
2026-09-17 18:18:18 +00:00
..
README.md Rename app-profiles -> plugin-designs; build green under new naming (load-bearing paths updated, guards pass) 2026-09-17 18:18:18 +00:00

src/api/ — this map's data wiring

Declare which data source this map reads. The library owns the mechanism (how to fetch and parse); you own the declaration.

  • Mechanism (DataSourceManager, the source registry) → library/api/, reused via @map/api/…. Never edited.
  • Which source, endpoint, and field mappings → here, in your own sources.json.

Data usually arrives at runtime from the host page's profile-config (inject('dataSource')), so the same bundle can point at different data with no rebuild. Ship a sources.json here only for a fixed default source. Prefer a real API over inlining large JSON.