[web2py] Re: @request.restful() endpoints 404 when not localhost

2013-06-17 Thread Massimo Di Pierro
The problem is thet your restful API probably uses JSON. you still need to create a view for it. For security reasons default generic views only work from localhost. On Monday, 17 June 2013 10:41:33 UTC-5, Eduardo Cruz wrote: > > I have made an restful api and it works perfectly on localhost but

Re: [web2py] Re: `@request.restful()` giving errors

2013-01-02 Thread Alec Taylor
Ahh, silly me. This is why I shouldn't code so late (early)! Thanks On Thu, Jan 3, 2013 at 1:13 AM, DenesL wrote: > Hi Alec, > > you are missing the return at the end of the function (additional to the > one in the GET), e.g. > > return locals() > > at the very end. > > Denes > > > On Wednesda

[web2py] Re: `@request.restful()` giving errors

2013-01-02 Thread DenesL
Hi Alec, you are missing the return at the end of the function (additional to the one in the GET), e.g. return locals() at the very end. Denes On Wednesday, January 2, 2013 6:28:29 AM UTC-5, Alec Taylor wrote: > > I have this simple controller: > > @request.restful()def fevent(): > def GE

[web2py] Re: @request.restful args...bug or feature?

2012-12-03 Thread Massimo Di Pierro
Perhaps restful should take an argument to prevent that. By default is essumes restful requests terminate in .extension On Monday, December 3, 2012 5:24:00 PM UTC-6, howesc wrote: > > Hi all, > > i'm trying to parse some data with a restful request that has arguments. > my GET looks something l

[web2py] Re: @request.restful() ??

2011-09-26 Thread Anaconda
http://www.reddit.com/r/programming/comments/g5hxq/web2py_trunk_has_a_new_restful_api_that_writes_db/c1l2ykg Just found this wonderful tutorial on reddit!! Thanks Massimo! Hopefully we can get a reference or snippet in the book. On Sep 26, 11:21 pm, Anaconda wrote: > I have been learning the web