Swagger + Spring Boot with example
Today, we will go through how to create API documentation using swagger and spring boot. Swagger is a framework for describing our API by using a common language that is easy to read and understand by developers and testers, even they have weak source code knowledge. Following technologies stack being used: Spring Boot 2.1.1.RELEASE Spring 5.1.3.RELEASE Maven 3 JDK 1.8 Eclipse Oxygen Swagger 2 1)Project Structure 2)Maven/Dependency Management [pom.xml] <?xml version = "1.0" encoding = "UTF-8" ?> <project xmlns = "http://maven.apache.org/POM/4.0.0" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation = "http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" > <modelVersion> 4.0.0 </modelVersion> <parent> <groupId> org.springframework.boot </groupId> <artifactId> spring-boot-st