Changes between Version 7 and Version 8 of DeveloperGuidelines/Tutorial/RESTCustomisation
- Timestamp:
- 06/11/10 21:16:24 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/Tutorial/RESTCustomisation
v7 v8 103 103 Now you're gonna provide this report in a RESTful way, i.e. you want to provide it as a resource that can be addressed via URLs like: 104 104 105 - ''' http://site.myserver.org/eden/wm/warehouse/report'''105 - '''!http://site.myserver.org/eden/wm/warehouse/report''' 106 106 107 107 108 108 and is provided in several different data formats beyond HTML (the interactive view), let's say - XLS and XML: 109 109 110 - ''' http://site.myserver.org/eden/wm/warehouse/report.xls'''111 - ''' http://site.myserver.org/eden/wm/warehouse/report.xml'''110 - '''!http://site.myserver.org/eden/wm/warehouse/report.xls''' 111 - '''!http://site.myserver.org/eden/wm/warehouse/report.xml''' 112 112 113 113 How to tackle this? … … 200 200 201 201 This URL addresses the report for all warehouses: 202 - ''' http://site.myserver.org/eden/wm/warehouse/report'''202 - '''!http://site.myserver.org/eden/wm/warehouse/report''' 203 203 204 204 This URL addresses the report for the warehouse record with ID=1. 205 - ''' http://site.myserver.org/eden/wm/warehouse/1/report'''205 - '''!http://site.myserver.org/eden/wm/warehouse/1/report''' 206 206 207 207 This URL addresses the report in XLS format for the warehouse record with the UUID=123654278 (assuming that you have UUID's in your warehouse table). 208 - ''' http://site.myserver.org/eden/wm/warehouse/report.xls?warehouse.uid=123654278'''208 - '''!http://site.myserver.org/eden/wm/warehouse/report.xls?warehouse.uid=123654278''' 209 209 210 210 The S3RESTRequest provides the resource information to your warehouse_report function.