Skip to content

How to Edit the title of the swagger doc #335

@anksngp

Description

@anksngp

Hi,

While using swagger 2 wih spring boot, we used to put @configuration
@EnableSwagger2 annotation on top of a class with
@bean
public Docket api() {
return new Docket(DocumentationType.SWAGGER_2).directModelSubstitute(ZonedDateTime.class, String.class).select()
.apis(RequestHandlerSelectors.basePackage("com.test")).paths(PathSelectors.any()).build()
.enable(environmentProperties.isEnableSwagger());
}

But the same way is not working with swageger 3 , i still get the same default tile as

OpenAPI definition
v0
OAS3
/v3/api-docs

How can i customise this page title?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions