How to host Swagger documentation using yaml/json configuration files?
Maintain the swagger documentation by Swagger Editor and then you can use the yaml files to generate online swagger documentation easily with Spring boot.
Workflow for Swagger documentation
Update swagger documentation with Swagger Editor, export the yaml files
Update the yaml files in Spring boot project
Redeploy the Spring boot project
How to setup in Spring boot?
Swagger provides swagger-ui and some jars to host a documentation, you can use Java annotations or yaml files to autogenerate the swagger documentation. The example below is using static yaml files to generate documentation.
swagger:"2.0" info: description:"This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters." version:"1.0.0" title:"Swagger Petstore" termsOfService:"http://swagger.io/terms/" contact: email:"apiteam@swagger.io" license: name:"Apache 2.0" url:"http://www.apache.org/licenses/LICENSE-2.0.html"