summaryrefslogtreecommitdiffstats
path: root/routers/api
Commit message (Collapse)AuthorAgeFilesLines
* Sync releases table with tags on push and for mirrors (#2459) (#2554)Lauris BH2017-09-211-41/+48
| | | | | | | | | | | | | | * Sync releases table with tags on push and for mirrors * Code style fixes * Fix api to return only releases * Optimize release creation and update Minimize posibility of race conditions * Fix release lower tag name updating * handle tag reference update by addionally comparing commit id
* Add collaborative repositories to the dashboard (#2205)Bwko2017-08-231-1/+5
| | | | | | | | | | * Add collaborative repositories to the dashboard Remove some unused code from the Dashboard func * fix some bug and some refactor * fix tests
* Improve swagger doc (#2274)Antoine GIRARD2017-08-2119-62/+294
| | | | | | | | | | | | | | | | | | | | * 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
* Fix and improve dashboard repo UI (#2285)Morlinest2017-08-171-0/+2
| | | | | | | | | | | | | | | | * Fix and improve dashboard repo UI * Change order of scripts loading * Remove "mirror" tab * Remove single tab panel for "org user" * Add localization strings * Create vue component and change event for search * Add "mirrors" filter
* Fix rendering of external links (#2292)Ethan Koenig2017-08-131-1/+1
|
* 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
* Fix counts on issues dashboard (#2215)Ethan Koenig2017-08-031-0/+1
| | | | | | | | | | * Fix counts on issues dashboard * setupSess -> setupSession * Unit test * Load repo owners for issues
* EnableUnit() -> UnitEnabled() (#2242)Ethan Koenig2017-08-021-1/+1
|
* Check for access in /repositories/:id (#2227)Ethan Koenig2017-07-301-1/+4
| | | | | | * Check for access in /repositories/:id * Integration test
* fix some bugLunny Xiao2017-07-281-5/+5
|
* API: support '/orgs/:org/repos' (#2047)Aaron Walker2017-07-132-0/+19
| | | * API: support '/orgs/:org/repos'
* Fix repo API bug (#2133)Ethan Koenig2017-07-126-54/+63
| | | Don't require token when not necessary
* Fix GET /users/:username/repos endpoint (#2125)Ethan Koenig2017-07-101-30/+30
|
* Improve org error handling (#2117)Antoine GIRARD2017-07-063-5/+5
| | | | | | | | | | * Improve ErrOrgNotExist type Return new error type Use good error check Use new method to check error Update tests * Fix unchanged method name report
* Fix API for branches with slashes (#2096)Ethan Koenig2017-07-022-2/+9
|
* Fix release display and correct paging (#2080)Lauris BH2017-06-291-9/+8
|
* Integration tests for issues API (#2059)Ethan Koenig2017-06-251-15/+13
|
* Load label ID in NewLabels (#2045)Ethan Koenig2017-06-251-1/+1
|
* Fix bug in issue labels API (#2048)Ethan Koenig2017-06-251-2/+2
|
* Fix #2001 and fix issue comments hidden (#2016)Lunny Xiao2017-06-211-2/+10
| | | | | | | | | | | | | | * revert #2001 and fix issue comments hidden * fix #2001 * fix import * improve comment type * reduce unnecessary join * fix comment on FindCommentsOptions
* Separate generate swagger + fix sed os specific (#1791)Antoine GIRARD2017-06-151-4/+0
| | | | | | | | | | | | | | | | | * Separate generate-swagger * Remove go generate rules * Add missing definition replacement + remove use of -i sed flag for compatibility with mac os default sed version. This is a little hacky a better solution could be use. * Use custom SED_INPLACE depending of platform detection * Use SED_INPLACE for swagger-ui also
* Add repo fork swagger (#1941)Jonas Östanbäck2017-06-121-0/+20
|
* Gracefully handle bare repositories on API operations. (#1932)Dennis Keitzel2017-06-102-1/+11
| | | Signed-off-by: Dennis Keitzel <github@pinshot.net>
* Merge pull request #1905 from ethantkoenig/fix/org_api_authAndrey Nering2017-06-071-7/+7
|\ | | | | Require token before checking membership/ownership
| * Require token before checking membership/ownershipEthan Koenig2017-06-071-7/+7
| |
* | Merge pull request #1904 from ethantkoenig/fix/org_apiAndrey Nering2017-06-071-10/+23
|\ \ | | | | | | Bug fixes for org member API
| * | Bug fixes for org member APIEthan Koenig2017-06-071-10/+23
| |/
* / A missing / to provide a correct endpointcamlafit2017-06-071-1/+1
|/ | | solve #1899
* feat: add check misspelling (#1877)Bo-Yi Wu2017-06-051-1/+1
|
* Fix change introduce by update of go-swagger. (#1727)Antoine GIRARD2017-06-011-0/+1
|
* Merge pull request #1750 from andreynering/dashboard-search-org-reposAndrey Nering2017-05-271-0/+3
|\ | | | | More fixes for dashboard search
| * Fix testAndrey Nering2017-05-181-1/+1
| | | | | | | | There was a panic when there's no logged in user
| * Show repos acording to user/organizationAndrey Nering2017-05-181-1/+3
| |
| * Fix org repos not showing on dashboard searchAndrey Nering2017-05-181-0/+1
| |
* | Fix 500 for GET /teams/:id endpoints (#1811)Ethan Koenig2017-05-261-1/+1
| | | | | | | | | | | | | | | | * Fix 500 for GET /teams/:id endpoints * Integration test for GET /team/:id * Clean up integration test
* | Add swagger comment for MirrorSync (#1747)Jonas Östanbäck2017-05-191-0/+9
|/ | | | | | * Add swagger comment for MirrorSync * Generate swagger.v1.json
* 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