Swagger and ASP.net Routes conventional

Tiger Ser 1 Reputation point
2022-08-28T16:07:19.527+00:00

I been doing some research about topic and have some sort of understanding is swagger not support conventional routes natively, (correct me if I'm not get it right or it's not the right direction) I'm new and would like some help of explanation about it. (Is it the way it, why is that,...)

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,130 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dillon Silzer 54,286 Reputation points
    2022-08-28T16:54:27.41+00:00

    Hi @Tiger Ser

    As seen in the following response on StackOverflow, "conventional routing is not supported by API Explorer (which is what Swashbackle base on)." Their solution was to use Swashbuckle.AspNetCore.SwaggerGen.ConventionalRouting package by chsakell found on https://github.com/chsakell/Swashbuckle.AspNetCore.SwaggerGen.ConventionalRouting

    https://stackoverflow.com/questions/62691861/no-operations-in-swagger-when-using-conventional-routing

    -----------------------------------------------

    If this is helpful please accept answer.

    0 comments No comments