arguv/crud-api-bundle

Symfony bundle for CRUD API

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

pkg:composer/arguv/crud-api-bundle

dev-master 2020-06-28 13:09 UTC

This package is auto-updated.

Last update: 2025-09-10 17:47:14 UTC


README

Composer

composer require arguv/crud-api-bundle:dev-master

AppKernel

Include the bundle in your AppKernel

public function registerBundles()
{
    $bundles = [
        ...
        new Arguv\CrudApiBundle\CrudApiBundle(),

Routing

arguv_crud_api:
    resource: '@CrudApiBundle/Controller/'
    type:     annotation

Doctrine

php bin/console doctrine:schema:update --force

CRUD

GET   /arguv/list
GET   /arguv/list/{id}
POST  /arguv/create
POST  /arguv/update/{id}
POST  /arguv/delete/{id}

JSON

[
   {
      "name": "Smith",
      "description": "Willard Carroll Smith Jr. is an American actor and rapper."
   }
]