Closed tomasjurasek closed 7 years ago
When I set Content-Type: application/vnd.api+json
I think [FromBody]
does some weird stuff sometimes. Have you tried without any attribute on the parameter?
I tried it, but the same issue. Here is screen from swagger:
Postman has the same issue 400(Invalid JSON API request content)
But that is not valid JSON API content. It should be like:
{
"data": {
"id": "22",
"type": "mymodel",
"attributes": {
"name": "string"
}
}
}
Hi,
I have simple controller method like this:
ResourceModel
I get 400 status no content. But if I set attribute [FromUri], it works. Its a bug? I need [FromBody]
Thanks Tomas