In order to make the model binder correctly bind the body part of an HTTP request in ASP.Net Core you need to use the [FromBody] attribute.
public JsonResult PostContent([FromBody] Content content)
{
......
}
This works great if your media type is application/json. However, if you want to use a vendor specific (e.g. application/vnd+mycompany+json) media type in your Accept header then if I pass that in the HTTP POST I will get a 415 Unsupported Media Type.
So my question is how do you support vendor specific media types in ASP.Net Core?