Changes between Version 36 and Version 37 of RESTController


Ignore:
Timestamp:
05/14/10 07:09:18 (12 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RESTController

    v36 v37  
    5353The '''data exchange format''' of the request can be passed:
    5454
    55   * as extension to the resource, e.g. http://localhost:8000/sahana/pr/person.xml/1
    56   * as extension to any of the arguments, e.g. http://localhost:8000/sahana/pr/person/1/address/create.xml
    57   * as explicit variable "format", e.g. http://localhost:8000/sahana/pr/person/1/address?format=xml
     55  * as extension to the resource, e.g. http://localhost:8000/eden/pr/person.xml/1
     56  * as extension to any of the arguments, e.g. http://localhost:8000/eden/pr/person/1/address/create.xml
     57  * as explicit variable "format", e.g. http://localhost:8000/eden/pr/person/1/address?format=xml
    5858
    5959If multiple extensions are specified, the rightmost extension applies. Where ''?format='' is specified, it overrides any extensions.
     
    129129{{{
    130130def kit():
    131     "RESTlike CRUD controller"
     131    "REST CRUD controller"
    132132    response.s3.pdf = URL(r=request, f='kit_export_pdf')
    133133    response.s3.xls = URL(r=request, f='kit_export_xls')