Springfox

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

External

Internal

Overview

Springfox is a suite of Java libraries for automating the generation of machine and human readable specification for JSON APIs written with Spring Framework. Springfox works by examining an application, once, at runtime to infer API semantics based on Spring configurations, class structure and various compile time java annotations.

Gradle Dependencies

repositories {

   jcenter()
}

dependencies {

    compile "io.springfox:springfox-swagger2:2.9.2"
}

Generating Swagger/OpenAPI Specification from Spring Code with Springfox