❔ Easy way to make a controller not visible in swagger ui

Hey guys this controller still in development so I would like to hide it out of swagger ui does ASP.NET have annotation to help me easily hide it ?
4 Replies
mtreit
mtreit17mo ago
This answer seems to imply that no longer exists in Swashbuckle 5.x, but not sure: https://stackoverflow.com/questions/33176319/restrict-access-to-certain-api-controllers-in-swagger-using-swashbuckle-and-asp They give an example of marking the methods with [Obsolete] to cause them to be ignored.
TotechsStrypper
TotechsStrypper17mo ago
Well obsolete != in development My teammate are easily confused
mtreit
mtreit17mo ago
Yeah I find that a bit lame personally but it might be a workaround. Just add a comment.
Accord
Accord17mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity. Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts
❔ Question About ParticleEffects in Unity/C#So right now, im only a couple weeks into C#/GameDev. Im working on a tiny little project to try to ❔ Unity deltaTime errorthis is my code, when I multiply the damping by deltaTime it breaks the spring but without timeDeltaLINQ List A (list of strings) "partial" has any member of list B (list of strings)For instance: List A has "Car","Bicycle" List B has "Blue Car", "Red Baloon","Random stuff" I wan❔ How to get installed Extensions from Visual Studio installation?I am using the Powershell VSSetup module to get the list of installed VS instances. How do I get th❔ How to make changes to files using low spaceid like to know some way to for example modify a file by like a list of changes without need to down✅ Record for ensuring parametersHello. I'm currently learning Function C#, and the guy I'm currently making a demo for gave me a tip✅ Await seemingly ignored inside Dispatcher.BeginInvokeI'm writing an app in WPF. Currently testing something out, here's the code I'm testing: ```await D❔ dotnet start, and profilesWhen I run `dotnet run`, which profile from `launchSettings.json` is chosen? There are so many ways ❔ integrate an UI test with playwright on a Blazor ServerCan someone help me? I try to use this code to integrate an UI test with playwright on a blazor serv❔ LINQ distinct from 2 lists preserving order as soon as they are seenI have 2 lists like this 1: {1, 2, 3} 2: {1, 3, 4} what's the LINQ distinct method for them that pro