insolita/yii2-fractal
Composer 安装命令:
composer require insolita/yii2-fractal
包简介
Json-api spec implementation with league/fractal
关键字:
README 文档
README
The set of utils and actions for prepare Rest API accordingly JSON:Api https://jsonapi.org/format/ With https://fractal.thephpleague.com
Installation
composer require insolita/yii2-fractal
Usage
-
Add class
insolita\fractal\JsonApiBootstrapto the 'bootstrap' section of api application config (or update application config manually with same changes as inJsonApiBootstrapclass ) see tests/testapp/config/api.php. -
Create your controller classes by extending
JsonApiControllerorJsonApiActiveControllerwhich contains predefined CRUD actions. See examples at tests/testapp/controllers.
Testing
- Clone project
- Run
make up - Run once
make installdocker - Run
make testdockerormake cliand inside docker envmake test
统计信息
- 总下载量: 14.91k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-09-22