Not supported by Swagger 2.0: Multiple operations with path

后端 未结 9 2331
盖世英雄少女心
盖世英雄少女心 2020-12-29 03:15

I have integrated swagger in WebApi 2 application. It works fine when application has single controller. When I added second controller in the application. I got following

9条回答
  •  醉酒成梦
    2020-12-29 03:31

    You can change the route on your controller.

    The default value is [Route("api/[controller]")]

    You can change to [Route("api/[controller]/[action]")]

提交回复
热议问题