Configure Spring Boot with Swagger to generate documentation from a json

0

Good morning everyone.

I'm documenting the APIs of a project using Swagger2.

In this documentation, rather than using annotations, a json file is used. I would like to know if it is possible to create a Spring Boot project with Swagger 2, which uses json to document the APIs.

I searched the internet and only found this tutorial: link

I followed the steps outlined but it did not work.

The only way I got it was by downloading the dist folder from the link project and pointing for json, but does not Spring Boot have a way to set it to read json?

    
asked by anonymous 07.06.2017 / 13:18

1 answer

0

There are two ways you can work in this situation.

API First: You have the first designed contract and want to create a project scaffolding for Spring Boot. To do this use swagger codegen .

Develop first: If you develop the API and then want to create a contract for it, the framework SpringFox can help you in this situation .

    
09.06.2017 / 00:13