On Monday, December 5, 2016 at 12:03:15 PM UTC-8, Anthony wrote:
>
> On Monday, December 5, 2016 at 2:20:59 PM UTC-5, Dave S wrote:
>>
>>
>>
>> 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.
>>>
>>
>> @request.restful is dependent on your field definitions, no?
>>
>
> No, the @request.restful decorator simply maps the incoming request type 
> to the matching nested function and passes *request.args and **request.vars 
> to that function. It has nothing to do with the DAL. The parse_as_rest and 
> smart_query methods are part of the DAL and can be used in conjunction with 
> @request.restful, though they are not required.
>
> Anthony
>

Okay, time for me to re-read.

/dps
' 

-- 
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.

Reply via email to