Tamal Saha
171b359877
Use gitea forked macaron ( #7933 )
...
Signed-off-by: Tamal Saha <tamal@appscode.com>
5 years ago
Lunny Xiao
5b902e2368
add pagination for admin api get orgs and fix only list public orgs bug ( #7742 )
5 years ago
renothing
cbf231a675
fix wrong email when use gitea as OAuth2 provider ( #7640 )
...
when you use gitea as OAuth2 provider, the /api/v1/user should return
user primary email as identifier, which is unique in OAuth2 clients.
this patch use convert.ToUser replace all u.APIFormat in api requests,
return primary email when caller is yourself or admin.
6 years ago
Richard Mahn
43cf2f3b55
Fixes #7023 - API Org Visibility ( #7028 )
6 years ago
Lunny Xiao
34eee25bd4
Move sdk structs to modules/structs ( #6905 )
...
* move sdk structs to moduels/structs
* fix tests
* fix fmt
* fix swagger
* fix vendor
6 years ago
Richard Mahn
6db3dc7c02
Fixes #6881 - API users search fix ( #6882 )
6 years ago
zeripath
837116875e
Return a UserList from /api/v1/admin/users ( #6629 )
6 years ago
John Olheiser
cac9e6e760
Updates to API 404 responses ( #6077 )
6 years ago
John Olheiser
7548037a64
Adds MustChangePassword to user create/edit API, defaults to true ( #6193 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com>
6 years ago
Shashvat Kedia
1b90692844
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
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
6 years ago
EnricoFerro
912953e82a
API /admin/users/{username} missing parameter ( #4775 )
6 years ago
Kim "BKC" Carlbäcker
e5b8b4b5ec
Cleanup models.User.HashPassword ( #3334 )
7 years ago
Morgan Bazalgette
674cfb7cac
Change EncodePasswd to HashPassword ( #3329 )
...
* Change EncodePasswd to HashPassword
* Create test+benchmark for HashPassword
7 years ago
Vlad Temian
469ab99e9a
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
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
7 years ago
Antoine GIRARD
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
7 years ago
Ethan Koenig
d1b5498cc0
Use handlers for API authorization ( #723 )
8 years ago
Ethan Koenig
74bbec3bf9
Fix permission bugs in team API ( #647 )
8 years ago
Ethan Koenig
f686a32eac
API endpoints for organization teams ( #370 )
8 years ago
Denis Denisov
380e32e129
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
3917ed45de
golint fixed for routers ( #208 )
8 years ago
Sandro Santilli
a1c5f02444
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
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
8 years ago
Sandro Santilli
aadd7dcdc3
And others
8 years ago
Sandro Santilli
60c82a8780
More...
8 years ago
Thomas Boerger
4c6c16f358
Replaced go-gogs-client with go-sdk imports
8 years ago
Rémy Boulanouar
2d68bd1ef9
Change import reference to match gitea instead of gogs ( #37 )
8 years ago
Unknwon
99c2ae7b35
#3515 use alert instead 500 for duplicated login source name
8 years ago
Unknwon
dccb0c15b9
Replace convert.To with APIFormat calls
8 years ago
Robin Lambertz
5a9709fa9d
Add MaxRepoCreation to EditUser API ( #2781 )
9 years ago
Richard Mahn
0402c803c6
Added Full Name to CreateUser api call ( #3333 )
9 years ago
Unknwon
1f2e173a74
Refactor User.Id to User.ID
9 years ago
Unknwon
f1b8d52eb3
#2854 fix no mail notification when issue is closed/reopened
9 years ago
Unknwon
d27ca649c7
api/admin: add/remove organization team repository
9 years ago
Unknwon
b1d41cfa60
#1692 add admin APIs to add/remove a user from teams
9 years ago
Unknwon
5e11341232
Fix status code
9 years ago
Unknwon
90e93b1f3a
Change list teams API to non-admin specific
9 years ago
Unknwon
e6f927f61a
#1692 api: admin list and create team under organization
9 years ago
Unknwon
9bd9ad4205
#1692 add CRUD issue APIs
...
- Fix go-gogs-client#10
- Related to #809
9 years ago
Unknwon
dd6faf7f9b
Convert all API handers to use *context.APIContext
9 years ago
Unknwon
2bf8494332
#13 finish user and repository search
...
Both are possible on explore and admin panel
9 years ago
Unknwon
514382e2eb
Rename module: middleware -> context
9 years ago
Unknwon
1c9dd11ba7
#1692 API: admin create repo
9 years ago
Unknwon
9cd16c5b12
#1692 add organization APIs
9 years ago
Unknwon
3d5d61778a
#1938 #1374 disable password change for non-local users
9 years ago
Unknwon
ca8ce793d1
#2063 Ability to delete repo from admin panel
9 years ago
Unknwon
978dc00305
APIs: admin users
9 years ago