mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Add sudo functionality to the API (#4809)
This commit is contained in:
		@@ -8008,6 +8008,18 @@
 | 
			
		||||
    "BasicAuth": {
 | 
			
		||||
      "type": "basic"
 | 
			
		||||
    },
 | 
			
		||||
    "SudoHeader": {
 | 
			
		||||
      "description": "Sudo API request as the user provided as the key. Admin privileges are required.",
 | 
			
		||||
      "type": "apiKey",
 | 
			
		||||
      "name": "Sudo",
 | 
			
		||||
      "in": "header"
 | 
			
		||||
    },
 | 
			
		||||
    "SudoParam": {
 | 
			
		||||
      "description": "Sudo API request as the user provided as the key. Admin privileges are required.",
 | 
			
		||||
      "type": "apiKey",
 | 
			
		||||
      "name": "sudo",
 | 
			
		||||
      "in": "query"
 | 
			
		||||
    },
 | 
			
		||||
    "Token": {
 | 
			
		||||
      "type": "apiKey",
 | 
			
		||||
      "name": "token",
 | 
			
		||||
@@ -8026,6 +8038,12 @@
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "AuthorizationHeaderToken": []
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "SudoParam": []
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "SudoHeader": []
 | 
			
		||||
    }
 | 
			
		||||
  ]
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user