Changes between Version 14 and Version 15 of BluePrintREST


Ignore:
Timestamp:
12/31/08 06:05:06 (16 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BluePrintREST

    v14 v15  
    1414/sahana/gis/add_feature
    1515/sahana/gis/list_features
     16/sahana/gis/features         # List_add
    1617/sahana/gis/display_feature/1
    1718/sahana/gis/update_feature/1
    1819}}}
    19 Is there much benefit in chaning to URLs like:
     20Is there much benefit in changing to URLs like:
    2021{{{
    2122/sahana/gis/feature/create
    2223/sahana/gis/feature/list
    2324/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
    2628}}}
     29or
     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}}}
     36NB T3 requires ID to be the last argument, so won't change in core
    2737
    2838We want to be able extending this for exporting raw data in other formats, e.g. using the optional vars:
     
    3747It 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.
    3848
     49NB Web2Py currently doesn't support HTTP PUT/DELETE/UPDATE (only GET).[[BR]]
     50This 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
    3952Discussion of changes to Web2Py to make it more RESTful:
    4053 * http://groups.google.com/group/web2py/browse_thread/thread/8506105246e319f6/
     
    4457 * http://groups.google.com/group/web2py/browse_thread/thread/b46ff6f35e82f047
    4558 * 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, etc
    5159
    5260=== Web Services ===