Changes between Version 52 and Version 53 of S3REST


Ignore:
Timestamp:
07/04/10 15:51:45 (11 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3REST

    v52 v53  
    1717[[Image(s3rest.png)]]
    1818
    19 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.
     19Instead of the web2py ''request'' object, '''s3rest''' uses the ''[#S3RESTRequest S3RESTRequest]'' class (described below) to represent the current REST request. Unlike web2py's request, the S3RESTRequest of the current call is not a global object, but gets passed as argument when calling REST method handlers.
    2020
    2121=== REST Methods ===
     
    2323It is critical to understand how RESTful requests work.
    2424
    25 A RESTful requests has two components:
     25A RESTful request has two components:
    2626
    2727  - the '''URL''' addresses the resource
    28   - the '''HTTP method''' determines the action to be taken with that resource, which is either of:
     28  - the '''HTTP method''' determines the action to be taken with that resource, which is either:
    2929    - GET, PUT, POST or DELETE
    3030
    31 A resource in this terminology is either of:
     31A resource in this terminology is either:
    3232
    3333  - a database table or one or more records in that table
     
    4141  - if the method is "GET" and the resource addressed is a database table, then the response will be a list of the records in that table
    4242  - if the method is "PUT" and the resource addressed is a record in a table, then the response will be an update of that record with the data from the request body
     43
    4344=== CRUD Method Handlers ===
    4445