Commit Graph

38 Commits (0222623be9fa4a56d870213f77b92139cefc2518)

Author SHA1 Message Date
zeripath 43f9233914 Fix Swagger JSON autogeneration issues. ()
* 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
EnricoFerro 912953e82a API /admin/users/{username} missing parameter ()
Kim "BKC" Carlbäcker e5b8b4b5ec Cleanup models.User.HashPassword ()
Morgan Bazalgette 674cfb7cac Change EncodePasswd to HashPassword ()
* Change EncodePasswd to HashPassword

* Create test+benchmark for HashPassword
Vlad Temian 469ab99e9a Delete a user's public key via admin api (closes ) ()
* 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
Ethan Koenig f26f4a7e01 Update swagger documentation ()
* Update swagger documentation

Add docs for missing endpoints
Add documentation for request parameters
Make parameter naming consistent
Fix response documentation

* Restore delete comments
Antoine GIRARD fd8e8a421a Improve swagger doc ()
* 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
Ethan Koenig d1b5498cc0 Use handlers for API authorization ()
Ethan Koenig 74bbec3bf9 Fix permission bugs in team API ()
Ethan Koenig f686a32eac API endpoints for organization teams ()
Denis Denisov 380e32e129 Fix random string generator ()
* 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
Lunny Xiao 3917ed45de golint fixed for routers ()
Sandro Santilli a1c5f02444 Fix import path of go-sdk ()
From code.gitea.io/go-sdk/gitea
  To code.gitea.io/sdk/gitea
Sandro Santilli 4247304f5a Update import paths from github.com/go-gitea to code.gitea.io ()
- 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
Sandro Santilli aadd7dcdc3 And others
Sandro Santilli 60c82a8780 More...
Thomas Boerger 4c6c16f358
Replaced go-gogs-client with go-sdk imports
Rémy Boulanouar 2d68bd1ef9 Change import reference to match gitea instead of gogs ()
Unknwon 99c2ae7b35 use alert instead 500 for duplicated login source name
Unknwon dccb0c15b9 Replace convert.To with APIFormat calls
Robin Lambertz 5a9709fa9d Add MaxRepoCreation to EditUser API ()
Richard Mahn 0402c803c6 Added Full Name to CreateUser api call ()
Unknwon 1f2e173a74 Refactor User.Id to User.ID
Unknwon f1b8d52eb3 fix no mail notification when issue is closed/reopened
Unknwon d27ca649c7 api/admin: add/remove organization team repository
Unknwon b1d41cfa60 add admin APIs to add/remove a user from teams
Unknwon 5e11341232 Fix status code
Unknwon 90e93b1f3a Change list teams API to non-admin specific
Unknwon e6f927f61a api: admin list and create team under organization
Unknwon 9bd9ad4205 add CRUD issue APIs
- Fix go-gogs-client#10
- Related to 
Unknwon dd6faf7f9b Convert all API handers to use *context.APIContext
Unknwon 2bf8494332 finish user and repository search
Both are possible on explore and admin panel
Unknwon 514382e2eb Rename module: middleware -> context
Unknwon 1c9dd11ba7 API: admin create repo
Unknwon 9cd16c5b12 add organization APIs
Unknwon 3d5d61778a disable password change for non-local users
Unknwon ca8ce793d1 Ability to delete repo from admin panel
Unknwon 978dc00305 APIs: admin users