I have a huge @OpenApi
annotation (basically it's documentation of a Javalin/Kotlin endpoint) which occupies a lot of lines:
@OpenApi(
summary = "",
description = "Lists all customers",
path = "customers",
queryParams =
// ...........
// ...........
// etc
)
override fun handle(context: Context) {
// body of the REST handler
}
I have to scroll a lot to see the actual handler. Hence, I'd like to isolate it somehow like:
@GetCustomersDoc
override fun handle(context: Context) {
// body of the REST handler
}
I'm OK with other solutions that make the documentation go elsewhere.
This would make the code cleaner and the docs segregated.