Trac

RFC - Restful Doctrine

Extention to doctrine that aims to make it simple to expose Doctrine Models as RESTful resources.

The extention should be easy to configure via YAML config files and work with minimal hassle.

Example usage

In this example the model Person is defined with the following fields

  • name
  • username
  • password
  • email
  • status
  • created_at
  • updated_at

Exposing this record in the default unsecured way should make the following possible

Security

It should be possible when configuring the service to allow some operations to be secured and to specify what method of security and what model to check against the security for.

In the person example above it could be nice to say that

  • HTTP_BASIC_AUTH is the security method
  • on update and delete operations you need to authenticate as self via username:password