Skip to content

Conversation

@alexluong
Copy link
Collaborator

@alexluong alexluong commented Jan 13, 2026

Adds /tenants prefix to all tenant-scoped routes

Changes

  • New canonical paths: /api/v1/tenants/:tenantID/*
  • Old paths (/api/v1/:tenantID/*) still work but return Deprecation and Link headers
  • Updated OpenAPI spec to reflect new paths

- Add deprecation middleware that sets Deprecation and Link headers
- Register tenant-scoped routes under both /tenants prefix (new) and root (deprecated)
- Old paths still work but return deprecation headers pointing to new paths
- Add integration tests for both path styles
Update all tenant-scoped API paths from /{tenant_id}/* to /tenants/{tenant_id}/*
@vercel
Copy link

vercel bot commented Jan 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
outpost-docs Ready Ready Preview, Comment Jan 14, 2026 10:28pm
outpost-website Ready Ready Preview, Comment Jan 14, 2026 10:28pm

Update all e2e test paths from /{tenant_id}/* to /tenants/{tenant_id}/*
to use the new canonical API paths.
@alexbouchardd
Copy link
Contributor

Old paths (/api/v1/:tenantID/*) still work but return Deprecation and Link headers

I would remove this and force the upgrade

alexluong and others added 2 commits January 14, 2026 23:53
Update test name strings to reflect the new /tenants/:tenantID path
format for consistency with the actual API paths.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Remove the deprecation middleware and deprecated route registration.
The old paths without /tenants prefix are no longer supported.

Changes:
- Remove deprecation_middleware.go and its tests
- Remove deprecated route group registration from router.go
- Update all unit tests to use /tenants/:tenantID path format

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…route-prefix

# Conflicts:
#	docs/apis/openapi.yaml
@alexluong alexluong merged commit a76b0ed into main Jan 14, 2026
4 checks passed
@alexluong alexluong deleted the feat/tenants-route-prefix branch January 14, 2026 22:47
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.

3 participants