7FM
7acddf7979
Make /users/{username}/repos list private repos the current user has access to ( #8621 )
5 years ago
Lunny Xiao
45d0e05e14
Move sdk structs to modules/structs ( #6905 )
* move sdk structs to moduels/structs
* fix tests
* fix fmt
* fix swagger
* fix vendor
6 years ago
Lunny Xiao
1c80f31f40
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
6 years ago
Daniel Balko
972373912d
API: '/orgs/:org/repos': return private repos with read access ( #5310 ) ( #3829 ) ( #5383 )
Signed-off-by: Daniel Balko <inxonic+github@gmail.com>
6 years ago
Ethan Koenig
1df45ea8b0
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
7 years ago
Antoine GIRARD
8b81ff17f5
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
7 years ago
Aaron Walker
e9c98d4242
API: support '/orgs/:org/repos' ( #2047 )
* API: support '/orgs/:org/repos'
8 years ago
Ethan Koenig
783199dbbf
Fix GET /users/:username/repos endpoint ( #2125 )
8 years ago
Antoine GIRARD
9a699d3712
Generate swagger json ( #1402 )
- Generate swagger.json into public/
- Add swagger-ui auto-installation
- Add footer link to local swagger-ui
- Add /swagger url for using app url.
- Fix Swagger-UI version via git tag
8 years ago
Lunny Xiao
24a1ec995a
bug fixed for API to get user's repos ( #1622 )
* bug fixed for API to get user's repos
* add tests and fix another place
* test user2 since user1 has no repos
8 years ago
Lunny Xiao
f1643d7080
fix panic when get user repos from api ( #1110 )
8 years ago
awwalker
92595a6f05
API: support /users/:username/repos
clean up
fix arguments
remove repeated token
give admins listing rights
8 years ago