How to omit methods from Swagger documentation on WebAPI using Swashbuckle

You can add the following attribute to Controllers and Actions to exclude them from the generated documentation: [ApiExplorerSettings(IgnoreApi = true)]

Leave a Comment