]> source.dussan.org Git - gitea.git/commitdiff
Purge API comment (#23451)
authorJohn Olheiser <john.olheiser@gmail.com>
Mon, 13 Mar 2023 19:41:38 +0000 (14:41 -0500)
committerGitHub <noreply@github.com>
Mon, 13 Mar 2023 19:41:38 +0000 (14:41 -0500)
This PR just adds the `purge` query parameter to the swagger docs for
admin user delete.

Signed-off-by: jolheiser <john.olheiser@gmail.com>
routers/api/v1/admin/user.go
templates/swagger/v1_json.tmpl

index 1fbdab3e5598ab92825f914bce3d169fb4a94334..4192d8654d7c4f36e3894f5fb4a6cb8e33da2f07 100644 (file)
@@ -305,6 +305,10 @@ func DeleteUser(ctx *context.APIContext) {
        //   description: username of user to delete
        //   type: string
        //   required: true
+       // - name: purge
+       //   in: query
+       //   description: purge the user from the system completely
+       //   type: boolean
        // responses:
        //   "204":
        //     "$ref": "#/responses/empty"
index cb88e175ea5f8247b62edfee7df738bfc063f16f..b64f6dcd87dcf483e1ecad63aca4a18253b21d9b 100644 (file)
             "name": "username",
             "in": "path",
             "required": true
+          },
+          {
+            "type": "boolean",
+            "description": "purge the user from the system completely",
+            "name": "purge",
+            "in": "query"
           }
         ],
         "responses": {