fix: case typo (#13049)

* Update settings.go

* Run swagger generate
tokarchuk/v1.17
Rongjian Zhang 4 years ago committed by GitHub
parent a23c128ba6
commit 77f360b1b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      routers/api/v1/settings/settings.go
  2. 16
      templates/swagger/v1_json.tmpl

@ -63,7 +63,7 @@ func GetGeneralRepoSettings(ctx *context.APIContext) {
// GetGeneralAttachmentSettings returns instance's global settings for Attachment // GetGeneralAttachmentSettings returns instance's global settings for Attachment
func GetGeneralAttachmentSettings(ctx *context.APIContext) { 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 // summary: Get instance's global settings for Attachment
// produces: // produces:

@ -8870,7 +8870,7 @@
} }
} }
}, },
"/settings/Attachment": { "/settings/api": {
"get": { "get": {
"produces": [ "produces": [
"application/json" "application/json"
@ -8878,16 +8878,16 @@
"tags": [ "tags": [
"settings" "settings"
], ],
"summary": "Get instance's global settings for Attachment", "summary": "Get instance's global settings for api",
"operationId": "getGeneralAttachmentSettings", "operationId": "getGeneralAPISettings",
"responses": { "responses": {
"200": { "200": {
"$ref": "#/responses/GeneralAttachmentSettings" "$ref": "#/responses/GeneralAPISettings"
} }
} }
} }
}, },
"/settings/api": { "/settings/attachment": {
"get": { "get": {
"produces": [ "produces": [
"application/json" "application/json"
@ -8895,11 +8895,11 @@
"tags": [ "tags": [
"settings" "settings"
], ],
"summary": "Get instance's global settings for api", "summary": "Get instance's global settings for Attachment",
"operationId": "getGeneralAPISettings", "operationId": "getGeneralAttachmentSettings",
"responses": { "responses": {
"200": { "200": {
"$ref": "#/responses/GeneralAPISettings" "$ref": "#/responses/GeneralAttachmentSettings"
} }
} }
} }

Loading…
Cancel
Save