Why is Swagger/Swashbuckle mangling my routes?
0 I have a controller with the following methods on it: [System.Web.Mvc.HttpGet] [System.Web.Mvc.Route("api/v1.0/foo/id")] [ResponseType(typeof(MyObject))] public IHttpActionResult Get(int id) [System.Web.Mvc.HttpGet] [System.Web.Mvc.Route("api/v1.0/foo/id/address")] [ResponseType(typeof(MyObject))] public IHttpActionResult Get(int id) If I remove the second method, the controller renders just fine in Swagger. However, if I include it, the routes are rendered like this: GET /api/Foo GET /api/Foo/id What is going on and how do I fix it? c# .net swagger swagger-ui swashbuckle share | improve this question asked Nov 13 '18 at 19:54 Mike Hofer Mike Hofer 10.4k 9 55 91 add a comment | 0 I have a controller with the following methods on it: [System.Web.Mvc.HttpGet] [System.Web.Mvc.Route("api/v1.0/foo/id")] [ResponseType(typeof(MyObject))] public IHttpActionResult Get(int id) [System.Web.Mvc.