Changes between Version 63 and Version 64 of RESTController


Ignore:
Timestamp:
10/23/10 20:05:52 (14 years ago)
Author:
Fran Boon
Comment:

s3_rest_controller, etc

Legend:

Unmodified
Added
Removed
Modified
  • RESTController

    v63 v64  
    88== Introduction ==
    99
    10 The so called '''REST Controller''' (function {{{shn_rest_controller()}}}) is a wrapper function for the RESTful API of the [wiki:S3XRC_S3Resource S3Resource] class.
     10The so called '''REST Controller''' (function {{{s3_rest_controller()}}}) is a wrapper function for the RESTful API of the [wiki:S3XRC_S3Resource S3Resource] class.
    1111
    1212The [wiki:S3XRC_S3Resource S3Resource] class implements a generic '''RESTful API''' ([http://en.wikipedia.org/wiki/Representational_State_Transfer Representational State Transfer]) for Sahana Eden database resources, which maps HTTP requests (i.e., URLs and HTTP methods like GET, PUT, DELETE etc.) to internal data stores (e.g. database resources) and methods (e.g. CRUD), and applies the methods by calling so called ''method handlers''.
    1313
    14 Method handlers are to be provided by the calling controller via hooks. The function {{{shn_rest_controller()}}} simplifies the use of the REST interface and provides a number of pre-configured standard CRUD method handlers.
    15 
    16 These default method handlers as well as {{{shn_rest_controller()}}} itself are implemented in:
    17 
    18   * {{{models/01_crud.py}}}.
    19 
    20 The method handlers of {{{01_crud.py}}} support a number of data representation formats:
     14Method handlers are to be provided by the calling controller via hooks. The function {{{s3_rest_controller()}}} simplifies the use of the REST interface and provides a number of pre-configured standard CRUD method handlers.
     15
     16These default method handlers as well as {{{s3_rest_controller()}}} itself are implemented in:
     17
     18  * {{{modules/s3xrc/s3crud.py}}}.
     19
     20The method handlers of {{{s3crud.py}}} support a number of data representation formats:
    2121
    2222    * HTML (including autogenerated Create/Update forms)