Yii2 REST Client
The preferred way to install this extension is through composer.
"zhuravljov/yii2-rest": "*", "yiisoft/yii2-httpclient": "@dev"
to the require section of your
Once the extension is installed, simply modify your application configuration as follows:
return [ 'bootstrap' => ['rest-client'], 'modules' => [ 'rest-client' => [ 'class' => 'zhuravljov\yii\rest\Module', 'name' => 'My Rest Client', 'baseUrl' => 'http://localhost/api/v1', ], ], ];
You can then access Rest Client through the following URL:
or if you have enabled pretty URLs, you may use the following URL: