php-openapi/yii2-fractal
Composer 安装命令:
composer require php-openapi/yii2-fractal
包简介
Json-api spec implementation with league/fractal, forked from Insolita (RIP)
关键字:
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 php-openapi/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.
Contributing / Local Development / Testing
See CONTRIBUTING.md file
License
See LICENSE file
统计信息
- 总下载量: 4.21k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-06-04