Skip to content

Get currently available versions without running the API #924

Discussion options

You must be logged in to vote

This can definitely be done from a technical standpoint. The IApiVersionDescriptionProvider service will return all known API versions, whether they are deprecated, and any sunset policy information. My understanding of how this works with the Swashbuckle CLI is that it spins up your app using TestHost in-memory and then extrapolates the information. That allows DI and just about everything else to function without hosting the application for real.

The biggest challenge is getting the API Versioning information to be understood by Swashbuckle and vice versa. Neither knows about each other. Furthermore, I don't know that there is an extensibility model for .NET Tools (but that would be coo…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@spaasis
Comment options

Answer selected by commonsensesoftware
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