I'm trying to pass a lengthy string through my POST methond from the actual body, it works perfectly fine if I pass it through url but I dont know what to change so I can insert data from body instead.
public void PostMethod(string id, [FromBody]string data)
{
if (ModelState.IsValid)
{
var result = client.Store(StoreMode.Add, id, data);
}
else
{
}
}
if I use it like this:
http://localhost:8888/api/data?id=2&data=MybigString
It works perfectly, but I don't want to pass data from URL, any suggestion would be highly appreciated.

