PHPackages                             dreadlabs/kunstmaan-content-api-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. dreadlabs/kunstmaan-content-api-bundle

AbandonedArchivedSymfony-bundle[HTTP &amp; Networking](/categories/http)

dreadlabs/kunstmaan-content-api-bundle
======================================

Integrates a media type listener and a Content API layer into a Kunstmaan CMS instance.

0.1.2(9y ago)1581MITPHP

Since Sep 23Pushed 9y ago1 watchersCompare

[ Source](https://github.com/DreadLabs/KunstmaanContentApiBundle)[ Packagist](https://packagist.org/packages/dreadlabs/kunstmaan-content-api-bundle)[ Docs](http://opensource.van-tomas.de/)[ RSS](/packages/dreadlabs-kunstmaan-content-api-bundle/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (9)Versions (4)Used By (0)

Kunstmaan Content API
=====================

[](#kunstmaan-content-api)

What does it do?
----------------

[](#what-does-it-do)

This bundle configures a Kunstmaan CMS instance in order to easily provide your content through a custom API format.

It uses `willdurand/negotation` in order to inject a `Request` attribute `media_type` which is used to delegate to a serialization of a `Page` entity (`Node`) into a specific response format.

Installation
------------

[](#installation)

```
composer install dreadlabs/kunstmaan-content-api-bundle

```

How to use?
-----------

[](#how-to-use)

1. Load the bundle in your `AppKernel`

    ```
    // snip
    new DreadLabs\KunstmaanContentApiBundle\DreadLabsKunstmaanContentApiBundle()
    // snap

    ```
2. Implement the `Kunstmaan\NodeBundle\Controller\SlugActionInterface` in your `Page` entities, implement the `getControllerAction` and point to the Bundle's `ApiController`:

    ```
    // src/Acme/WebsiteBundle/Entity/Pages/HomePage.php
