Download the PHP package voryx/restgeneratorbundle without Composer
On this page you can find all versions of the php package voryx/restgeneratorbundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download voryx/restgeneratorbundle
More information about voryx/restgeneratorbundle
Files in voryx/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
Generate the REST controller
This will guide you through the generator which will generate a RESTful controller for an entity.
Example
Create a new entity called 'Post':
Update the database schema:
Generate the API controller:
Using the API
If you selected the default options you'll be able to start using the API like this:
Creating a new post (POST
)
Updating (PUT
)
Get all posts (GET
)
Get one post (GET
)
Delete (DELETE
)
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
sensio/generator-bundle Version ~3.0
friendsofsymfony/rest-bundle Version ~1.7
jms/serializer-bundle Version ~1.1
nelmio/cors-bundle Version ~1.4