Changes between Version 7 and Version 8 of DeveloperGuidelines/Tutorial/RESTCustomisation


Ignore:
Timestamp:
06/11/10 21:16:24 (14 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Tutorial/RESTCustomisation

    v7 v8  
    103103Now 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:
    104104
    105   - '''http://site.myserver.org/eden/wm/warehouse/report'''
     105  - '''!http://site.myserver.org/eden/wm/warehouse/report'''
    106106
    107107
    108108and is provided in several different data formats beyond HTML (the interactive view), let's say - XLS and XML:
    109109
    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'''
    112112
    113113How to tackle this?
     
    200200
    201201This 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'''
    203203
    204204This 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'''
    206206
    207207This 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'''
    209209
    210210The S3RESTRequest provides the resource information to your warehouse_report function.