Skip to content

feat(#360): split API routes by domain with versioned namespacing#524

Merged
Smartdevs17 merged 2 commits into
Smartdevs17:mainfrom
sandrawillow001-afk:feature/360-split-api-routes-versioned-domains
Jun 23, 2026
Merged

feat(#360): split API routes by domain with versioned namespacing#524
Smartdevs17 merged 2 commits into
Smartdevs17:mainfrom
sandrawillow001-afk:feature/360-split-api-routes-versioned-domains

Conversation

@sandrawillow001-afk

Copy link
Copy Markdown
Contributor
  • Created v1 domain directory structure under api/src/routes/v1/ with:
    • lending domain (lending, gas, debt-token, cross-asset)
    • protocol domain (stats, pause, audit, roles)
    • governance domain (staking, rebalancing, risk)
    • oracle domain (prices, health, metrics)
    • account domain (portfolio, transactions, subscriptions)
    • system domain (health, config, developer, analytics)
    • security domain (merkle, zk, verification, mev)
  • Version migration middleware with deprecation headers (X-API-Deprecated, X-API-Sunset, X-API-Migrate-To, Link) and in-body deprecation metadata
  • Version-aware OpenAPI spec builder with per-version route globs
  • Legacy route backward compatibility with deprecation warnings
  • No breaking changes to existing clients

What Changed

Summarize the main code and behavior changes.

Why

Explain the problem this PR solves.

Testing

  • Unit tests updated or added
  • Relevant local checks passed
  • Manual verification completed when needed

Related Issues

Link the related issue(s), for example:
Closes #360

…spacing

- Created v1 domain directory structure under api/src/routes/v1/ with:
  - lending domain (lending, gas, debt-token, cross-asset)
  - protocol domain (stats, pause, audit, roles)
  - governance domain (staking, rebalancing, risk)
  - oracle domain (prices, health, metrics)
  - account domain (portfolio, transactions, subscriptions)
  - system domain (health, config, developer, analytics)
  - security domain (merkle, zk, verification, mev)
- Version migration middleware with deprecation headers (X-API-Deprecated,
  X-API-Sunset, X-API-Migrate-To, Link) and in-body deprecation metadata
- Version-aware OpenAPI spec builder with per-version route globs
- Legacy route backward compatibility with deprecation warnings
- No breaking changes to existing clients
@vercel

vercel Bot commented Jun 23, 2026

Copy link
Copy Markdown

@sandrawillow001-afk is attempting to deploy a commit to the smartdevs17's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jun 23, 2026

Copy link
Copy Markdown

@sandrawillow001-afk Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Smartdevs17 Smartdevs17 merged commit 082f485 into Smartdevs17:main Jun 23, 2026
2 of 12 checks passed
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.

Split API routes by domain with versioned namespacing

2 participants