58501a2682 
								
							 
						 
						
							
							
								
								[API] GET / SET User Settings ( #16169 )  
							
							... 
							
							
							
							* API: GET/SET User Settings
* linter
* Apply suggestions from code review
* Update modules/structs/user.go
* lint
* fix swagger
* move User2UserSettings to convert
* as per @zeripath "preferences" -> "settings"
Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io> 
							
						 
						
							2021-06-23 15:58:44 -04:00  
				
					
						
							
							
								 
						
							
								b3fbd37e99 
								
							 
						 
						
							
							
								
								[API] expose repo.GetReviewers() & repo.GetAssignees() ( #16168 )  
							
							... 
							
							
							
							* API: expose repo.GetReviewers() & repo.GetAssignees()
* Add tests
* fix unrelated swagger query type 
							
						 
						
							2021-06-17 16:02:34 +02:00  
				
					
						
							
							
								 
						
							
								c9d053f0ca 
								
							 
						 
						
							
							
								
								[API] User expose counters ( #16167 )  
							
							
							
						 
						
							2021-06-17 09:17:35 +02:00  
				
					
						
							
							
								 
						
							
								f8335444de 
								
							 
						 
						
							
							
								
								Add Active and ProhibitLogin to API ( #15689 )  
							
							... 
							
							
							
							* Added active and prohibit_login.
* Do not omit fields for normal users. 
							
						 
						
							2021-05-11 02:22:29 +02:00  
				
					
						
							
							
								 
						
							
								67e10397af 
								
							 
						 
						
							
							
								
								Add Location, Website and Biography to API ( #15675 )  
							
							
							
						 
						
							2021-05-01 10:05:55 +01:00  
				
					
						
							
							
								 
						
							
								290cf75f93 
								
							 
						 
						
							
							
								
								[refactor] Unify the export of user data via API ( #15144 )  
							
							... 
							
							
							
							* [refactor] unify how user data is exported via API
* test time via unix timestamp 
							
						 
						
							2021-03-27 17:45:26 +01:00  
				
					
						
							
							
								 
						
							
								8d5c795cc4 
								
							 
						 
						
							
							
								
								[API] Add Restricted Field to User ( #14630 )  
							
							... 
							
							
							
							* Expose Restricted field for User
* Add Option to Change Restricted on User via adminEditUser API
* Add test who change restricted & test if it changed it ...
* make generate-swagger
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> 
							
						 
						
							2021-02-18 16:25:35 +08:00  
				
					
						
							
							
								 
						
							
								d453533beb 
								
							 
						 
						
							
							
								
								[Refactor] Move APIFormat functions into convert package ( #12856 )  
							
							... 
							
							
							
							* USER APIFormat -> ToUser
* Migrate more and mark APIFormat deprecated
* models.Comment APIFormat() -> convert.ToComment
* models.Release APIFormat() -> convert.ToRelease
* models.Attachments APIFormat() -> convert.ToReleaseAttachments
* models.CommitStatus APIFormat() -> convert.ToCommitStatus
* finish migration to convert.ToUser
* Move Test
* Imprufe Test
* fix test
Co-authored-by: techknowlogick <techknowlogick@gitea.io> 
							
						 
						
							2020-10-17 00:23:08 -04:00  
				
					
						
							
							
								 
						
							
								06480af472 
								
							 
						 
						
							
							
								
								Convert User expose ID each time ( #12855 )  
							
							... 
							
							
							
							* git blame tells me a lot of gitea things happen here around 2018, add header
* move user code int its own file
* expose user id
* adopt things from APIFormat
* fix test
* CI.restart() 
							
						 
						
							2020-09-17 16:33:23 -05:00