summaryrefslogtreecommitdiffstats
path: root/docs/content/doc/advanced/config-cheat-sheet.zh-cn.md
diff options
context:
space:
mode:
authorRichard Mahn <richmahn@users.noreply.github.com>2019-02-06 11:19:26 -0700
committerzeripath <art27@cantab.net>2019-02-06 18:19:26 +0000
commitda1edbfb79566e9d31f43ee85eb2e9fc9b52695b (patch)
tree6e81098a8ddb5695b52a6a136bb24286fb8a8c9b /docs/content/doc/advanced/config-cheat-sheet.zh-cn.md
parent0c840a924a9a78556dafdc3e558bdcfe3c704201 (diff)
downloadgitea-da1edbfb79566e9d31f43ee85eb2e9fc9b52695b.tar.gz
gitea-da1edbfb79566e9d31f43ee85eb2e9fc9b52695b.zip
Feature - Pagination for git tree API (#5838)
* Feature - Pagination for git tree API * Handles case when page is negative * Does a for loop over the start and end rather than all entries * Removed redundent logic * Adds per_page as a query parameter * Adds DEFAULT_GIT_TREES_PER_PAGE for settings, ran make fmt * Fix typo in cheat-sheet en * Makes page start at 1, generated swagger * Use updates to SDK * Updates to use latest sdk * Updates swagger for tree api * Adds test for GetTreeBySHA * Updates per PR reviews * Updates per PR reviews * Remove file * Formatting * Fix to swagger file * Fix to swagger * Update v1_json.tmpl * Fix to swagger file
Diffstat (limited to 'docs/content/doc/advanced/config-cheat-sheet.zh-cn.md')
-rw-r--r--docs/content/doc/advanced/config-cheat-sheet.zh-cn.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/content/doc/advanced/config-cheat-sheet.zh-cn.md b/docs/content/doc/advanced/config-cheat-sheet.zh-cn.md
index 990d4d42f4..2f02513511 100644
--- a/docs/content/doc/advanced/config-cheat-sheet.zh-cn.md
+++ b/docs/content/doc/advanced/config-cheat-sheet.zh-cn.md
@@ -199,6 +199,7 @@ menu:
- `ENABLE_SWAGGER`: **true**: 是否启用swagger路由 /api/swagger, /api/v1/swagger etc. endpoints. True 或 false; 默认是 true.
- `MAX_RESPONSE_ITEMS`: **50**: 一个页面最大的项目数。
- `DEFAULT_PAGING_NUM`: **30**: API中默认分页条数。
+- `DEFAULT_GIT_TREES_PER_PAGE`: **1000**: GIT TREES API每页的默认和最大项数.
## Markup (`markup`)