i suspect that in your case PUT and DELETE would look a lot like POST. not sure the exact code for your use case, but i know it's possible to have PUT and DELETE methods.
On Wednesday, June 20, 2012 9:30:26 AM UTC-7, Osama Hussain wrote: > > Using the following code web2py generated all possible patterns for all my > tables for GET and POST methods: > > @request.restful() > def api(): > response.view = 'generic.'+request.extension > def GET(*args,**vars): > patterns = 'auto' > parser = db.parse_as_rest(patterns,args,vars) > if parser.status == 200: > return dict(content=parser.response) > else: > raise HTTP(parser.status,parser.error) > def POST(table_name,**vars): > return db[table_name].validate_and_insert(**vars) > return locals() > > > Is it possible to have patterns generated for PUT and DELETE methods? > >