Skip to content

How to append versions to URL? #2665

Closed Answered by markcowl
PiliNi asked this question in Q&A
Discussion options

You must be logged in to vote

The short answer is that there isn't a way to automatically do this yet, however, you can achieve a similar thing by using explict @route decoration with versioned interfaces or operations, for example this playground shows versioning interfaces

Creating templates based on these definitions would make this a bit easier to express. In the future, it may be possible to use string interpolation to represent the version value in the operation route, which would remove the need to represent the versioned operatiosn separately.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by PiliNi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants