sorry my mistake bad keyboard!!
2015-06-22 15:35 GMT+01:00 António Ramos <ramstei...@gmail.com>: > hello i created this restfull controller > > @request.restful() > def formula(): > response.view = 'generic.json' > > def GET(id=0): #read > temp=[] > print "reading REST API - Formula" > rec= db().select(db.formulas.ALL).as_list() #if id==1 else > db.formulas(id) > return dict(form=rec) if rec else None > > def POST(*args,**vars): # insert > print "insert" > id=db.formulas.validate_and_insert(**vars) > > return dict(id=id) > > def PUT(*args,**vars): > print "actualizando", vars['id'],vars['name'],vars['info'] > db(db.formulas.id > ==vars['id']).update(name=vars['name'],info=vars['info']) > return dict() > return locals() > > > in the browser if i call > http://127.0.0.1:4430/App/default/formula it returns the dictionary with > some data > however if i append some text in the url it still returns the same > dictionary. > > for example > > http://127.0.0.1:4430/App/default/formula*what* > http://127.0.0.1:4430/App/default/formula*shouldnotreturndata* > > still return the same data > > is this a bug? > > > i´m using > 2.9.5-stable+timestamp.2014.03.16.02.35.39 > (Running on Rocket 1.2.6, Python 2.7.0) > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.