John Olheiser
355c701c7f
Updates to API 404 responses ( #6077 )
6 years ago
John Olheiser
1e87227163
Adds MustChangePassword to user create/edit API, defaults to true ( #6193 )
Signed-off-by: jolheiser <john.olheiser@gmail.com>
6 years ago
Shashvat Kedia
3e261feadb
New API routes added ( #5594 )
* New API routes added
* Comments added
* Build fix
* swagger_v1_json.tmpl without new line character
* Typo fix
* Code review changes
* Code review changes
* Add copyright
* Add copyright
* Add copyright
* Update per @lafriks feedback
* Update org.go
* Update user.go
* Update user.go
* make fmt
6 years ago
zeripath
6e8294a54c
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
6 years ago
EnricoFerro
0f0cc3e617
API /admin/users/{username} missing parameter ( #4775 )
6 years ago
Kim "BKC" Carlbäcker
fb25c73752
Cleanup models.User.HashPassword ( #3334 )
7 years ago
Morgan Bazalgette
548da9750c
Change EncodePasswd to HashPassword ( #3329 )
* Change EncodePasswd to HashPassword
* Create test+benchmark for HashPassword
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
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
Denis Denisov
820c295d94
Fix random string generator ( #384 )
* Remove unused custom-alphabet feature of random string generator
Fix random string generator
Random string generator should return error if it fails to read random data via crypto/rand
* Fixes variable (un)initialization mixed assign
Update test GetRandomString
8 years ago
Lunny Xiao
e134836804
golint fixed for routers ( #208 )
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
6909f35ba0
More...
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
437ad0d136
#3515 use alert instead 500 for duplicated login source name
8 years ago
Unknwon
6e37e3f3d7
Replace convert.To with APIFormat calls
8 years ago
Robin Lambertz
9acb7a034f
Add MaxRepoCreation to EditUser API ( #2781 )
8 years ago
Richard Mahn
15f2b16568
Added Full Name to CreateUser api call ( #3333 )
9 years ago
Unknwon
3b42ab0e57
Refactor User.Id to User.ID
9 years ago
Unknwon
7b4e810eb5
#2854 fix no mail notification when issue is closed/reopened
9 years ago
Unknwon
0b2c7a6284
#1692 api: admin list and create team under organization
9 years ago