我正在尝试使用此 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
目前正在收到回复。当我发送到http://
使用 Fiddler 时,我可以看到/json/syncreply
添加了路径,即../api/v1/json/syncreply
> 我希望了解它的来源以及如何确保我的请求在正确的路径上发送。
干杯