Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devigner/kunstmaan-api-bundle
Kunstmaan API Layer
https://github.com/devigner/kunstmaan-api-bundle
json-api kunstmaan symfony-bundle
Last synced: 13 days ago
JSON representation
Kunstmaan API Layer
- Host: GitHub
- URL: https://github.com/devigner/kunstmaan-api-bundle
- Owner: devigner
- License: mit
- Created: 2019-07-04T14:36:54.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-26T07:56:22.000Z (about 5 years ago)
- Last Synced: 2024-11-15T21:53:29.718Z (about 1 month ago)
- Topics: json-api, kunstmaan, symfony-bundle
- Language: PHP
- Size: 106 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kunstmaan API Bundle
See [example/]() for an example implementation
Api layer for [https://github.com/Kunstmaan/KunstmaanBundlesCMS]()
`composer require devigner/kunstmaan-api-bundle`
# How to
## Page
Every Entity that implements `Kunstmaan\NodeBundle\Entity\PageInterface` that needs API exposure needs to:
- Implement `Devigner\KunstmaanApiBundle\Entity\PageModelInterface`.
- Have a model based upon `Devigner\KunstmaanApiBundle\Model\PageEntityInterface`.## Overview Page
If an overview page is needed (eg Newspage) you need to implement:
`Devigner\KunstmaanApiBundle\Entity\EntityInjectionInterface`## PagePart
Every Entity that implements `Kunstmaan\PagePartBundle\Helper\PagePartInterface` that needs API exposure needs to:
- Implement `Devigner\KunstmaanApiBundle\Entity\PagePartsModelInterface`.
- Have a model based upon `Devigner\KunstmaanApiBundle\Model\PagePartsEntityInterface`.# Service
Devigner\KunstmaanApiBundle\EventListener\SlugEventListener:
arguments:
- '%kunstmaan_menu.menus%'