summaryrefslogtreecommitdiffstats
path: root/routers/api
Commit message (Collapse)AuthorAgeFilesLines
* gofmt (#1662)Ethan Koenig2017-05-041-1/+1
|
* Generate swagger json (#1402)Antoine GIRARD2017-05-0213-38/+481
| | | | | | | - Generate swagger.json into public/ - Add swagger-ui auto-installation - Add footer link to local swagger-ui - Add /swagger url for using app url. - Fix Swagger-UI version via git tag
* fix #1643 and improve integration test (#1645)Lunny Xiao2017-04-301-1/+6
|
* bug fixed for API to get user's repos (#1622)Lunny Xiao2017-04-291-4/+7
| | | | | | | | * bug fixed for API to get user's repos * add tests and fix another place * test user2 since user1 has no repos
* Status-API (#1332)Kim "BKC" Carlbäcker2017-04-212-0/+134
|
* Add repo mirror sync API endpoint (#1508)Jonas2017-04-192-0/+13
| | | | | | | | * API: Add repo mirror sync * Correct error message * Change http status to 200
* Migrate WatchInfo struct to api (#1492)Antoine GIRARD2017-04-161-14/+2
| | | | | | | | * Remove WatchInfo and link to api struct * Add vendor temporary update * Return to gitea vendor source
* fix gpg API panic when no verification (#1451)Lunny Xiao2017-04-061-2/+7
| | | | | | * fix gpg API panic when no verification * fix if condition
* GPG commit validation (#1150)Antoine GIRARD2017-03-221-0/+7
| | | | | | | | | | | | * GPG commit validation * Add translation + some little fix * Move hash calc after retrieving of potential key + missing translation * Add some little test
* Implement GPG api (#710)Antoine GIRARD2017-03-163-0/+155
| | | | | | | | | | * Implement GPG API * Better handle error * Apply review recommendation + simplify database operations * Remove useless comments
* Refactor and fix incorrect comment (#1247)Ethan Koenig2017-03-157-19/+12
|
* Add basic integration test infrastructure (and new endpoint ↵Mura Li2017-03-062-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `/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
* fix panic when get user repos from api (#1110)Lunny Xiao2017-03-031-2/+2
|
* API: support /users/:username/reposawwalker2017-02-273-32/+66
| | | | | | | | | | clean up fix arguments remove repeated token give admins listing rights
* refactor api issues load attributes for better performance (#1066)Lunny Xiao2017-02-271-5/+6
|
* Fix go vet faults (#1060)Ethan Koenig2017-02-262-4/+10
|
* Fix URL handling in the whole markdown module, improve test coverage (#1027)Andrew Boyarshin2017-02-242-3/+10
| | | | | Amended with string to bool change in API SDK. Signed-off-by: Andrew Boyarshin <andrew.boyarshin@gmail.com>
* Markdown rendering overhaul (#186)Andrew Boyarshin2017-02-142-3/+188
| | | | | | | | | | | | * Markdown rendering overhaul Cleaned up and squashed commits into single one. Signed-off-by: Andrew Boyarshin <boyarshinand@gmail.com> * Fix markdown API, add markdown module and API tests, improve code coverage Signed-off-by: Andrew Boyarshin <boyarshinand@gmail.com>
* fix: trim the whitespaces for the search keyword (#893)Bo-Yi Wu2017-02-112-3/+5
|
* Fix bug in repos search (#884)Ethan Koenig2017-02-101-5/+9
|
* 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
* feat: Add search bar on user profile page. (#787)Bo-Yi Wu2017-02-041-1/+1
|
* Remove unneeded database loads (#814)Ethan Koenig2017-02-021-3/+1
| | | Remove unnecessary calls to repo.GetOwner() in context handlers
* add milestone changed traker on issue view (#804)Lunny Xiao2017-02-012-2/+2
|
* Bug fixes and unit tests for models/issue_label (#802)Ethan Koenig2017-02-011-1/+1
|
* Track labels changed on issue view & resolved #542 (#788)Lunny Xiao2017-01-301-2/+2
| | | | | | * track labels changed on issue view & resolved #542 * add missing head comment & sort & fix refresh
* Use handlers for API authorization (#723)Ethan Koenig2017-01-265-131/+100
|
* Search bar for issues/pulls (#530)Ethan Koenig2017-01-252-3/+5
|
* Fix crash caused by #647 (#708)Bwko2017-01-201-1/+1
|
* Fix permission bugs in team API (#647)Ethan Koenig2017-01-203-120/+136
|
* API Endpoints for organization members (#645)Ethan Koenig2017-01-202-0/+151
|
* Attach to release (#673)Philip Couling2017-01-151-2/+2
| | | | | | | | | | | | | | * Moved attachaments POST url from /issues/attachments to /attachments * Implemented attachment upload on release page * Implemented downloading attachments on the release page * Added zip and gzip files to default allowed attachments * Implemented uploading attachments on edit release * Renamed UploadIssueAttachment to UploadAttachment
* Bug fixes for webhook API (#650)Ethan Koenig2017-01-143-6/+51
|
* API endpoint for subscribers (#598)Ethan Koenig2017-01-072-0/+26
|
* API endpoint for stargazers (#597)Ethan Koenig2017-01-062-0/+26
|
* build failed by deleting release by API (#562)Lunny Xiao2017-01-031-1/+1
|
* Release API endpointsEthan Koenig2017-01-022-0/+193
|
* API endpoints for forks (#509)Ethan Koenig2016-12-312-0/+63
|
* Repo permission bug fixes (#513)Ethan Koenig2016-12-292-5/+7
|
* Permissions bug fix for webhooksEthan Koenig2016-12-281-1/+1
|
* API endpoints for organization teams (#370)Ethan Koenig2016-12-283-0/+70
|
* Remove redundant query in collaborator API (#516)Ethan Koenig2016-12-281-24/+4
|
* API Endpoints for collaborators (#375)Ethan Koenig2016-12-262-1/+99
|
* Organization webhook API endpointsEthan Koenig2016-12-254-134/+316
|
* Added sorting to the labels & milestones page (#199)Bwko2016-12-241-1/+1
|
* API Endpoint for watching (#191)Ethan Koenig2016-12-242-0/+132
|
* issue comment api fix (#449)Kim "BKC" Carlbäcker2016-12-222-1/+53
| | | | | | * ListAllInRepo & Delete Issue-Comments * Moar data in issue-comments
* Fix random string generator (#384)Denis Denisov2016-12-201-1/+5
| | | | | | | | | | | * 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
* fixed vulnerabilities (#392)Lunny Xiao2016-12-151-0/+1
|