I have a controller that is named User
in which I have two GET methods to retrieve the user's information either by his mail, GetUserByMail
, or by his mobile number, GetUserByMobile
.
The problem is that when I generate my Swagger documentation I have both GET but not their names. They are both called "User" with their respective parameters "mail" or "mobile".
How do I specify the name of my API via the C# attributes for Swagger to include it correctly in the documentation?