【发布时间】:2014-09-29 09:10:32
【问题描述】:
我正在尝试使用此 DTO 向第三方 api 发送请求:
[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>我希望了解它的来源以及如何确保我的请求在正确的路径上发送。
干杯
【问题讨论】:
标签: c# servicestack servicestack-bsd