Toterbiber
6 years agoFrequent Visitor
How to request API Version
What i want to do is, I want to ask Swagger "What is the Version of this API?". Is that possible?
I'm talkig about this Version:
"http://myapi/swagger/docs/v1"
Which is set in SwaggerConfig:
c.SingleApiVersion(string.Format(CultureInfo.InvariantCulture, "v{0}", version), title);
Is there not something like swagger/metadata or swagger/versioninfo?
I know that it is written in the Swagger UI but I need something that i can consume in Code.