mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
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>
This commit is contained in:
@@ -8672,6 +8672,23 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/settings/api": {
|
||||
"get": {
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"settings"
|
||||
],
|
||||
"summary": "Get instance's global settings for api",
|
||||
"operationId": "getGeneralAPISettings",
|
||||
"responses": {
|
||||
"200": {
|
||||
"$ref": "#/responses/GeneralAPISettings"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/settings/repository": {
|
||||
"get": {
|
||||
"produces": [
|
||||
@@ -12977,6 +12994,33 @@
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
},
|
||||
"GeneralAPISettings": {
|
||||
"description": "GeneralAPISettings contains global api settings exposed by it",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"default_git_trees_per_page": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"x-go-name": "DefaultGitTreesPerPage"
|
||||
},
|
||||
"default_max_blob_size": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"x-go-name": "DefaultMaxBlobSize"
|
||||
},
|
||||
"default_paging_num": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"x-go-name": "DefaultPagingNum"
|
||||
},
|
||||
"max_response_items": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"x-go-name": "MaxResponseItems"
|
||||
}
|
||||
},
|
||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||
},
|
||||
"GeneralRepoSettings": {
|
||||
"description": "GeneralRepoSettings contains global repository settings exposed by API",
|
||||
"type": "object",
|
||||
@@ -15197,6 +15241,12 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"GeneralAPISettings": {
|
||||
"description": "GeneralAPISettings",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/GeneralAPISettings"
|
||||
}
|
||||
},
|
||||
"GeneralRepoSettings": {
|
||||
"description": "GeneralRepoSettings",
|
||||
"schema": {
|
||||
|
Reference in New Issue
Block a user