mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Improve swagger doc (#2274)
* Add swagger comment for adminCreateOrg * Add swagger comment for admin route * add hook swagger doc * Add tags * Add auth * Fix name of responses * Edit name method * Update vendor * make generate-swagger
This commit is contained in:
		
				
					committed by
					
						
						Lauris BH
					
				
			
			
				
	
			
			
			
						parent
						
							951c909a67
						
					
				
				
					commit
					fd8e8a421a
				
			@@ -51,6 +51,10 @@ type APIForbiddenError struct {
 | 
			
		||||
// swagger:response notFound
 | 
			
		||||
type APINotFound struct{}
 | 
			
		||||
 | 
			
		||||
//APIRedirect is a redirect response
 | 
			
		||||
// swagger:response redirect
 | 
			
		||||
type APIRedirect struct{}
 | 
			
		||||
 | 
			
		||||
// Error responses error message to client with given message.
 | 
			
		||||
// If status is 500, also it prints error to log.
 | 
			
		||||
func (ctx *APIContext) Error(status int, title string, obj interface{}) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user