Browse Source

Update rest-controllers.md

tags/2.0.16
cuiliang 6 years ago committed by GitHub
parent
commit
5023b16466
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      docs/guide-zh-CN/rest-controllers.md

16
docs/guide-zh-CN/rest-controllers.md

@ -120,14 +120,14 @@ public function behaviors()
### 自定义动作 <span id="customizing-actions"></span>
[[yii\rest\ActiveController]] 默认提供一下动作:
* [[yii\rest\IndexAction|index]]: 按页列出资源;
* [[yii\rest\ViewAction|view]]: 返回指定资源的详情;
* [[yii\rest\CreateAction|create]]: 创建新的资源;
* [[yii\rest\UpdateAction|update]]: 更新一个存在的资源;
* [[yii\rest\DeleteAction|delete]]: 删除指定的资源;
* [[yii\rest\OptionsAction|options]]: 返回支持的HTTP方法.
[[yii\rest\ActiveController]] 默认提供一下动作
* [[yii\rest\IndexAction|index]]按页列出资源;
* [[yii\rest\ViewAction|view]]返回指定资源的详情;
* [[yii\rest\CreateAction|create]]创建新的资源;
* [[yii\rest\UpdateAction|update]]更新一个存在的资源;
* [[yii\rest\DeleteAction|delete]]删除指定的资源;
* [[yii\rest\OptionsAction|options]]返回支持的HTTP方法.
所有这些动作通过[[yii\rest\ActiveController::actions()|actions()]] 方法申明,可覆盖`actions()`方法配置或禁用这些动作,
如下所示:

Loading…
Cancel
Save