]> source.dussan.org Git - gitea.git/commitdiff
fix: case typo (#13049)
authorRongjian Zhang <pd4d10@gmail.com>
Tue, 6 Oct 2020 16:16:16 +0000 (00:16 +0800)
committerGitHub <noreply@github.com>
Tue, 6 Oct 2020 16:16:16 +0000 (12:16 -0400)
* Update settings.go

* Run swagger generate

routers/api/v1/settings/settings.go
templates/swagger/v1_json.tmpl

index 29210751d66fd86fe55f1d6d3566eb4078afc233..2b7b11bfd8a844f2d5233d4a6a9e5ab019cbc181 100644 (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:
index 837705682a47f93188626647e7e46371c9d40103..e7655f02a8ca8037afac09ffe8547634ddb54233 100644 (file)
         }
       }
     },
-    "/settings/Attachment": {
+    "/settings/api": {
       "get": {
         "produces": [
           "application/json"
         "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"
         "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"
           }
         }
       }