Changes between Version 36 and Version 37 of RESTController
- Timestamp:
- 05/14/10 07:09:18 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RESTController
v36 v37 53 53 The '''data exchange format''' of the request can be passed: 54 54 55 * as extension to the resource, e.g. http://localhost:8000/ sahana/pr/person.xml/156 * as extension to any of the arguments, e.g. http://localhost:8000/ sahana/pr/person/1/address/create.xml57 * as explicit variable "format", e.g. http://localhost:8000/ sahana/pr/person/1/address?format=xml55 * 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 58 58 59 59 If multiple extensions are specified, the rightmost extension applies. Where ''?format='' is specified, it overrides any extensions. … … 129 129 {{{ 130 130 def kit(): 131 "REST likeCRUD controller"131 "REST CRUD controller" 132 132 response.s3.pdf = URL(r=request, f='kit_export_pdf') 133 133 response.s3.xls = URL(r=request, f='kit_export_xls')