mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	fix swagger documentation for multiple files API endpoint (#25110)
Fixes some issues with the swagger documentation for the new multiple files API endpoint (#24887) which were overlooked when submitting the original PR: 1. add some missing parameter descriptions 2. set correct `required` option for required parameters 3. change endpoint description to match it full functionality (every kind of file modification is supported, not just creating and updating)
This commit is contained in:
		@@ -408,11 +408,11 @@ func canReadFiles(r *context.Repository) bool {
 | 
			
		||||
	return r.Permission.CanRead(unit.TypeCode)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// ChangeFiles handles API call for creating or updating multiple files
 | 
			
		||||
// ChangeFiles handles API call for modifying multiple files
 | 
			
		||||
func ChangeFiles(ctx *context.APIContext) {
 | 
			
		||||
	// swagger:operation POST /repos/{owner}/{repo}/contents repository repoChangeFiles
 | 
			
		||||
	// ---
 | 
			
		||||
	// summary: Create or update multiple files in a repository
 | 
			
		||||
	// summary: Modify multiple files in a repository
 | 
			
		||||
	// consumes:
 | 
			
		||||
	// - application/json
 | 
			
		||||
	// produces:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user