Browse Source

fix: case typo (#13049)

* Update settings.go

* Run swagger generate
tags/v1.13.0-rc1
Rongjian Zhang GitHub 5 years ago
parent
commit
0e39131673
2 changed files with 9 additions and 9 deletions
  1. +1
    -1
      routers/api/v1/settings/settings.go
  2. +8
    -8
      templates/swagger/v1_json.tmpl

+ 1
- 1
routers/api/v1/settings/settings.go View File

@@ -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:


+ 8
- 8
templates/swagger/v1_json.tmpl View File

@@ -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"
}
}
}


Loading…
Cancel
Save