aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1/org
Commit message (Collapse)AuthorAgeFilesLines
* Move sdk structs to modules/structs (#6905)Lunny Xiao2019-05-114-4/+4
| | | | | | | | | | | | * move sdk structs to moduels/structs * fix tests * fix fmt * fix swagger * fix vendor
* Fix team edit API panic (#6780)ngourdon2019-04-271-1/+1
|
* make sure units of a team are returned (#6379)Lanre Adelowo2019-03-191-0/+5
|
* Updates to API 404 responses (#6077)John Olheiser2019-03-183-6/+6
|
* Allow to set organization visibility (public, internal, private) (#1763)Rémy Boulanouar2019-02-181-0/+4
|
* api: Add missing GET teams endpoints (#5382)Harshit Bansal2019-01-161-0/+65
| | | | | | | | | | | | | | | | | | | | * 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.
* Delete organization endpoint added (#5601)Shashvat Kedia2018-12-271-0/+23
| | | | | | | | | | * Delete organization endpoint added * Parameters added in comment * Typo fix * Newline character removed
* Fix route in swagger (#5598)Shashvat Kedia2018-12-261-1/+1
|
* fix permission check on api create org (#5523)Lunny Xiao2018-12-111-1/+1
|
* add tests for api user orgs (#5494)Lunny Xiao2018-12-091-1/+1
| | | | | | * add tests for api user orgs * add permission for admin to list user's orgs even he is a private user of org
* Restrict permission check on repositories and fix some problems (#5314)Lunny Xiao2018-11-281-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* add api for user to create org (#5268)Lunny Xiao2018-11-201-0/+51
| | | | | | | | | | | | | | | | * 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
* Fix create team, update team missing units (#5188)Lunny Xiao2018-11-101-0/+27
|
* Fix Swagger JSON autogeneration issues. (#4845)zeripath2018-10-203-14/+20
| | | | | | | | | | | | | | | | | | | | | * 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
* Fixes repo membership check in API (#4341)Nicolas Da Mutten2018-07-051-1/+1
| | | Untested, since I can't compile (yet).
* Fix swagger errors (#4220)Antoine GIRARD2018-06-122-3/+52
| | | | | | | | | | 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.
* swagger: add 'required: true' for params in URL (#4097)stevegt2018-06-021-0/+1
| | | | | | | | * 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>
* don't reset team/repo count when updating team via API (#3831)Morgan Bazalgette2018-04-291-7/+4
| | | fixes #3600
* Fix ignored errors when checking if organization, team member (#3177)Ethan Koenig2017-12-212-12/+35
|
* Update swagger documentation (#2899)Ethan Koenig2017-11-134-126/+432
| | | | | | | | | | | * Update swagger documentation Add docs for missing endpoints Add documentation for request parameters Make parameter naming consistent Fix response documentation * Restore delete comments
* Improve swagger doc (#2274)Antoine GIRARD2017-08-212-0/+122
| | | | | | | | | | | | | | | | | | | | * 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
* Only update needed columns when update user (#2296)Lunny Xiao2017-08-121-1/+1
| | | | | | * only update needed columns when update user * fix missing update_unix column
* Bug fixes for org member APIEthan Koenig2017-06-071-10/+23
|
* Refactor and fix incorrect comment (#1247)Ethan Koenig2017-03-151-3/+3
|
* Use handlers for API authorization (#723)Ethan Koenig2017-01-263-65/+74
|
* Fix permission bugs in team API (#647)Ethan Koenig2017-01-201-13/+121
|
* API Endpoints for organization members (#645)Ethan Koenig2017-01-201-0/+141
|
* Bug fixes for webhook API (#650)Ethan Koenig2017-01-141-1/+5
|
* API endpoints for organization teams (#370)Ethan Koenig2016-12-281-0/+38
|
* Organization webhook API endpointsEthan Koenig2016-12-251-0/+65
|
* golint fixed for routers (#208)Lunny Xiao2016-11-242-4/+9
|
* Fix import path of go-sdk (#141)Sandro Santilli2016-11-112-2/+2
| | | | From code.gitea.io/go-sdk/gitea To code.gitea.io/sdk/gitea
* Update import paths from github.com/go-gitea to code.gitea.io (#135)Sandro Santilli2016-11-102-8/+8
| | | | | | | - 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
* Replaced go-gogs-client with go-sdk importsThomas Boerger2016-11-072-2/+2
|
* Change import reference to match gitea instead of gogs (#37)Rémy Boulanouar2016-11-032-6/+6
|
* Refactor User.Id to User.IDUnknwon2016-07-241-1/+1
|
* #1692 add admin APIs to add/remove a user from teamsUnknwon2016-03-252-16/+3
|
* Change list teams API to non-admin specificUnknwon2016-03-211-0/+31
|
* #1692 add CRUD issue APIsUnknwon2016-03-131-3/+3
| | | | | - Fix go-gogs-client#10 - Related to #809
* Convert all API handers to use *context.APIContextUnknwon2016-03-131-8/+8
|
* Rename module: middleware -> contextUnknwon2016-03-111-6/+6
|
* #1692 add organization APIsUnknwon2015-12-171-0/+74