A set of utils and actions for build API following JSON:Api specification, based on league/fractal
MIT License
The set of utils and actions for prepare Rest API accordingly JSON:Api https://jsonapi.org/format/ With https://fractal.thephpleague.com
composer require insolita/yii2-fractal
Add class insolita\fractal\JsonApiBootstrap
to the 'bootstrap' section of api application config
(or update application config manually with same changes as in JsonApiBootstrap
class )
see tests/testapp/config/api.php.
Create your controller classes by extending JsonApiController
or JsonApiActiveController
which contains predefined
CRUD actions.
See examples at tests/testapp/controllers.
make up
make installdocker
make testdocker
or make cli
and inside docker env make test