All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.tinkoff.kora.openapi.management.OpenApiManagementConfig Maven / Gradle / Ivy

There is a newer version: 1.1.10
Show newest version
package ru.tinkoff.kora.openapi.management;

import jakarta.annotation.Nullable;
import ru.tinkoff.kora.config.common.annotation.ConfigValueExtractor;

import java.util.List;

@ConfigValueExtractor
public interface OpenApiManagementConfig {

    List file();

    default boolean enabled() {
        return false;
    }

    default String endpoint() {
        return "/openapi";
    }

    @Nullable
    SwaggerUIConfig swaggerui();

    @Nullable
    RapidocConfig rapidoc();

    @ConfigValueExtractor
    interface SwaggerUIConfig {

        default boolean enabled() {
            return false;
        }

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

    @ConfigValueExtractor
    interface RapidocConfig {

        default boolean enabled() {
            return false;
        }

        default String endpoint() {
            return "/rapidoc";
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy