Skip to content
Discussion options

You must be logged in to vote

You can't cause 1 to be rejected, but 1.0 to be accepted out of the box. It might be possible through some configuration, but - honestly - it will probably be more trouble than it's worth. You can, however, have the URLs use v1.0 over v1. This is almost the same configuration as before a la:

options.SubstitutionFormat = "VV"; // the default is "VVV"

Note that this format configuration does not use include the 'v' literal in the format. That's because you would have already included it in your route template; for example, [Route("api/v{version:apiVersion}/[controller]")]. This setting configures how the API version is formatted when it is substituted in the template, which is already enabl…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@The-Futurist
Comment options

@commonsensesoftware
Comment options

Answer selected by The-Futurist
@The-Futurist
Comment options

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