Skip to content

How to customize the Swagger UI files #1487

@mjovanc

Description

@mjovanc

I'm using Spring Boot project with Gradle and I'm trying to understand how to modify the Swagger UI HTML/CSS/JS files so I can customize it so it looks similar to my project. I tried putting the dist directory inside resources folder and rebuild, but nothing changed. I tried also to exclude the org.webjars, swagger-ui but that just gave me an empty whitelabel page.

I started get suspicious how I put my files since I saw somewhere that you need to convert all the files you modified to a webjar? Is this true? And how would I do that?

Anyway, could someone give me a simple example how to load these files and into what directory using Gradle as my build tool?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions