Skip to content

Configurable OpenAPI UI templates #310

@CatCoderr

Description

@CatCoderr

Java / Kotlin / Both:

  • Both

Опишите функционал который бы вы хотели / Describe the solution you'd like:
There is currently no option to clearly pass custom *.html template files in openapi-management-module.
File paths are explicitly hardcoded.

Опишите альтернативы которые вы используете или рассматривали / Describe alternatives you've considered:
A custom resource relocation task for replacing built-in HTML templates is currently a workaround.

Опишите простым псевдокодом интерфейсы или примеры функциональности / Describe using pseudocode interfaces or examples how you see feature realisation (Optional):

@ConfigValueExtractor
interface SwaggerUIConfig {

    default boolean enabled() {
        return false;
    }

    default String endpoint() {
        return "/swagger-ui";
    }

    default String templatePath() {
        return "kora/openapi/management/swagger-ui/index.html";
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions