Skip to content

khsergvl/spring-boot-static-swagger-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-boot static swagger-ui

This is small web-app represents final steps of article:  
"Overcoming Swagger Annotation Overload by Switching to JSON
to build static swagger-ui."  
"https://dzone.com/articles/overcoming-swagger-annotation-overload-by-switchin"

The main idea of the app is to use static JSON swagger-ui configuration.  
Thus, it's enough only to add light-weight swagger-ui dependecy  
and expected JSON configuration to the project.

Also this app can be used as swagger-ui stand alone web container,
that represents project API.  

To simplify usage, app contains configuration that overrides default swagger-ui URI   
with configurable prefix.  

How to start ?

Clone repository && execute in bash:

$ ./gradlew bootRun

Open in browser http://localhost:8080/docApi/swagger-ui.html

Pray! :)

Change static swagger-ui configuration

Change {docApi} URI redirect prefix configuration

Requirements

  • git
  • gradle
  • java 8

License

GNU General Public License

Releases

No releases published

Packages

No packages published

Languages