Version 13 (modified by Fran Boon, 14 years ago) ( diff )



This page hosts detailed specifications for Blueprint for the RESTful API.

Basic approach for the S3 architecture is to have a Web Services backend & a Javascript client front end. RESTful APIs make this easier.

Web2Py generates URLs in this format:


These are generally fairly RESTful anyway, e.g.:


Is there much benefit in chaning to URLs like:


We want to be able extending this for exporting raw data in other formats, e.g. using the optional vars:


Web2Py already supports export as JSON, CSV & RTF.

It would be best for us to add support to the framework to make it easy for module writers to have this functionality within their controllers.

Discussion of changes to Web2Py to make it more RESTful:

NB Web2Py currently doesn't support HTTP PUT/DELETE/UPDATE (only GET).
This means a little work in clients but isn't too bad if we maintain consistency: no variations between add/create, view/display, edit/update, etc

Web Services

Allows multiple client UIs

REST instead of SOAP

Less bloat, more GIS-friendly.

Python REST Servers

Python REST Clients

Note: See TracWiki for help on using the wiki.