* feat: api/v2/config endpoint for runtime config * feat: use a type switch * fix: add tests * chore: add config key to returned json * chore: update swagger ref