Regarding the auto-generation of OpenAPI specifica...
# ktor
f
Regarding the auto-generation of OpenAPI specification, I followed the steps as described in the documentation, by placing the caret over
embeddedServer
and press Alt + Enter to access the generation option. My question is, does the IDE offer the same feature when using
EngineMain.main(args)
instead of
embeddedServer
? I cannot see the option with
EngineMain
, maybe has to be done in a different manner?
a
You can also generate the specification by running the
Generate OpenAPI Documentation for Ktor in Module: ...
action.
1
🙌 1
m
Or you can also find the intention action inside the routing method
a
It actually doesn't matter how you do it because the specification is generated module-wide.
💯 1
f
Great, I didn't realize that it can also be done in the module.
a
Regarding this, is possible to generate the specification from CLI instead of IDE?
a
No, but there will be an integration with Qodana Cloud.