binkabir / faker.ng

Faker.ng is a library for generating Nigerian fake data such as names, addresses, and phone numbers.
31 stars 15 forks source link

the need to add pagination #14

Open binkabir opened 8 years ago

binkabir commented 8 years ago

Hi all, we need to add pagination to the returned query, now that I have added the response limit to 50 (by default), the returned json need to have more information about the remain responses, im proposing a structure like this:

{
size: 50,                                                               
next_page: "/api/v1/faker/people/50/3"  
previous_page: "/api/v1/faker/people/50/1"
response: [........]
}```