Changes between Version 52 and Version 53 of S3REST
- Timestamp:
- 07/04/10 15:51:45 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
S3REST
v52 v53 17 17 [[Image(s3rest.png)]] 18 18 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.19 Instead 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. 20 20 21 21 === REST Methods === … … 23 23 It is critical to understand how RESTful requests work. 24 24 25 A RESTful request shas two components:25 A RESTful request has two components: 26 26 27 27 - 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: 29 29 - GET, PUT, POST or DELETE 30 30 31 A resource in this terminology is either of:31 A resource in this terminology is either: 32 32 33 33 - a database table or one or more records in that table … … 41 41 - 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 42 42 - 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 43 44 === CRUD Method Handlers === 44 45