Changes between Version 31 and Version 32 of RESTController


Ignore:
Timestamp:
04/06/10 23:17:24 (15 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RESTController

    v31 v32  
    55Available since: [https://code.launchpad.net/~flavour/sahana/sahanapy-trunk Main Trunk] Revision 358+
    66
    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.
     7'''S3REST''' provides a generic '''RESTful API''' ([http://en.wikipedia.org/wiki/Representational_State_Transfer Representational State Transfer]) for !SahanaPy database resources, i.e. it can map HTTP requests to data resources and function calls. In particular, it maps resource addresses (=URL's) and HTTP methods (=GET, PUT, DELETE etc.) to CRUD actions, and then invokes so called ''method handlers'' (provided by the controller) to execute those actions.
    88
    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.
     9The so called '''REST Controller''' (function shn_rest_controller()) is wrapper function for S3REST, providing generic CRUD method handlers. These method handlers as well as the REST controller itself are implemented in models/01_crud.py.
    1010
    1111The method handlers support a number of representation formats: