aboutsummaryrefslogtreecommitdiffstats
path: root/templates/swagger
Commit message (Collapse)AuthorAgeFilesLines
* Fix new release creation API to allow empty target (#5870)Lauris BH2019-01-301-0/+21
| | | | | | | | * Fix new release creation API to allow empty target * Add more test cases * Update swagger
* update swagger for release API pagination (#5841)Lunny Xiao2019-01-251-0/+12
|
* Added docs for the tree api (#5834)kolaente2019-01-241-0/+104
| | | | | | | | * Added docs for the tree api * Added missing response definition * Fixed swagger docs
* New API routes added (#5594)Shashvat Kedia2019-01-231-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * New API routes added * Comments added * Build fix * swagger_v1_json.tmpl without new line character * Typo fix * Code review changes * Code review changes * Add copyright * Add copyright * Add copyright * Update per @lafriks feedback * Update org.go * Update user.go * Update user.go * make fmt
* api: Add missing GET teams endpoints (#5382)Harshit Bansal2019-01-161-0/+52
| | | | | | | | | | | | | | | | | | | | * 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.
* Issue is not overdue when it is on the same date #5566 (#5568)Rodrigo Villablanca Vásquez2019-01-011-3/+3
| | | | | | | | | | * Due date time of issues and milestones is set to 23:59:59 * Add docs * make gen swagger * fix swagger gen
* Delete organization endpoint added (#5601)Shashvat Kedia2018-12-271-0/+24
| | | | | | | | | | * Delete organization endpoint added * Parameters added in comment * Typo fix * Newline character removed
* Fix route in swagger (#5598)Shashvat Kedia2018-12-261-26/+26
|
* Implement git refs API for listing references (branches, tags and other) (#5354)Lauris BH2018-11-271-0/+131
| | | | | | | | | | | | | | | | * Inital routes to git refs api * Git refs API implementation * Update swagger * Fix copyright * Make swagger happy add basic test * Fix test * Fix test again :)
* show only opened milestones on issues page milestone filter (#5051)Lanre Adelowo2018-11-261-1/+1
| | | | | | | | | | | | | | * show only opened milestones on issues page milestone filter * update Godoc * update Godoc everywhere * update swagger * use false instead of 0 * Add seccond ordering by ID for milestones where no deadline is set
* add api for user to create org (#5268)Lunny Xiao2018-11-201-0/+36
| | | | | | | | | | | | | | | | * 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/+48
|
* Keys API changes (#4960)zeripath2018-10-311-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add private information to the deploy keys api This commit adds more information to the deploy keys to allow for back reference in to the main keys list. It also adds information about the repository that the key is referring to. Signed-off-by: Andrew Thornton <art27@cantab.net> * Add private information to the user keys API This adjusts the keys API to give out private information to user keys if the current user is the owner or an admin. Signed-off-by: Andrew Thornton <art27@cantab.net> * Add ability to search keys by fingerprint This commit adds the functionality to search ssh-keys by fingerprint of the ssh-key. Deploy keys per repository can also be searched. There is no current clear API point to allow search of all deploy keys by fingerprint or keyID. Signed-off-by: Andrew Thornton <art27@cantab.net> * Add integration test
* fix: Add secret to all webhook's payload where it has been missing (#5199)Peter Hoffmann2018-10-281-0/+27
| | | | | | | | | | * fix: Add secret to all webhook's payload where it has been missing affects webhooks for: * Delete * Fork * IssueComment * Release
* User action heatmap (#5131)kolaente2018-10-231-0/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added basic heatmap data * Added extra case for sqlite * Built basic heatmap into user profile * Get contribution data from api & styling * Fixed lint & added extra group by statements for all database types * generated swagger spec * generated swagger spec * generated swagger spec * fixed swagger spec * fmt * Added tests * Added setting to enable/disable user heatmap * Added locale for loading text * Removed UseTiDB * Updated librejs & moment.js * Fixed import order * Fixed heatmap in postgresql * Update docs/content/doc/advanced/config-cheat-sheet.en-us.md Co-Authored-By: kolaente <konrad@kola-entertainments.de> * Added copyright header * Fixed a bug to show the heatmap for the actual user instead of the currently logged in * Added integration test for heatmaps * Added a heatmap on the dashboard * Fixed timestamp parsing * Hide heatmap on mobile * optimized postgresql group by query * Improved sqlite group by statement
* Fix Swagger JSON autogeneration issues. (#4845)zeripath2018-10-201-44/+177
| | | | | | | | | | | | | | | | | | | | | * 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
* Add support for search by uid (#4876)zeripath2018-10-181-0/+6
| | | Signed-off-by: Andrew Thornton <art27@cantab.net>
* Update Swagger API to match the return of /users/search (#4847)zeripath2018-09-211-1/+15
| | | Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fixes repo branch endpoint summary (#4893)Lewis Cowles2018-09-091-1/+1
| | | | | | | in browser saw `/repos/{owner}/{repo}/branches/{branch} List a repository's branches` fixed Addresses https://github.com/go-gitea/debian-packaging/pull/1 Fixes https://github.com/go-gitea/gitea#4892
* Add sudo functionality to the API (#4809)zeripath2018-09-061-0/+18
|
* API /admin/users/{username} missing parameter (#4775)EnricoFerro2018-08-231-0/+8
|
* api: repos/search: add parameters to control the sort order (#3964)Allen Wild2018-08-021-0/+12
| | | | | | | | | | | | | | | | The backend SearchRepositoryByName function supports several sort order options, hook these up to the /repos/search API. New parameters for /repos/search: 'sort': alpha, created, updated, size, or id 'order': asc or desc 'sort' defaults to alpha. 'order' defaults to ascending, and is ignored if 'sort' is not specified. The overall default behavior is unchanged (alphabetically ascending). This partially implements issue #3963 Signed-off-by: Allen Wild <allenwild93@gmail.com>
* Swagger.v1.json template (#3572)Piotr Orzechowski2018-07-282-0/+8105
* Turn swagger.v1.json into template * Rename ENABLE_SWAGGER_ENDPOINT option to ENABLE_SWAGGER