Changes between Version 52 and Version 53 of RESTController


Ignore:
Timestamp:
08/22/10 18:42:23 (14 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RESTController

    v52 v53  
    33= REST Controller =
    44
    5 The so called '''REST Controller''' (function ''shn_rest_controller()'') is a wrapper function for the REST interface of the [wiki:S3XRC_S3Resource S3Resource].
     5The so called '''REST Controller''' (function {{{shn_rest_controller()}}}) is a wrapper function for the REST interface of the [wiki:S3XRC_S3Resource S3Resource].
    66
    77[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.
     
    99In 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.
    1010
    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 in
     11The 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:
    1212
    1313  * {{{models/01_crud.py}}}.