aboutsummaryrefslogtreecommitdiffstats
path: root/modules/structs
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-09-04 20:10:15 +0200
committerGitHub <noreply@github.com>2020-09-04 14:10:15 -0400
commit2a52aeec496b9b1581917124c1002b46f4304b37 (patch)
treeb55eafaf95878f1bbf54618fe09caeb5f96305f2 /modules/structs
parent45c0ec31525853b9cfdbd09dc4f41aaeeacdb44c (diff)
downloadgitea-2a52aeec496b9b1581917124c1002b46f4304b37.tar.gz
gitea-2a52aeec496b9b1581917124c1002b46f4304b37.zip
API: Expose its limitation settings (#12714)
* API: Expose its limitation settings * TESTs Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'modules/structs')
-rw-r--r--modules/structs/settings.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/structs/settings.go b/modules/structs/settings.go
index 4a6e0ce5a8..f1ff1344ea 100644
--- a/modules/structs/settings.go
+++ b/modules/structs/settings.go
@@ -14,3 +14,11 @@ type GeneralRepoSettings struct {
type GeneralUISettings struct {
AllowedReactions []string `json:"allowed_reactions"`
}
+
+// GeneralAPISettings contains global api settings exposed by it
+type GeneralAPISettings struct {
+ MaxResponseItems int `json:"max_response_items"`
+ DefaultPagingNum int `json:"default_paging_num"`
+ DefaultGitTreesPerPage int `json:"default_git_trees_per_page"`
+ DefaultMaxBlobSize int64 `json:"default_max_blob_size"`
+}