It looks like I could use request.restful for that, but to be honest I find that mechanism somewhat awkward. Creating functions as local variables and then returning locals() just seems gross to me. :-)
But from the other side of things, I guess the question is, if we can do that, is there ever any reason to use the "service" mechanism at all? Or can request.restful do everything service can do, and more? On Sunday, December 4, 2016 at 3:24:35 AM UTC-8, Leonel Câmara wrote: > > I'm using @request.restful for this instead of @service.json. Then just > return json using response.json. > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.

