diff options
author | Nihad Abbasov <narkoz.2008@gmail.com> | 2012-09-03 15:46:29 +0400 |
---|---|---|
committer | Nihad Abbasov <narkoz.2008@gmail.com> | 2012-09-03 15:46:29 +0400 |
commit | 76e4d94d432b19d7dd58503c5eac46811630c04a (patch) | |
tree | 25d3df538ef33fcd3298672bfca8ef751e9fda22 /doc/api | |
parent | 6817a6a2952bc6af74eb239982ed337f90897f98 (diff) |
add pagination to API
Diffstat (limited to 'doc/api')
-rw-r--r-- | doc/api/README.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/api/README.md b/doc/api/README.md index 53b4983ef47..3a6c7b7682a 100644 --- a/doc/api/README.md +++ b/doc/api/README.md @@ -23,6 +23,13 @@ GET http://example.com/api/v2/projects?private_token=QVy1PB7sTxfy4pqfZM1U The API uses JSON to serialize data. You don't need to specify `.json` at the end of API URL. +#### Pagination + +When listing resources you can pass the following parameters: + ++ `page` (default: `1`) - page number ++ `per_page` (default: `20`, max: `100`) - how many items to list per page + ## Contents + [Users](https://github.com/gitlabhq/gitlabhq/blob/master/doc/api/users.md) |