composer require arguv/crud-api-bundle:dev-master
Include the bundle in your AppKernel
public function registerBundles()
{
$bundles = [
...
new Arguv\CrudApiBundle\CrudApiBundle(),
arguv_crud_api:
resource: '@CrudApiBundle/Controller/'
type: annotation
php bin/console doctrine:schema:update --force
GET /arguv/list
GET /arguv/list/{id}
POST /arguv/create
POST /arguv/update/{id}
POST /arguv/delete/{id}
[
{
"name": "Smith",
"description": "Willard Carroll Smith Jr. is an American actor and rapper."
}
]
How can I help you explore Laravel packages today?