Lunny Xiao
a5c212cd1e
Refactor struct's time to remove unnecessary memory usage ( #3142 )
* refactor struct's time to remove unnecessary memory usage
* use AsTimePtr simple code
* fix tests
* fix time compare
* fix template on gpg
* use AddDuration instead of Add
7 years ago
Vlad Temian
20952f1c5f
Delete a user's public key via admin api ( closes #3014 ) ( #3059 )
* Delete a user's public key via admin api
* Test admin ssh endpoint for creating a new ssh key
* Adapt public ssh key test to also test the delete operation
* Test that deleting a missing key will result in a 404
* Test that a normal user can't delete another user's ssh key
* Make DeletePublicKey return err
* Update swagger doc
7 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
Lunny Xiao
9cb1dc7dd8
fix imports
7 years ago
Lunny Xiao
e7ca7b93e2
some fixes
7 years ago
Lunny Xiao
f1b7c521e1
Hide unactive on explore users and some refactors ( #2741 )
* hide unactive on explore users and some refactors
* fix test for removed Organizations
* fix test for removed Organizations
* fix imports
* fix logic bug
* refactor the toConds
* Rename TestOrganizations to TestSearchUsers and add tests for users
* fix other tests
* fix other tests
* fix watchers tests
* fix comments and remove unused code
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
Bo-Yi Wu
9a20c48a65
feat: add check misspelling ( #1877 )
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
Antoine GIRARD
8e63c1ab44
Migrate WatchInfo struct to api ( #1492 )
* Remove WatchInfo and link to api struct
* Add vendor temporary update
* Return to gitea vendor source
8 years ago
Antoine GIRARD
d110b2d4bd
Implement GPG api ( #710 )
* Implement GPG API
* Better handle error
* Apply review recommendation + simplify database operations
* Remove useless comments
8 years ago
Ethan Koenig
c2ba9ca97b
Refactor and fix incorrect comment ( #1247 )
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
Ethan Koenig
10e11fb4d5
Fix go vet faults ( #1060 )
8 years ago
Bo-Yi Wu
110750bf29
fix: trim the whitespaces for the search keyword ( #893 )
8 years ago
Ethan Koenig
f2f748259e
API Endpoint for watching ( #191 )
8 years ago
Lunny Xiao
e0f49993f5
fixed vulnerabilities ( #392 )
8 years ago
Ethan Koenig
2872b66e89
Bug fixes for repo permissions in API
Also move duplicated code into repo.APIFormat(..)
8 years ago
Kim "BKC" Carlbäcker
0287afefa6
Fix breakage from vendor-update
8 years ago
Lunny Xiao
b5a7692d63
Golint fixed for modules/setting ( #262 )
* golint fixed for modules/setting
* typo fixed and renamed UNIXSOCKET to UnixSocket
8 years ago
Lunny Xiao
e134836804
golint fixed for routers ( #208 )
8 years ago
Ethan Koenig
4503176480
API endpoints for stars
8 years ago
Sandro Santilli
827c85ad85
Fix import path of go-sdk ( #141 )
From code.gitea.io/go-sdk/gitea
To code.gitea.io/sdk/gitea
8 years ago
Sandro Santilli
cb1b3cc148
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
8 years ago
Sandro Santilli
0daccd049a
And others
8 years ago
Thomas Boerger
a2f2fa9326
Replaced go-gogs-client with go-sdk imports
8 years ago
Rémy Boulanouar
9712d5ee89
Change import reference to match gitea instead of gogs ( #37 )
8 years ago
Unknwon
6e37e3f3d7
Replace convert.To with APIFormat calls
8 years ago
Unknwon
fdd6a233a9
Fix #3391
9 years ago
Unknwon
3b42ab0e57
Refactor User.Id to User.ID
9 years ago
Unknwon
0b2c7a6284
#1692 api: admin list and create team under organization
9 years ago
Unknwon
5b25440502
#1692 add CRUD issue APIs
- Fix go-gogs-client#10
- Related to #809
9 years ago
Unknwon
da092dd05b
Convert all API handers to use *context.APIContext
9 years ago
Unknwon
2d90be9c2e
#13 finish user and repository search
Both are possible on explore and admin panel
9 years ago
Unknwon
574a4d69e8
Rename module: middleware -> context
9 years ago
Unknwon
00a60453fb
#1692 APIs: Users Followers
- User profile un/follow
- List user's followers/following
9 years ago
Unknwon
ae4bcfa2e0
#1692 add organization APIs
9 years ago
Unknwon
6dee7a47f0
#1692 add user email APIs
9 years ago
Unknwon
12020f4d74
APIs: admin users
9 years ago
Unknwon
c6f6031bd5
refactor API routes and some work for #976
9 years ago