Changes between Version 35 and Version 36 of S3REST


Ignore:
Timestamp:
05/14/10 07:21:40 (12 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3REST

    v35 v36  
    22= S3REST =
    33
    4 == s3rest ==
     4== S3RESTController ==
    55
    6 s3rest is a callable global object which implements the RESTful interface for the S3 framework (instance of S3RESTController). This interface can be configured dynamically, and can easily be used to build RESTful controllers throughout the application.
     6The S3RESTController class implements a generic RESTful interface for database resources in S3. This class is instantiated once per request as the global callable'''s3rest''' object.
     7
     8'''s3rest''' can be configured dynamically, and can easily be used to build RESTful controllers throughout the application.
    79
    810Important: an s3rest instance is created per request and must not be stored or referenced by static objects to avoid memory leaks!
     
    1214[[Image(s3rest.png)]]
    1315
    14 s3rest is an instance of the RESTController class, implemented in modules/s3rest.py.
    15 
    16 Instead of the web2py ''request'' object, s3rest uses the ''[#S3RESTRequest S3RESTRequest]'' class (described below) to represent the current REST request. Other than web2py/request, the S3RESTRequest of the current call is not a global object, but gets passed as argument when calling REST method handlers.
     16Instead of the web2py ''request'' object, '''s3rest''' uses the ''[#S3RESTRequest S3RESTRequest]'' class (described below) to represent the current REST request. Other than web2py/request, the S3RESTRequest of the current call is not a global object, but gets passed as argument when calling REST method handlers.
    1717
    1818=== REST Methods ===