Changes between Version 16 and Version 17 of S3/S3REST/s3_rest_controller
- Timestamp:
- 10/22/10 12:53:25 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
S3/S3REST/s3_rest_controller
v16 v17 8 8 9 9 The so-called '''REST Controller''' (function {{{s3_rest_controller()}}}) is a helper function to easily apply the RESTful API of the S3Resource class to your controller. 10 11 {{{s3_rest_controller}}} does: 12 13 - parse and execute the incoming HTTP request on the specified resource 14 - populate and hand-over view variables 15 - choose and set the response view template ({{{response.view}}}) 10 16 11 17 Using {{{s3_rest_controller}}}, a basic RESTful controller for the {{{pr_image}}} table can look like: … … 20 26 }}} 21 27 22 {{{s3_rest_controller}}} does:28 This exposes all standard methods for this table, including: 23 29 24 - parse and execute the incoming HTTP request on the specified resource 25 - populate and hand-over view variables 26 - choose and set the response view template ({{{response.view}}}) 27 30 - interactive create, read, update, delete and list views 31 - non-interactive data import/export in multiple formats 28 32 == Syntax == 29 33