This component has for purpose to provide a simple REST API with no development.
- Your entity repository must implement our
ResourceRepositoryInterface
- Import our controller on your routing file
rest_resources:
resource: '@RestResourcesBundle/Resources/config/routing.yaml'
- Create your *.resource.yml
ex. users.resource.yml
file with therestresources:file:create
command
The API security is handled by the Symfony voters we use the following attributes :
- list
- retrieve
- create
- update
- delete
- CREATE_{$childResource} (this one is special see. Child resources)
- Each
GET
andCGET
actions has a_group
parameters which must match your serializer "Groups" annotation, the default used isminimal
. EntityMetadataFilterTrait
allow you to filter on each entity fields of the resource
##Child resources
Sorry.