aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRongjian Zhang <pd4d10@gmail.com>2020-10-07 00:16:16 +0800
committerGitHub <noreply@github.com>2020-10-06 12:16:16 -0400
commit77f360b1b82d63bf7ac91dce9cf9b1c3552a43e5 (patch)
tree0d0c04110398841da79c6a08fc8f6b6e7c64b5fe
parenta23c128ba613ec3350af5719193977ba66a770d8 (diff)
downloadgitea-77f360b1b82d63bf7ac91dce9cf9b1c3552a43e5.tar.gz
gitea-77f360b1b82d63bf7ac91dce9cf9b1c3552a43e5.zip
fix: case typo (#13049)
* Update settings.go * Run swagger generate
-rw-r--r--routers/api/v1/settings/settings.go2
-rw-r--r--templates/swagger/v1_json.tmpl16
2 files changed, 9 insertions, 9 deletions
diff --git a/routers/api/v1/settings/settings.go b/routers/api/v1/settings/settings.go
index 29210751d6..2b7b11bfd8 100644
--- a/routers/api/v1/settings/settings.go
+++ b/routers/api/v1/settings/settings.go
@@ -63,7 +63,7 @@ func GetGeneralRepoSettings(ctx *context.APIContext) {
// GetGeneralAttachmentSettings returns instance's global settings for Attachment
func GetGeneralAttachmentSettings(ctx *context.APIContext) {
- // swagger:operation GET /settings/Attachment settings getGeneralAttachmentSettings
+ // swagger:operation GET /settings/attachment settings getGeneralAttachmentSettings
// ---
// summary: Get instance's global settings for Attachment
// produces:
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index 837705682a..e7655f02a8 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -8870,7 +8870,7 @@
}
}
},
- "/settings/Attachment": {
+ "/settings/api": {
"get": {
"produces": [
"application/json"
@@ -8878,16 +8878,16 @@
"tags": [
"settings"
],
- "summary": "Get instance's global settings for Attachment",
- "operationId": "getGeneralAttachmentSettings",
+ "summary": "Get instance's global settings for api",
+ "operationId": "getGeneralAPISettings",
"responses": {
"200": {
- "$ref": "#/responses/GeneralAttachmentSettings"
+ "$ref": "#/responses/GeneralAPISettings"
}
}
}
},
- "/settings/api": {
+ "/settings/attachment": {
"get": {
"produces": [
"application/json"
@@ -8895,11 +8895,11 @@
"tags": [
"settings"
],
- "summary": "Get instance's global settings for api",
- "operationId": "getGeneralAPISettings",
+ "summary": "Get instance's global settings for Attachment",
+ "operationId": "getGeneralAttachmentSettings",
"responses": {
"200": {
- "$ref": "#/responses/GeneralAPISettings"
+ "$ref": "#/responses/GeneralAttachmentSettings"
}
}
}