yii-starter-kit / yii2-starter-kit

Yii2 Starter Kit
http://yii2-starter-kit.terentev.net
Other
1.42k stars 648 forks source link

Correcting api routes and their tests #725

Closed nikosid closed 3 years ago

nikosid commented 4 years ago

As the documentation says:

You may have noticed that the controller ID user appears in plural form as users in the endpoint URLs. This is because [[yii\rest\UrlRule]] automatically pluralizes controller IDs when creating child URL rules. You may disable this behavior by setting [[yii\rest\UrlRule::pluralize]] to be false.

https://github.com/yiisoft/yii2/blob/master/docs/guide/rest-routing.md