I have a REST API developed through the use of Jersey and we document the REST API through swagger-ui. Unfortunately, we did not start versioning the API from day 1. We are now trying to add versioning to the API.
The first step I'm taking is I'm trying to update the API version that is displayed by the dynamically generated swagger (html) page. I've traced the call flow all the way to the swagger-ui.js file but I can't figure out how to change the displayed API version at the bottom of the dynamically generated page.
The default that is currently displayed at the bottom is ' API VERSION: 1.0.0 '.
I've read something about a ServiceStack here but unfortunately the code base I'm working on doesn't use anything of the sort.
Could anyone please kindly point me to where/what I would need to change/update in order to update the displayed API version number?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…