2017 © Pedro Peláez
 

symfony-bundle lazy-rest-api-bundle

generate a Rest Hal APi on top of doctrine orm

image

virhi/lazy-rest-api-bundle

generate a Rest Hal APi on top of doctrine orm

  • Sunday, March 29, 2015
  • by virhi
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

LazyRestApiBundle

Generate easily and automatically a API REST whit doctrine. CRUD action are available., (*1)

alt text, (*2)

Installation

Edit your composer.json:, (*3)

"require": {
    "virhi/lazy-rest-api-bundle" : "master"
}

And run Composer:, (*4)

php composer.phar update virhi/lazy-rest-api-bundle

Enable your bundle in your AppKernel.php:, (*5)

// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Virhi\LazyRestApiBundle\VirhiLazyRestApiBundle(),
    );
}

Edit your config, (*6)

virhi_lazy_rest_api:
    manager: Manager

You can choose the expose entity and action available on the entity, (*7)

virhi_lazy_rest_api:
    manager: Manager
    expose_entities:
        your_entity: { entity_name: Namespace\YourEntity, edit_mode: false, delete_mode: true, create_mode: true }

Documentation, (*8)

The Versions