This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.
A smart rest function for yii2
0.0.1 2019-07-01 08:26 UTC
yii\rest\urlRule must be set. So you have to set this property when you add a controller. This project sloved it.
The preferred way to install this extension is through Composer .
composer require undefinedor/smart-rest
'urlManager' => [ 'enablePrettyUrl' => true, 'showScriptName' => false, 'enableStrictParsing' => true, 'rules' => [ ['class' => 'SmartRest\UrlRule'], ], ],