summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/api.go
Commit message (Collapse)AuthorAgeFilesLines
* Add basic integration test infrastructure (and new endpoint ↵Mura Li2017-03-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `/api/v1/version` for testing it) (#741) * Implement '/api/v1/version' * Cleanup and various fixes * Enhance run.sh * Add install_test.go * Add parameter utils.Config for testing handlers * Re-organize TestVersion.go * Rename functions * handling process cleanup properly * Fix missing function renaming * Cleanup the 'retry' logic * Cleanup * Remove unneeded logging code * Logging messages tweaking * Logging message tweaking * Fix logging messages * Use 'const' instead of hardwired numbers * We don't really need retries anymore * Move constant ServerHttpPort to install_test.go * Restore mistakenly removed constant * Add required comments to make the linter happy. * Fix comments and naming to address linter's complaints * Detect Gitea executale version automatically * Remove tests/run.sh, `go test` suffices. * Make `make build` a prerequisite of `make test` * Do not sleep before trying * Speedup the server pinging loop * Use defined const instead of hardwired numbers * Remove redundant error handling * Use a dedicated target for running code.gitea.io/tests * Do not make 'test' depend on 'build' target * Rectify the excluded package list * Remove redundant 'exit 1' * Change the API to allow passing test.T to test handlers * Make testing.T an embedded field * Use assert.Equal to comparing results * Add copyright info * Parametrized logging output * Use tmpdir instead * Eliminate redundant casting * Remove unneeded variable * Fix last commit * Add missing copyright info * Replace fmt.Fprintf with fmt.Fprint * rename the xtest to integration-test * Use Symlink instead of hard-link for cross-device linking * Turn debugging logs on * Follow the existing framework for APIs * Output logs only if test.v is true * Re-order import statements * Enhance the error message * Fix comment which breaks the linter's rule * Rename 'integration-test' to 'e2e-test' for saving keystrokes * Add comment to avoid possible confusion * Rename tests -> integration-tests Also change back the Makefile to use `make integration-test`. * Use tests/integration for now * tests/integration -> integrations Slightly flattened directory hierarchy is better. * Update Makefile accordingly * Fix a missing change in Makefile * govendor update code.gitea.io/sdk/gitea * Fix comment of struct fields * Fix conditional nonsense * Fix missing updates regarding version string changes * Make variable naming more consistent * Check http status code * Rectify error messages
* API: support /users/:username/reposawwalker2017-02-271-2/+4
| | | | | | | | | | clean up fix arguments remove repeated token give admins listing rights
* Redirects for renamed repos (#807)Ethan Koenig2017-02-051-1/+8
| | | | | | * Redirects for renamed repos * Remove unused phrase from locales
* Add units concept for modulable functions of a repository (#742)Lunny Xiao2017-02-041-1/+1
| | | | | | | | | | | | | | | | * Add units concept for modulable functions of a repository * remove unused comment codes & fix lints and tests * remove unused comment codes * use struct config instead of map * fix lint * rm wrong files * fix tests
* Remove unneeded database loads (#814)Ethan Koenig2017-02-021-3/+1
| | | Remove unnecessary calls to repo.GetOwner() in context handlers
* Use handlers for API authorization (#723)Ethan Koenig2017-01-261-14/+26
|
* Fix crash caused by #647 (#708)Bwko2017-01-201-1/+1
|
* Fix permission bugs in team API (#647)Ethan Koenig2017-01-201-19/+15
|
* API Endpoints for organization members (#645)Ethan Koenig2017-01-201-0/+10
|
* Bug fixes for webhook API (#650)Ethan Koenig2017-01-141-3/+41
|
* API endpoint for subscribers (#598)Ethan Koenig2017-01-071-0/+1
|
* API endpoint for stargazers (#597)Ethan Koenig2017-01-061-0/+1
|
* Release API endpointsEthan Koenig2017-01-021-0/+7
|
* API endpoints for forks (#509)Ethan Koenig2016-12-311-0/+2
|
* Repo permission bug fixes (#513)Ethan Koenig2016-12-291-5/+3
|
* Permissions bug fix for webhooksEthan Koenig2016-12-281-1/+1
|
* API endpoints for organization teams (#370)Ethan Koenig2016-12-281-0/+7
|
* API Endpoints for collaborators (#375)Ethan Koenig2016-12-261-1/+6
|
* Organization webhook API endpointsEthan Koenig2016-12-251-1/+9
|
* API Endpoint for watching (#191)Ethan Koenig2016-12-241-0/+9
|
* issue comment api fix (#449)Kim "BKC" Carlbäcker2016-12-221-1/+6
| | | | | | * ListAllInRepo & Delete Issue-Comments * Moar data in issue-comments
* [API] Pull Requests (#248)Kim "BKC" Carlbäcker2016-12-021-0/+15
|
* Add undocumented endpoint for /repositories/:idKim "BKC" Carlbäcker2016-12-021-0/+2
|
* API endpoints for starsEthan Koenig2016-11-161-1/+13
|
* Fix import path of go-sdk (#141)Sandro Santilli2016-11-111-1/+1
| | | | 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-101-10/+10
| | | | | | | - 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
* ACCESS_MODE_* -> AccessMode*Sandro Santilli2016-11-071-1/+1
|
* Replaced go-gogs-client with go-sdk importsThomas Boerger2016-11-071-1/+1
|
* Change import reference to match gitea instead of gogs (#37)Rémy Boulanouar2016-11-031-8/+8
|
* Support Editorconfig on web editorAndrey Nering2016-08-301-0/+1
|
* issues comment API : list, create, edit (#2966)Iwan Budi Kusnanto2016-08-261-0/+6
| | | add `since` query string support to list issue comment
* #3383 code cleanupUnknwon2016-08-241-9/+13
|
* Additional API support for milestones (#3383)lstahlman2016-08-241-0/+12
|
* Fix #3391Unknwon2016-08-111-0/+1
|
* Add AddCollaborator API Endpoint (#2780)Robin Lambertz2016-08-111-0/+1
| | | | | | | | * Add AddCollaborator API Endpoint * Add optional Permission to AddCollaborator endpoint * Use APIContext
* routers/api: rename handlers to be unexportedUnknwon2016-08-041-19/+19
|
* #2162 completely disable builtin issue tracker when enable external trackerUnknwon2016-08-041-1/+8
|
* #3290 better code structure and batch minor improvementsUnknwon2016-08-031-3/+3
|
* Additional API support for labels (#3290)lstahlman2016-08-031-1/+17
| | | | | | | | | | * Add API support for labels. * Error handling for adding/replacing multiple issue labels * Revisions to function names and error handling. Use issue.ClearLabels in replace/clear functions * Additional code cleanup
* Refactor User.Id to User.IDUnknwon2016-07-241-1/+1
|
* api: fix panic if anonymous user request admin APIUnknwon2016-07-231-1/+1
| | | | Add sign in check before check user account level
* Update locales and .gopmfileUnknwon2016-07-171-1/+1
|
* api: delete repository webhooks (#3275)Dennis Chen2016-07-171-3/+6
| | | | | | | | Allows the deletion of a webhook from a repository at the /:user/:repo/hooks/:id endpoint. Solves drone/drone issue #1603. Signed-off-by: Dennis Chen <barracks510@gmail.com>
* api/admin: add/remove organization team repositoryUnknwon2016-04-041-18/+25
|
* #1692 add admin APIs to add/remove a user from teamsUnknwon2016-03-251-2/+44
|
* Change list teams API to non-admin specificUnknwon2016-03-211-2/+5
|
* #1692 api: admin list and create team under organizationUnknwon2016-03-211-0/+4
|
* #1692 add CRUD issue APIsUnknwon2016-03-131-11/+13
| | | | | - Fix go-gogs-client#10 - Related to #809
* Convert all API handers to use *context.APIContextUnknwon2016-03-131-9/+13
|
* Rename module: middleware -> contextUnknwon2016-03-111-9/+9
|