mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 11:28:24 +00:00 
			
		
		
		
	Add a login/login-name/username disambiguation to affected endpoint parameters and response/request models (#34901)
				
					
				
			Issue: [link](https://github.com/go-gitea/gitea/issues/9637) Changes introduced: I have clarified the problematic terms (`login`, `login_name`, and `username`) in all affected endpoints. The changes were made to relevant: - HTTP endpoint parameters' descriptions - response/request models' fields
This commit is contained in:
		| @@ -37,7 +37,7 @@ func CheckUserBlock(ctx *context.APIContext) { | ||||
| 	// parameters: | ||||
| 	// - name: username | ||||
| 	//   in: path | ||||
| 	//   description: user to check | ||||
| 	//   description: username of the user to check | ||||
| 	//   type: string | ||||
| 	//   required: true | ||||
| 	// responses: | ||||
| @@ -56,7 +56,7 @@ func BlockUser(ctx *context.APIContext) { | ||||
| 	// parameters: | ||||
| 	// - name: username | ||||
| 	//   in: path | ||||
| 	//   description: user to block | ||||
| 	//   description: username of the user to block | ||||
| 	//   type: string | ||||
| 	//   required: true | ||||
| 	// - name: note | ||||
| @@ -81,7 +81,7 @@ func UnblockUser(ctx *context.APIContext) { | ||||
| 	// parameters: | ||||
| 	// - name: username | ||||
| 	//   in: path | ||||
| 	//   description: user to unblock | ||||
| 	//   description: username of the user to unblock | ||||
| 	//   type: string | ||||
| 	//   required: true | ||||
| 	// responses: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user