I have a new method in web api
[HttpPost]
public ApiResponse PushMessage( [FromUri] string x, [FromUri] string y, [FromBody] Request Request)
where request class is like
public class Request
{
public string Message { get; set; }
public bool TestingMode { get; set; }
}
I'm making a query to localhost/Pusher/PushMessage?x=foo&y=bar with PostBody:
{ Message: "foobar" , TestingMode:true }
Am i missing something?
A post body is typically a URI string like this:
You have to make sure that the HTTP header contains
EDIT: Because it's still not working, I created a full example myself.
It prints the correct data.
I also used .NET 4.5 RC.