Lunny Xiao
8ef177f8c5
add api for user to create org ( #5268 )
...
* add api for user to create org
* remove unused blank line on the swagger file end
* fix create and add test
* fix tests
* fix routes of create org API
* fix bug
* add copyright heads
2018-11-20 12:31:30 -05:00
Lunny Xiao
b3000ae623
Fix create team, update team missing units ( #5188 )
2018-11-10 14:45:32 -05:00
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
2018-10-20 23:40:42 -04:00
Nicolas Da Mutten
e07d3ad0fc
Fixes repo membership check in API ( #4341 )
...
Untested, since I can't compile (yet).
2018-07-05 15:14:56 +08:00
Antoine GIRARD
908e8942cc
Fix swagger errors ( #4220 )
...
Fix all the resting errors to have a valid swagger file.
They are still some warnings but nothing blocking.
Doing so I found that some request still misses son parameters for some POST/PUT/PATCH request. This means the a client generated from the swagger file will not work completely.
Fix #4088 by activating validation in drone
Should fix #4010 .
2018-06-12 22:59:22 +08:00
stevegt
a5f63fc4d1
swagger: add 'required: true' for params in URL ( #4097 )
...
* Partial fix for #4010
Swagger validation needs 'required: true' for parameters that are in
the URL path.
Signed-off-by: Steve Traugott <stevegt@t7a.org>
2018-06-02 18:20:28 +03:00
Morgan Bazalgette
e3028d124f
don't reset team/repo count when updating team via API ( #3831 )
...
fixes #3600
2018-04-29 13:22:57 +08:00
Ethan Koenig
515cdaa85d
Fix ignored errors when checking if organization, team member ( #3177 )
2017-12-21 09:43:26 +02:00
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
2017-11-13 09:02:25 +02:00
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
2017-08-21 14:13:47 +03:00
Lunny Xiao
f960e19c59
Only update needed columns when update user ( #2296 )
...
* only update needed columns when update user
* fix missing update_unix column
2017-08-12 22:18:44 +08:00
Ethan Koenig
f38842320e
Bug fixes for org member API
2017-06-07 12:10:35 -04:00
Ethan Koenig
ec0ae5d50c
Refactor and fix incorrect comment ( #1247 )
2017-03-15 08:51:46 +08:00
Ethan Koenig
d1b5498cc0
Use handlers for API authorization ( #723 )
2017-01-26 19:54:04 +08:00
Ethan Koenig
74bbec3bf9
Fix permission bugs in team API ( #647 )
2017-01-20 13:16:10 +08:00
Ethan Koenig
fcf02e4961
API Endpoints for organization members ( #645 )
2017-01-20 10:31:46 +08:00
Ethan Koenig
27fcf8d30a
Bug fixes for webhook API ( #650 )
2017-01-14 10:14:48 +08:00
Ethan Koenig
f686a32eac
API endpoints for organization teams ( #370 )
2016-12-28 09:36:04 +08:00
Ethan Koenig
9847b38518
Organization webhook API endpoints
2016-12-25 14:51:57 +01:00
Lunny Xiao
3917ed45de
golint fixed for routers ( #208 )
2016-11-24 15:04:31 +08:00
Sandro Santilli
a1c5f02444
Fix import path of go-sdk ( #141 )
...
From code.gitea.io/go-sdk/gitea
To code.gitea.io/sdk/gitea
2016-11-11 17:39:44 +08:00
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
2016-11-10 17:24:48 +01:00
Thomas Boerger
4c6c16f358
Replaced go-gogs-client with go-sdk imports
2016-11-07 16:10:32 +01:00
Rémy Boulanouar
2d68bd1ef9
Change import reference to match gitea instead of gogs ( #37 )
2016-11-03 10:29:56 -02:00
Unknwon
1f2e173a74
Refactor User.Id to User.ID
2016-07-24 01:08:22 +08:00
Unknwon
b1d41cfa60
#1692 add admin APIs to add/remove a user from teams
2016-03-25 18:04:02 -04:00
Unknwon
90e93b1f3a
Change list teams API to non-admin specific
2016-03-21 12:53:04 -04:00
Unknwon
9bd9ad4205
#1692 add CRUD issue APIs
...
- Fix go-gogs-client#10
- Related to #809
2016-03-13 23:20:22 -04:00
Unknwon
dd6faf7f9b
Convert all API handers to use *context.APIContext
2016-03-13 18:49:16 -04:00
Unknwon
514382e2eb
Rename module: middleware -> context
2016-03-11 11:56:52 -05:00
Unknwon
9cd16c5b12
#1692 add organization APIs
2015-12-17 02:28:47 -05:00