Skip to content

feat: add /v1 prefix to all API routes #136

Merged
shefeek-jinnah merged 3 commits intomainfrom
shefeek/apis_prefix_v1
Mar 2, 2026
Merged

feat: add /v1 prefix to all API routes #136
shefeek-jinnah merged 3 commits intomainfrom
shefeek/apis_prefix_v1

Conversation

@shefeek-jinnah
Copy link
Contributor

@shefeek-jinnah shefeek-jinnah commented Mar 2, 2026

#137

Description

Add /v1 prefix to all API route constants so runtimedb natively serves versioned paths. This allows the Envoy gateway to stop rewriting /v1/* → /* before forwarding, simplifying the routing config.

/health is intentionally excluded since it's used by Kubernetes probes and is an infrastructure concern, not a versioned API endpoint.

Routes updated

  • /query → /v1/query
  • /information_schema → /v1/information_schema
  • /refresh → /v1/refresh
  • /connections → /v1/connections
  • /connections/{id} → /v1/connections/{id}
  • /connections/{id}/health → /v1/connections/{id}/health
  • /connections/{id}/cache → /v1/connections/{id}/cache
  • /connections/{id}/tables/{schema}/{table}/cache → /v1/connections/{id}/tables/{schema}/{table}/cache
  • /secrets → /v1/secrets
  • /secrets/{name} → /v1/secrets/{name}
  • /query-runs → /v1/query-runs
  • /results → /v1/results
  • /results/{id} → /v1/results/{id}

Unchanged (already had /v1)

  • /v1/files
  • /v1/datasets
  • /v1/datasets/{id}
  • /v1/saved-queries and related endpoints

@shefeek-jinnah shefeek-jinnah marked this pull request as ready for review March 2, 2026 06:59
@shefeek-jinnah shefeek-jinnah changed the title fix(http): remove /v1 prefix from newer API routes feat: add /v1 prefix to all API routes Mar 2, 2026
@shefeek-jinnah shefeek-jinnah removed the request for review from anoop-narang March 2, 2026 07:23
@shefeek-jinnah shefeek-jinnah merged commit 9c77876 into main Mar 2, 2026
11 checks passed
@shefeek-jinnah shefeek-jinnah deleted the shefeek/apis_prefix_v1 branch March 2, 2026 08:00
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.

1 participant