Good grief! Very sorry. I was too bleary eyed, seeing it was after 01:30 
GMT. I read the doc but somehow still couldn't see it. Thanks Tony for your 
time. Very much appreciated. 

On Tuesday, 23 February 2016 05:10:20 UTC, Anthony wrote:
>
> Please see the documentation: 
> http://web2py.com/books/default/chapter/29/10/services#parse_as_rest--experimental-
>
> You must specify the "offset" and "limit" variables in the query string 
> (they default to 0 and 1000, respectively).
>
> Anthony
>
> On Monday, February 22, 2016 at 8:16:27 PM UTC-5, Seraaj Muneer wrote:
>>
>> Hello everyone, I've the following code 
>>
>> @request.restful()
>> def api():
>>     response.view = 'generic.json'
>>     def GET(*args, **vars):
>>         patterns = 'auto'
>>         parser = db.parse_as_rest(patterns, args, vars)
>>         if parser.status == 200:
>>             return dict(banks=parser.response)
>>         else:
>>             raise HTTP(parser.status, parser.error)
>>
>>     def POST(table_name, **vars):
>>         return db[table_name].validate_and_insert(**vars)
>>
>>     def PUT(table_name, record_id, **vars):
>>         return db(db[table_name]._id == record_id).update(**vars)
>>     def DELETE(table_name,record_id):
>>             pass
>>
>>     return dict(GET=GET, POST=POST, PUT=PUT, DELETE=DELETE)
>>
>>
>> which is a simple rest service I'm testing. I've dummy data in the db of 
>> 10000 records. However, this service only returns 1000. So how do I page, or 
>> get the service to return everything. I am using Mariadb on Ubuntu 14.04.
>>
>>
>> Thanks
>>
>>

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

Reply via email to