SpringDoc bizim için API dökümantasonu oluşturur ve ayrı bir open-source projectir. Bu sayede biz API endpointlerini inceleyebiliriz.

https://springdoc.org

pom.xml

   <dependency>
      <groupId>org.springdoc</groupId>
      <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
      <version>2.8.13</version>
   </dependency>

application.properties

# swagger-ui custom path
 springdoc.swagger-ui.path=/swagger-ui.html

http://localhost:8080/swagger-ui/index.html

İstersek özel path de verebiliriz.

springdoc.api-docs.path=/my-api-docs

http://localhost:8080/my-api-docs (JSON)

http://localhost:8080/my-api-docs.yaml (YAML)