Lanre Adelowo
22ef957c97
make sure units of a team are returned ( #6379 )
7 years ago
John Olheiser
355c701c7f
Updates to API 404 responses ( #6077 )
7 years ago
Rémy Boulanouar
3c466cbf40
Allow to set organization visibility (public, internal, private) ( #1763 )
7 years ago
Harshit Bansal
8c26a74a55
api: Add missing GET teams endpoints ( #5382 )
* api: Add an endpoint to list a particular member of team.
* models: Rename `GetUserTeams()` to `GetUserOrgTeams()` in `org_team` model.
`GetUserTeams()` sounds a bit misnomer since it actually returns
the teams that user belongs to in a given organization rather than
all the teams across all the organization that the user has joined.
* models: Add `GetUserTeams()`.
Returns all the teams that a user belongs to.
* api: Add an endpoint for GET '/user/teams'.
A GET request to this endpoint lists all the teams that a user
belongs to.
7 years ago
Shashvat Kedia
a0d69e97a5
Delete organization endpoint added ( #5601 )
* Delete organization endpoint added
* Parameters added in comment
* Typo fix
* Newline character removed
7 years ago
Shashvat Kedia
9754d4b9d7
Fix route in swagger ( #5598 )
7 years ago
Lunny Xiao
7d3e95c4c4
fix permission check on api create org ( #5523 )
7 years ago
Lunny Xiao
0ccb83ed77
add tests for api user orgs ( #5494 )
* add tests for api user orgs
* add permission for admin to list user's orgs even he is a private user of org
7 years ago
Lunny Xiao
1c80f31f40
Restrict permission check on repositories and fix some problems ( #5314 )
* fix units permission problems
* fix some bugs and merge LoadUnits to repoAssignment
* refactor permission struct and add some copyright heads
* remove unused codes
* fix routes units check
* improve permission check
* add unit tests for permission
* fix typo
* fix tests
* fix some routes
* fix api permission check
* improve permission check
* fix some permission check
* fix tests
* fix tests
* improve some permission check
* fix some permission check
* refactor AccessLevel
* fix bug
* fix tests
* fix tests
* fix tests
* fix AccessLevel
* rename CanAccess
* fix tests
* fix comment
* fix bug
* add missing unit for test repos
* fix bug
* rename some functions
* fix routes check
7 years ago
Lunny Xiao
3a099b1861
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
7 years ago
Lunny Xiao
43259b6c65
Fix create team, update team missing units ( #5188 )
7 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
7 years ago
Nicolas Da Mutten
28ffdfebe1
Fixes repo membership check in API ( #4341 )
Untested, since I can't compile (yet).
7 years ago
Antoine GIRARD
00ff25393c
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 .
7 years ago
stevegt
73557311bc
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>
7 years ago
Morgan Bazalgette
4bb83849a7
don't reset team/repo count when updating team via API ( #3831 )
fixes #3600
8 years ago
Ethan Koenig
a8af5abc02
Fix ignored errors when checking if organization, team member ( #3177 )
8 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
8 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
8 years ago
Lunny Xiao
08a2088db4
Only update needed columns when update user ( #2296 )
* only update needed columns when update user
* fix missing update_unix column
8 years ago
Ethan Koenig
1305aba270
Bug fixes for org member API
8 years ago
Ethan Koenig
c2ba9ca97b
Refactor and fix incorrect comment ( #1247 )
9 years ago
Ethan Koenig
901f1f170e
Use handlers for API authorization ( #723 )
9 years ago
Ethan Koenig
dc4990be0d
Fix permission bugs in team API ( #647 )
9 years ago
Ethan Koenig
1533d6f66f
API Endpoints for organization members ( #645 )
9 years ago
Ethan Koenig
af64dbf429
Bug fixes for webhook API ( #650 )
9 years ago
Ethan Koenig
24db8d7848
API endpoints for organization teams ( #370 )
9 years ago
Ethan Koenig
13c5f83c24
Organization webhook API endpoints
9 years ago
Lunny Xiao
e134836804
golint fixed for routers ( #208 )
9 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
9 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
9 years ago
Thomas Boerger
a2f2fa9326
Replaced go-gogs-client with go-sdk imports
9 years ago
Rémy Boulanouar
9712d5ee89
Change import reference to match gitea instead of gogs ( #37 )
9 years ago
Unknwon
3b42ab0e57
Refactor User.Id to User.ID
9 years ago
Unknwon
8328452c5a
#1692 add admin APIs to add/remove a user from teams
10 years ago
Unknwon
11c481a053
Change list teams API to non-admin specific
10 years ago
Unknwon
5b25440502
#1692 add CRUD issue APIs
- Fix go-gogs-client#10
- Related to #809
10 years ago
Unknwon
da092dd05b
Convert all API handers to use *context.APIContext
10 years ago
Unknwon
574a4d69e8
Rename module: middleware -> context
10 years ago
Unknwon
ae4bcfa2e0
#1692 add organization APIs
10 years ago