Changes between Version 14 and Version 15 of BluePrintREST
- Timestamp:
- 12/31/08 06:05:06 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BluePrintREST
v14 v15 14 14 /sahana/gis/add_feature 15 15 /sahana/gis/list_features 16 /sahana/gis/features # List_add 16 17 /sahana/gis/display_feature/1 17 18 /sahana/gis/update_feature/1 18 19 }}} 19 Is there much benefit in chan ing to URLs like:20 Is there much benefit in changing to URLs like: 20 21 {{{ 21 22 /sahana/gis/feature/create 22 23 /sahana/gis/feature/list 23 24 /sahana/gis/feature/list_add 24 /sahana/gis/feature/display/x 25 /sahana/gis/feature/update/x 25 /sahana/gis/feature/display/id 26 /sahana/gis/feature/update/id 27 /sahana/gis/feature/delete/id 26 28 }}} 29 or 30 {{{ 31 /sahana/gis/feature # Acts as 'list' 32 /sahana/gis/feature/id # Acts as 'display' 33 /sahana/gis/feature/id/update 34 /sahana/gis/feature/id/delete 35 }}} 36 NB T3 requires ID to be the last argument, so won't change in core 27 37 28 38 We want to be able extending this for exporting raw data in other formats, e.g. using the optional vars: … … 37 47 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. 38 48 49 NB Web2Py currently doesn't support HTTP PUT/DELETE/UPDATE (only GET).[[BR]] 50 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 51 39 52 Discussion of changes to Web2Py to make it more RESTful: 40 53 * http://groups.google.com/group/web2py/browse_thread/thread/8506105246e319f6/ … … 44 57 * http://groups.google.com/group/web2py/browse_thread/thread/b46ff6f35e82f047 45 58 * http://groups.google.com/group/web2py/browse_thread/thread/613d4ac6f87ad413/ 46 47 48 49 NB Web2Py currently doesn't support HTTP PUT/DELETE/UPDATE (only GET).[[BR]]50 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, etc51 59 52 60 === Web Services ===