I'm trying to send a request to a third party api using this DTO:
[Route("log_entries", "GET")]
public class MyRequest: IReturn<MyResponse>
{
}
The client request:
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());
I'm getting a Not Found
response currently. When I send to http://
using Fiddler, I can see the
path /json/syncreply
is added i.e. ../api/v1/json/syncreply
> I am looking to understand where this comes from and how to ensure my request is sent on the right path.
Cheers