brandonpost/api-platform-couchdb-bundle

API Platform CouchDB Integration


License
MIT

Documentation

API Platform CouchDB Integration

This bundle provides a simple integration of the Doctrine CouchDB into API Platform framework.

Installation

Install the latest version with

$ composer require brandonpost/api-platform-couchdb-bundle

Register the bundle in app/AppKernel.php:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...

        new BrandonPost\APIPlatform\CouchDBBundle\BrandonPostAPIPlatformCouchDBBundle(),
    );
}

Configure

app/config/schema.yml

annotationGenerators:
    - BrandonPost\APIPlatform\CouchDBBundle\AnnotationGenerator\DoctrineCouchDBAnnotationGenerator
namespaces:
    entity: AppBundle\CouchDocument # The default namespace for documents,

Usage

$ bin/schema generate-types src/ app/config/schema.yml

License

The BrandonPostAPIPlatformCouchDBBundle is licensed under the MIT license.