我试图发送一个请求使用该DTO第三方API:在ServiceStack中,路由/ json/synclply来自哪里?
[Route("log_entries", "GET")]
public class MyRequest: IReturn<MyResponse>
{
}
客户端请求:
string uri = "https://..../api/v1"
var jsonClient = new JsonServiceClient(uri);
// This works
var response = client.Get<MyResponse>("/log_entries");
// Does not work
var response = client.Send(new MyRequest());
我得到一个Not Found
响应当前。当我使用Fiddler发送到http://
时,我可以看到 路径/json/syncreply
被添加,即../api/v1/json/syncreply
>我期待了解这是从哪里来的,以及如何确保我的请求在正确的路径上发送。
干杯
很好的解释,谢谢 – MikeW 2014-09-30 02:49:55
@MikeW不客气 – Scott 2014-09-30 07:25:25