Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Disable endpoint in Swagger #6153


User avatar
0
larsfk created

Hi!

Is there a way to disable a endpoint in swagger so that the user don't see it in the swagger docs, but can still be accessed by other classes in the project?

Thanks!


3 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    but can still be accessed by other classes in the project?

    What does it mean?

  • User Avatar
    0
    larsfk created

    I have a service that is shown in Swagger-docs with all the endpoint. But I would like to hide some of these endpoints because they are just used by other classes, like TokenAuthController, in another project-folder. Is there a way to hide some of the endpoints from Swagger docs?

  • User Avatar
    1
    maliming created
    Support Team