How is the Swagger File generated?

hunterino 2 years ago

Is the swagger.json file generated from the code and swagger annotations
or
Do you edit the swagger file, and generate the java code?
either way:
What is the command to generate it?

Anton Tananaev 2 years ago

We don't use the file to generate the code. It is mostly used for documentation.

But there are tools you can use to generate the code from it.