Search code examples
restsymfonyfosrestbundle

Scaffolding with Symfony2 + FOSRestBundle


I'm newbie with Symfony2 and I need create an REST web service. For each request from client the server should respond with a JSON. I choices FOSRestBundle to do it. Is there some way to Generate entities and their controllers with REST CRUD operations?


Solution

  • Maybe you could have a look at the documentation

    $ php app/console generate:doctrine:crud
    

    There are also 3rd party bundles to generate other things like CRUD for FOSRestBundle: voryx/restgeneratorbundle