yii2-rest:yii 2 中 rest api 的独立操作

时间:2021-06-11 20:53:54
【文件属性】:
文件名称:yii2-rest:yii 2 中 rest api 的独立操作
文件大小:5KB
文件格式:ZIP
更新时间:2021-06-11 20:53:54
PHP Webulla Yii2 休息动作 组件库包含用于处理休息请求的独立操作。 安装 安装此扩展的首选方法是通过 。 要么跑 $ composer require "webulla/yii2-rest":"*" 配置 在我的项目中,我使用在客户端处理模型。 因此,来自模型(方法Backbone.sync() )的所有ajax请求都分为四种类型: GET 、 POST 、 PUT和DELETE 。 为了处理这些请求,我实现了独立操作。 我马上举一个例子,在此基础上更容易理解如何使用组件。 控制器的这种模型,用于处理帖子。 namespace app\controllers; use Yii ; use app\models\ Post ; use webulla\rest\actions\ RestAction ; /** * PostController implements th
【文件预览】:
yii2-rest-master
----LICENSE(1KB)
----composer.json(505B)
----README.md(4KB)
----actions()
--------RestUserAction.php(1KB)
--------RestAction.php(4KB)

网友评论