.NET Core Swagger security trimming of end points in ASP.NET Core application TLTR; If you need to hide endpoints in Swagger UI based on authorization token, here is the repository with demo for .NET Core app. The relevant parts are passing HTTP header and filter for rendering schema based on permissions. Swagger Swagger described as API