this is my first question:
I'm trying to build a RESTful Webservice with Yii2. The Controller extends from ActiveController and has the corresponding model. Reading of data works fine and without problems.
But when I try to create new Objects I run into an error. I use the Chrome extension Advanced Rest Client and POST the following data:
{
    "team": 1
}
I also tried different formats.
But I always get this response:
[{
    "field":"team",
    "message":"Team cannot be blank."
}]
Do you have any suggestions what I'm doing wrong?
Thanks!
 
     
    