Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I remove "api-resource-controller" from my openapi swagger

I'm currently using the below openapi-ui dependency.

    <dependency>
        <groupId>org.springdoc</groupId>
        <artifactId>springdoc-openapi-ui</artifactId>
        <version>1.4.4</version>
    </dependency>

How to remove the api-resource-controller from the openapi-ui swagger screen?

enter image description here

like image 526
shaik fazeel Avatar asked Jan 25 '23 14:01

shaik fazeel


1 Answers

If you want to hide certain paths, you could use the springdoc.paths-to-exclude property, documented here.

So, in your case you should use:

# Paths to exclude
springdoc.paths-to-exclude=/swagger-resources/**
like image 191
thepaoloboi Avatar answered Jan 29 '23 21:01

thepaoloboi