sfDoctrineRestGeneratorPlugin - 0.9.1

This plugin permits to generate REST modules bound to Doctrine models.

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
sfDoctrineRestGeneratorPlugin 0.9.1beta for sf 1.4sf 1.3 and Doctrine MIT
Plugin image
32
users
Sign-in
to change
your status

This plugin permits to generate REST modules bound to Doctrine models. It allows to easily create REST webservices, and provides an extensible framework for data exchange. Here are some key features :

  • REST module generation "à la admin-generator"
  • easy-to-customize generator.yml configuration file
  • possibility to embed related models
  • possibility to embed extra fields
  • validation of the GET and POST constraints using Symfony validators
  • ability to limit the number of results, with/out pagination
  • support for constraints unions (ie., http://api.example.org/city?city_id=12,13,14)
  • abstract and replaceable objects serialization

This plugin provides a full-featured generator which allows to bind a REST-style web service to Doctrine models.

The highly customizable REST service permits:

  • to retrieve Doctrine objects
  • to create, update or delete Doctrine objects

The service generation is simply made with the command:

 $ ./symfony doctrine:generate-rest-module APPLICATION MODULE_NAME MODEL_NAME

Please see the documentation for an extensive overview of the plugin capacities.

Developers

Name Status Email
gravatar Xavier Lacot lead gro.tocal <<ta>> reivax

License

Show source

Copyright (c) 2004-2010 Xavier Lacot <xavier@lacot.org>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.