Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

706
Views
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

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

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/**
over 4 years ago · Santiago Trujillo Report

0

You can use the @Hidden annotation from swagger-annotations, on the top of the controller you want to hide.

Or you can use properties to filter the endpoints to show, filtering by path or package:

# Packages to include
springdoc.packagesToScan=com.package1, com.package2

or

# Paths to include
springdoc.pathsToMatch=/v1, /api/balance/**
over 4 years ago · Santiago Trujillo Report

0

You can remove @EnableSwagger2 from your swagger config file or openapi config file then these openapi-resource controller will authomatically be removed.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!