Changes between Version 52 and Version 53 of RESTController
- Timestamp:
- 08/22/10 18:42:23 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RESTController
v52 v53 3 3 = REST Controller = 4 4 5 The so called '''REST Controller''' (function ''shn_rest_controller()'') is a wrapper function for the REST interface of the [wiki:S3XRC_S3Resource S3Resource].5 The so called '''REST Controller''' (function {{{shn_rest_controller()}}}) is a wrapper function for the REST interface of the [wiki:S3XRC_S3Resource S3Resource]. 6 6 7 7 [wiki:S3XRC_S3Resource S3Resource] objects provide a generic '''RESTful API''' ([http://en.wikipedia.org/wiki/Representational_State_Transfer Representational State Transfer]) for Sahana Eden database resources, i.e. they can map HTTP requests to data resources and function calls. … … 9 9 In particular, they map resource addresses (=URL's) and HTTP methods (=GET, PUT, DELETE etc.) to CRUD actions, and then invoke so called ''method handlers'' (provided by the calling controller via hooks) to execute those actions. 10 10 11 The function {{{shn_rest_controller()}}} which provides a number of generic CRUD method handlers. These method handlers as well as the REST controller itself are implemented in11 The function {{{shn_rest_controller()}}} provides a number of generic CRUD method handlers. These method handlers as well as {{{shn_rest_controller()}}} itself are implemented in: 12 12 13 13 * {{{models/01_crud.py}}}.