https://kotlinlang.org logo
#ktor
Title
# ktor
l

Lukáš Fulín

10/10/2023, 9:27 AM
Hi, I'm using IntelliJ IDEA plugin for generating openapi documentation of my ktor project (https://www.jetbrains.com/help/idea/ktor.html#generate-openapi). Is it possible to customize somehow the output, e.g. to add "description" to each DTO's parameters, add "tags" to routes or manage "servers" section? I can't find any documentation. Thanks
e

e5l

10/10/2023, 9:28 AM
@Marat Dinmukhametov could you please help?
b

Berkay Özkan

10/10/2023, 9:28 AM
You can add tags to routes via
Copy code
/**
 * @OpenAPITag Authentication
 */
💯 1
Changing server info is not possible right now afaik, i opened a ticket for it https://youtrack.jetbrains.com/issue/KTOR-6115/OpenAPI-Configuring-openapi-info-and-servers-fields
👀 1
💯 1
2 Views