I am using post method (MCV4 - Web API - apicontroller), like this:
public HttpResponseMessage Post([FromBody]string value)
{
return Request.CreateResponse(HttpStatusCode.OK, value);
}
I am using google chrome - advanced rest client add-in.
For some reason the value is always null (I passed it on raw - payload part of advanced rest client).
I need to change always the content type to json/application (manually in google chrome advanced rest client) - Can I force some defaults (on webapiconfig.cs or elsewhere)?
Thanks :)