Skip to content

feat(backend): Add API versioning middleware to NestJS routes #3

Description

@Viky207

Problem

Backend routes lack versioning, making breaking changes risky.

Task

Implement API versioning middleware for NestJS supporting Accept-Version header and URL path versioning.

Acceptance Criteria

  • Middleware supports Accept-Version: application/vnd.quickex.v1+json
  • URL path versioning at /v1/...
  • Default version v1 for unversioned requests
  • 415 for unknown versions
  • All controllers migrated to versioned routes
  • Swagger docs reflect versioned paths
  • Integration tests cover negotiation and fallback

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions