这是一个简化的ASP.NET Web API
public string Get() {
return $"Received value: 1,2 in string Get()";
}
public string Get([FromUri] int id) {
return $"Received value: {id} in Get(int id)";
}
如何在WSO2 API定义中映射这些?我尝试了以下,但似乎没有用。
我收到以下错误
{"fault":{"code":900906,"message":"No matching resource found in the API for the given request","description":"Access failure for API: /api/1.0, version: 1.0 status: (900906) - No matching resource found in the API for the given request. Check the API documentation and add a proper REST resource path to the invocation URL"}}
我希望网址能够调用这样的内容
http://localhost:8280/api/Default
http://localhost:8280/api/Default?id=123
提前感谢您的帮助!