c# - JsonServiceClient adding path to url -
i'm using jsonserviceclient, initialized url parameter like:
jsonserviceclient client = new jsonserviceclient("http://dis.dat/whatever/coolservice"); client.post(new myrequest{ foo = "bar"});
but when check output url, can see service used different url, more precisely
http://dis.dat/whatever/coolservice/json/reply/myrequest
the request type simple as
public class myrequest { public string foo {get; set;} }
of course, prevent behaviour.
thanks
it seems should use custom routes:
[route("/")] public class myrequest { public string foo {get; set;} }
Comments
Post a Comment