da5a0b8382 
								
									
								
							
								 
							
						 
						
							
							
								
								add tests for api user orgs ( #5494 )  
							
							... 
							
							
 
							
							* add tests for api user orgs
* add permission for admin to list user's orgs even he is a private user of org 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								eabbddcd98 
								
									
								
							
								 
							
						 
						
							
							
								
								Restrict permission check on repositories and fix some problems ( #5314 )  
							
							... 
							
							
 
							
							* fix units permission problems
* fix some bugs and merge LoadUnits to repoAssignment
* refactor permission struct and add some copyright heads
* remove unused codes
* fix routes units check
* improve permission check
* add unit tests for permission
* fix typo
* fix tests
* fix some routes
* fix api permission check
* improve permission check
* fix some permission check
* fix tests
* fix tests
* improve some permission check
* fix some permission check
* refactor AccessLevel
* fix bug
* fix tests
* fix tests
* fix tests
* fix AccessLevel
* rename CanAccess
* fix tests
* fix comment
* fix bug
* add missing unit for test repos
* fix bug
* rename some functions
* fix routes check 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								8ef177f8c5 
								
							
								 
							
						 
						
							
							
								
								add api for user to create org ( #5268 )  
							
							... 
							
							
 
							
							* add api for user to create org
* remove unused blank line on the swagger file end
* fix create and add test
* fix tests
* fix routes of create org API
* fix bug
* add copyright heads 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								b3000ae623 
								
							
								 
							
						 
						
							
							
								
								Fix create team, update team missing units ( #5188 )  
							
							
 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								43f9233914 
								
							
								 
							
						 
						
							
							
								
								Fix Swagger JSON autogeneration issues. ( #4845 )  
							
							... 
							
							
 
							
							* Fix Swagger JSON.
Remove unnecessary schema references for the forbidden and empty responses
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix swagger API for CreateAccessToken
* Fix admin create org swagger
* Fix swagger for adminCreateRepo
* More swagger fixes
Set int64 format for those which are int64
Some more form fixes
* Fix swagger description of GET /repos/{owner}/{repo}/pulls 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								e07d3ad0fc 
								
							
								 
							
						 
						
							
							
								
								Fixes repo membership check in API ( #4341 )  
							
							... 
							
							
 
							
							Untested, since I can't compile (yet). 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								908e8942cc 
								
							
								 
							
						 
						
							
							
								
								Fix swagger errors ( #4220 )  
							
							... 
							
							
 
							
							Fix all the resting errors to have a valid swagger file.
They are still some warnings but nothing blocking.
Doing so I found that some request still misses son parameters for some POST/PUT/PATCH request. This means the a client generated from the swagger file will not work completely. 
Fix  #4088  by activating validation in drone
Should fix  #4010 . 
							
						 
						
							7 years ago  
				
					
						
							
							
								 
						
							
							
								a5f63fc4d1 
								
							
								 
							
						 
						
							
							
								
								swagger: add 'required: true' for params in URL ( #4097 )  
							
							... 
							
							
 
							
							* Partial fix for #4010 
Swagger validation needs 'required: true' for parameters that are in
the URL path.
Signed-off-by: Steve Traugott <stevegt@t7a.org> 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								e3028d124f 
								
							
								 
							
						 
						
							
							
								
								don't reset team/repo count when updating team via API ( #3831 )  
							
							... 
							
							
 
							
							fixes  #3600  
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								515cdaa85d 
								
							
								 
							
						 
						
							
							
								
								Fix ignored errors when checking if organization, team member ( #3177 )  
							
							
 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								f26f4a7e01 
								
							
								 
							
						 
						
							
							
								
								Update swagger documentation ( #2899 )  
							
							... 
							
							
 
							
							* Update swagger documentation
Add docs for missing endpoints
Add documentation for request parameters
Make parameter naming consistent
Fix response documentation
* Restore delete comments 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								fd8e8a421a 
								
							
								 
							
						 
						
							
							
								
								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 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								f960e19c59 
								
							
								 
							
						 
						
							
							
								
								Only update needed columns when update user ( #2296 )  
							
							... 
							
							
 
							
							* only update needed columns when update user
* fix missing update_unix column 
							
						 
						
							8 years ago  
				
					
						
							
							
								 
						
							
							
								f38842320e 
								
							
								 
							
						 
						
							
							
								
								Bug fixes for org member API  
							
							
 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								ec0ae5d50c 
								
							
								 
							
						 
						
							
							
								
								Refactor and fix incorrect comment ( #1247 )  
							
							
 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								d1b5498cc0 
								
							
								 
							
						 
						
							
							
								
								Use handlers for API authorization ( #723 )  
							
							
 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								74bbec3bf9 
								
							
								 
							
						 
						
							
							
								
								Fix permission bugs in team API ( #647 )  
							
							
 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								fcf02e4961 
								
							
								 
							
						 
						
							
							
								
								API Endpoints for organization members ( #645 )  
							
							
 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								27fcf8d30a 
								
							
								 
							
						 
						
							
							
								
								Bug fixes for webhook API ( #650 )  
							
							
 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								f686a32eac 
								
							
								 
							
						 
						
							
							
								
								API endpoints for organization teams ( #370 )  
							
							
 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								9847b38518 
								
							
								 
							
						 
						
							
							
								
								Organization webhook API endpoints  
							
							
 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								3917ed45de 
								
							
								 
							
						 
						
							
							
								
								golint fixed for routers ( #208 )  
							
							
 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								a1c5f02444 
								
							
								 
							
						 
						
							
							
								
								Fix import path of go-sdk ( #141 )  
							
							... 
							
							
 
							
							From code.gitea.io/go-sdk/gitea
  To code.gitea.io/sdk/gitea 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								4247304f5a 
								
							
								 
							
						 
						
							
							
								
								Update import paths from github.com/go-gitea to code.gitea.io ( #135 )  
							
							... 
							
							
 
							
							- Update import paths from github.com/go-gitea to code.gitea.io
- Fix import path for travis
See https://docs.travis-ci.com/user/languages/go#Go-Import-Path  
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								4c6c16f358 
								
									
								
							
								 
							
						 
						
							
							
								
								Replaced go-gogs-client with go-sdk imports  
							
							
 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								2d68bd1ef9 
								
							
								 
							
						 
						
							
							
								
								Change import reference to match gitea instead of gogs ( #37 )  
							
							
 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								1f2e173a74 
								
							
								 
							
						 
						
							
							
								
								Refactor User.Id to User.ID  
							
							
 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								b1d41cfa60 
								
							
								 
							
						 
						
							
							
								
								#1692  add admin APIs to add/remove a user from teams  
							
							
 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								90e93b1f3a 
								
							
								 
							
						 
						
							
							
								
								Change list teams API to non-admin specific  
							
							
 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								9bd9ad4205 
								
							
								 
							
						 
						
							
							
								
								#1692  add CRUD issue APIs  
							
							... 
							
							
 
							
							- Fix go-gogs-client#10
- Related to #809  
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								dd6faf7f9b 
								
							
								 
							
						 
						
							
							
								
								Convert all API handers to use *context.APIContext  
							
							
 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								514382e2eb 
								
							
								 
							
						 
						
							
							
								
								Rename module: middleware -> context  
							
							
 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								9cd16c5b12 
								
							
								 
							
						 
						
							
							
								
								#1692  add organization APIs  
							
							
 
							
						 
						
							10 years ago