属性ルーティング対応時に
Actions require an explicit HttpMethod binding for Swagger 2.0
[Route("hoge/dog/{dog}/type/{type}")]
[HttpGet]
[Route("hoge")] [HttpGet("dog/{dog}/type/{type}")]
はNG
[HttpGet("hoge/dog/{dog}/type/{type}")]
でOK!
c# - How to pass multiple parameters to a get method in ASP.NET Core - Stack Overflow
ASP.NET Core MVCのWebAPIでURLクエリパラメータを取得する方法 – kokoni
Thanks!