我使用小提琴手来测试我的要求..如何传递MULT参数网页API
以下reuest我习惯叫我的网络API方法..它工作正常。
http://localhost:50079/Import/Test/abc
Type :Get
web api method:
[ActionName("Test")]
public bool getconnection(string id)
{
return true;
}
如果我通过多参数我得到错误:HTTP/1.1 404未找到
我用这样的:
http://localhost:50079/Import/Test/abc/cde
Type :Get
web api method:
[ActionName("Test")]
public bool getconnection(string id,string value)
{
return true;
}
我不希望使用任何途径。 ..让我知道为什么如果我通过多个参数为什么它不被识别..
POST和GET请求的一般解决方案我已经回答[此问题](http://stackoverflow.com/a/37298083/5714537)。 –