Changes between Version 30 and Version 31 of RESTController
- Timestamp:
- 04/06/10 23:09:25 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RESTController
v30 v31 5 5 Available since: [https://code.launchpad.net/~flavour/sahana/sahanapy-trunk Main Trunk] Revision 358+ 6 6 7 See also: [wiki:S3REST S3REST], [wiki:S3XRC S3XRC] 7 '''S3REST''' provides a generic '''RESTful API''' ([http://en.wikipedia.org/wiki/Representational_State_Transfer Representational State Transfer]) for !SahanaPy database resources, which maps HTTP requests to data resources and function calls. In particular, it maps resource addresses (=URL's) and HTTP methods (GET, PUT, DELETE) to CRUD actions, and invokes so called ''method handlers'' to execute them. 8 8 9 The "REST Controller" is a S3 framework component that provides a generic RESTful ([http://en.wikipedia.org/wiki/Representational_State_Transfer Representational State Transfer]) API for !SahanaPy database resources.9 The so called '''REST Controller''' (function shn_rest_controller() in models/01_crud.py) is wrapper function for S3REST, providing generic CRUD method handlers. 10 10 11 The main function of the REST Controller is: 12 13 * '''shn_rest_controller''' (defined in models/01_RESTlike_controller.py) 14 15 The controller supports a number of representation formats: 11 The method handlers support a number of representation formats: 16 12 17 13 * HTML (including autogenerated Create/Update forms) … … 22 18 * [wiki:S3XRC JSON] as light-weight alternative for AJAX-style resource access 23 19 20 See also: [wiki:S3REST S3REST], [wiki:S3XRC S3XRC] 24 21 == Resources == 25 22