Change Summary:
* Removed action support. This isn't very RESTful and we don't actually need it in Review Board. No sense in having an extra feature just for the sake of it. * Added a @webapi_request_fields decorator that allows a get/update/create handler specify and validate optional and required parameters in the request. This also provides some documentation for the fields, which will be able to be introspected for automatic documentation generation. * Added automatic parent resource calculation, removing the need to create the complex get_href_parent_ids functions. Now a single model_parent_key variable just needs to be set on a resource. * Added properties that can be overridden for the result keys for objects and lists and the resource name in the URI. * Added a RootResource class that makes it easy to create a root resource linking to top-level resources in a tree. This is browseable. * Made it easier to have resources that don't require Django models. * Added has_modify_permissions to UserResource. * Renamed the instantiated userResource and groupResource variables to user_resource and group_resource.
Diff: |
Revision 2 (+814 -38) |
---|