Skip to content

MI-331: Add alias paths to SecureRestApi routes - #1756

Merged
toddhainsworth merged 2 commits into
mainfrom
feature/MI-331_secure-rest-api-alias-routes
Sep 8, 2026
Merged

MI-331: Add alias paths to SecureRestApi routes#1756
toddhainsworth merged 2 commits into
mainfrom
feature/MI-331_secure-rest-api-alias-routes

Conversation

@toddhainsworth

Copy link
Copy Markdown
Member

Summary

  • Add optional aliasPaths to SecureRestApiRoute, letting a route register the same methods/integration under additional paths
  • Useful for renaming an endpoint (e.g. peoplecustomers) without breaking existing consumers during migration
  • Works with nested/parameterized paths, provided the alias uses the same param name as the primary path
  • Includes changeset (minor bump for @aligent/cdk-secure-rest-api) and README updates

Test plan

  • yarn nx test secure-rest-api — 19 tests pass, including new alias-path coverage (flat and nested/parameterized)
  • yarn nx build secure-rest-api — typechecks
  • yarn nx lint secure-rest-api --fix — passes

Allow a route to be exposed under additional paths sharing the same
methods and integration, so an endpoint can be renamed without
breaking existing consumers during migration.
@toddhainsworth
toddhainsworth marked this pull request as ready for review September 8, 2026 06:19
@toddhainsworth
toddhainsworth requested a review from a team as a code owner September 8, 2026 06:19

@tmthrgd-aligent tmthrgd-aligent left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks reasonable to me.

@toddhainsworth
toddhainsworth merged commit dfbd420 into main Sep 8, 2026
10 checks passed
@github-actions github-actions Bot mentioned this pull request Sep 8, 2026
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