I am using Swashbuckle for having the Swagger documentation in my C# controller If I have a controller as follows:
public class CommandController : ApiController
{
public CommandResult Cancel(...)
{ ...}
public CommandResult Status(...)
{ ...}
}
Then I can get the doc through http://localhost/swagger/ui/docs and I generate the doc in HTML or any other format, it will look as follows:
In the above the commands on left side are are prefixed with the name of the controller.
Is there a way to remove the controller prefix and have only the name of the method?
The response (by NanoWar) to this GitHub issue seems to answer your question: https://github.com/swagger-api/swagger-codegen/issues/6164
It involves adding a OperationFilter to your SwaggerConfig.