i figured out what was the problem. It was just a missconfiguration of my Apache.
Now the routing works just fine but i am running into a new Error.
I think i don’t have the right user model with which the ActiveController can build the REST api. Is that right?
Here is the errormessage: PHP Fatal ErrorCall to undefined method app\models\User::find()1yii\base\ErrorException/var/www/.../yii/basic/vendor/yiisoft/yii2/rest/IndexAction.php61#0 [internal function]: yii\base\ErrorHandler->handleFatalError()#1 {main}
I am now using the model from the advanced api example.
filled the controller like following now and it works:
<?php
namespace app\models;
use yii\db\ActiveRecord;
class User extends ActiveRecord
{
/**
* @return string the name of the table associated with this ActiveRecord class.
*/
public static function tableName()
{
return 'user';
}
}