arguv / crud-api-bundle
Symfony bundle for CRUD API
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.6
- doctrine/doctrine-bundle: ^1.6
- doctrine/orm: ^2.5
- symfony/framework-bundle: ^3.4
This package is auto-updated.
Last update: 2024-09-10 15:46:59 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." } ]