mirror of
https://codeberg.org/forgejo/docs.git
synced 2025-01-22 02:15:25 -05:00
user: api: explain how to obtain pagination defaults
This commit is contained in:
parent
62d6fc9754
commit
ab5076eea3
1 changed files with 12 additions and 0 deletions
|
@ -93,6 +93,18 @@ curl -v "http://localhost/api/v1/repos/search?limit=1"
|
|||
< x-total-count: 5252
|
||||
```
|
||||
|
||||
The default and maximum values for the `page` parameter can be obtained from the `https://forgejo.your.host/api/v1/settings/api` endpoint.
|
||||
|
||||
```sh
|
||||
$ curl https://codeberg.org/api/v1/settings/api
|
||||
{
|
||||
"max_response_items": 50,
|
||||
"default_paging_num": 30,
|
||||
"default_git_trees_per_page": 1000,
|
||||
"default_max_blob_size": 10485760
|
||||
}
|
||||
```
|
||||
|
||||
## API Guide:
|
||||
|
||||
API Reference guide is auto-generated by swagger and available on:
|
||||
|
|
Loading…
Add table
Reference in a new issue