summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/repo/hook.go
Commit message (Collapse)AuthorAgeFilesLines
* Fix Swagger JSON autogeneration issues. (#4845)zeripath2018-10-201-0/+4
| | | | | | | | | | | | | | | | | | | | | * 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
* Fix swagger errors (#4220)Antoine GIRARD2018-06-121-1/+6
| | | | | | | | | | 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.
* API endpoint for testing webhook (#3550)Ethan Koenig2018-04-291-1/+57
| | | | | | * API endpoint for testing webhook * Empty commit to rerun CI
* refactor: import order. (#3736)Bo-Yi Wu2018-03-291-2/+2
|
* Fix API status code for hook creation (#2814)Ethan Koenig2017-11-201-1/+1
| | | | | | * Fix API status code for hook creation * Named constants for response statuses
* Update swagger documentation (#2899)Ethan Koenig2017-11-131-42/+117
| | | | | | | | | | | * 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-211-7/+7
| | | | | | | | | | | | | | | | | | | | * 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
* Generate swagger json (#1402)Antoine GIRARD2017-05-021-3/+42
| | | | | | | - 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
* Bug fixes for webhook API (#650)Ethan Koenig2017-01-141-2/+5
|
* Organization webhook API endpointsEthan Koenig2016-12-251-133/+15
|
* Bug fix for edit-hook API endpointEthan Koenig2016-12-091-2/+8
|
* golint fixed for routers (#208)Lunny Xiao2016-11-241-3/+7
|
* 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-4/+4
| | | | | | | - 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
* Use MixedCase constant namesSandro Santilli2016-11-071-6/+6
| | | | See https://github.com/golang/go/wiki/CodeReviewComments#mixed-caps
* 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-3/+3
|
* added support to set pull_request event from api (#3513)Kurt Madel2016-08-241-2/+4
|
* models/webhook: restrict deletion to be explicitly with repo and org IDUnknwon2016-07-171-9/+9
|
* api: delete repository webhooks (#3275)Dennis Chen2016-07-171-0/+9
| | | | | | | | 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>
* #3274 fix can't get webhook detail of organizationUnknwon2016-07-161-1/+1
|
* #3057 retrieve webhook with repo_idUnknwon2016-07-081-1/+1
| | | | | This prevents user retrieve arbitrary webhook by changing URL to access webhook from other unauthorized repositories.
* #1692 api: admin list and create team under organizationUnknwon2016-03-211-0/+164