發表文章

目前顯示的是 1月 27, 2019的文章

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.

2014 NCAA Division I FBS football season

圖片
2014 NCAA Division I FBS season Number of teams 125 full members + 3 transitional Duration August 27 – December 13 Preseason AP No. 1 Florida State Seminoles Post-season Duration December 20, 2014 – January 12, 2015 Bowl games 39 AP Poll No. 1 Ohio State Buckeyes [1] Coaches Poll No. 1 Ohio State Buckeyes [2] Heisman Trophy Marcus Mariota, Oregon College Football Playoff 2015 College Football Playoff National Championship Site AT&T Stadium Arlington, Texas Winner Ohio State Buckeyes Division I FBS football seasons ← 2013 2015 → The 2014 NCAA Division I FBS football season was the highest level of college football competition in the United States organized by the National Collegiate Athletic Association (NCAA). The regular season began on August 27, 2014 and ended on December 13, 2014. The postseason concluded on January 12, 2015 with the inaugural College Football Playoff National Championship game at AT&T Stadium in Arlington, Texas. The 2014 season marked a major change t