Contributions
Does Swagger create routes or controllers while executing documentation for Rest Api (C#)
Hello everybody, I am trying to set rights (according to my own database repository) to my C# Rest Api Swagger documentation. In other words, I would like to decide who can display the Swagger documentation for my Rest Api. I would like to know how does Swagger works. Does it create controllers, routes when executing which I can catch by code to check the rights before displaying ? What are the objects I can interact with ? I would like to read the current routes to check in my database who can display documentation for this route. Thank you very much in advance. Eric.783Views0likes2Comments