How is the Swagger File generated?

hunterinoa year 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 Tananaeva year 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.