异常内容

notsupportedexception: ambiguous http method for action . 
actions require an explicit httpmethod binding for swagger 2.0

解决方案

思考:疯狂google,找到 , 但是底下没有有价值的回答。自己琢磨一下,比起一个标准的接口,少了http请求定义和参数定义。
猜测是因为定义不标准,对swagger来说,不标准就报错,这没问题。
验证:写一个标准的method。

[httppost,route(test)]
pulic void test([frombody] inputdto dto)
{
}

异常解决。