Download the PHP package testabit/restgeneratorbundle without Composer
On this page you can find all versions of the php package testabit/restgeneratorbundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download testabit/restgeneratorbundle
More information about testabit/restgeneratorbundle
Files in testabit/restgeneratorbundle
Package restgeneratorbundle
Short Description REST API Generator for Symfony 2
License MIT
Informations about the package restgeneratorbundle
Voryx REST Generator Bundle
About
A CRUD like REST Generator
Features
- Generators RESTful action from entity
- Simplifies setting up a RESTful Controller
Installation
Require the "voryx/restgeneratorbundle" package in your composer.json and update your dependencies.
Add the VoryxRestGeneratorBundle to your application's kernel along with other dependencies:
Configuration
This bundle depends on a number of other symfony bundles, so they need to be configured in order for the generator to work properly
Generating the Controller
Right now, the generator uses forms created by the doctrine generator. You must create these to use the generated controller. (If you don't create them prior to running the voryx:generate:rest command, you will get an error, but it will still work if you just create them afterwards)
Generate the REST controller
This will guide you through the generator which will generate a RESTful controller for an entity.
You will still need to Add a route for each generated entity: (Hopefully this will be added to the generator soon)
Related Entities
If you want the form to be able to convert related entities into the correct entity id on POST, PUT or PATCH, use the voryx_entity form type
All versions of restgeneratorbundle with dependencies
friendsofsymfony/rest-bundle Version 1.2.*@dev
jms/serializer-bundle Version 0.12.*@dev
nelmio/cors-bundle Version 1.2.*@dev
symfony/serializer Version 2.4.*