https://github.com/cleverage/eav-api-platform-bundle
Dedicated bundle for Sidus/EAVModelBundle compatibility with Api Platform
https://github.com/cleverage/eav-api-platform-bundle
Last synced: 7 months ago
JSON representation
Dedicated bundle for Sidus/EAVModelBundle compatibility with Api Platform
- Host: GitHub
- URL: https://github.com/cleverage/eav-api-platform-bundle
- Owner: cleverage
- License: mit
- Created: 2019-05-18T16:13:54.000Z (almost 7 years ago)
- Default Branch: v1.0-dev
- Last Pushed: 2020-03-10T13:44:10.000Z (about 6 years ago)
- Last Synced: 2025-02-17T13:04:51.853Z (about 1 year ago)
- Language: PHP
- Size: 30.3 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
CleverAge/EAVApiPlatformBundle
=======================
This bundle provides basic support for Sidus/EAVModelBundle with ApiPlatform.
When declaring any family as a resource for the Api, you need to declare a specific class for this family:
[SidusEAVModelBundle/Documentation/12-custom_classes.html](https://vincentchalnot.github.io/SidusEAVModelBundle/Documentation/12-custom_classes.html)
And for Hydra documenation to work you need to annotate your final classes with the ```@Family``` annotation.
Everything else is basic ApiPlatform implementation.
### Installation
Require Api Platform in your composer.json (with the version you need) as well as the EAV compatibility bundle if you
need to expose EAV data:
````yaml
{
# ...
"require": {
# ...
"api-platform/api-platform": "2.1.*",
"cleverage/eav-api-platform-bundle": "1.0.*"
}
}
````
Add the bundles to your kernel:
````php