Changes between Version 12 and Version 13 of S3REST


Ignore:
Timestamp:
03/01/10 01:50:36 (12 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3REST

    v12 v13  
    1313
    1414s3rest uses the XRequest class (described below) to represent the current REST request, instead of the web2py request object. Other than web2py/request, the XRequest of the current call is not a global object, but passed as argument when calling REST method handlers.
     15
     16=== REST Methods ===
     17
     18It is critical to understand that RESTful requests have two components that determine the response:
     19
     20  - the URL addresses the resource
     21  - the HTTP method determines the action to be taken with that resource
     22
     23Thus, a HTTP/GET of an URL means something completely different than HTTP/PUT or HTTP/DELETE.
     24
     25A resource in this terminology is either of:
     26
     27  - a database table or one or more records in that table
     28  - a combination of tables or records (so called "compound" or "joined" resources)
     29  - a function in the application related to one of the above resource types
     30
    1531=== Method Handlers ===
    1632