zeripath
43f9233914
Fix Swagger JSON autogeneration issues. ( #4845 )
...
* 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
6 years ago
Antoine GIRARD
908e8942cc
Fix swagger errors ( #4220 )
...
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 .
7 years ago
Ethan Koenig
7ea4bfc561
API endpoint for testing webhook ( #3550 )
...
* API endpoint for testing webhook
* Empty commit to rerun CI
7 years ago
Bo-Yi Wu
1c5cbc390b
refactor: import order. ( #3736 )
7 years ago
Ethan Koenig
876bafb7ef
Fix API status code for hook creation ( #2814 )
...
* Fix API status code for hook creation
* Named constants for response statuses
7 years ago
Ethan Koenig
f26f4a7e01
Update swagger documentation ( #2899 )
...
* Update swagger documentation
Add docs for missing endpoints
Add documentation for request parameters
Make parameter naming consistent
Fix response documentation
* Restore delete comments
7 years ago
Antoine GIRARD
fd8e8a421a
Improve swagger doc ( #2274 )
...
* 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
7 years ago
Antoine GIRARD
3edb0c5894
Generate swagger json ( #1402 )
...
- 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
8 years ago
Ethan Koenig
27fcf8d30a
Bug fixes for webhook API ( #650 )
8 years ago
Ethan Koenig
9847b38518
Organization webhook API endpoints
8 years ago
Ethan Koenig
7b5b5178e1
Bug fix for edit-hook API endpoint
8 years ago
Lunny Xiao
3917ed45de
golint fixed for routers ( #208 )
8 years ago
Sandro Santilli
a1c5f02444
Fix import path of go-sdk ( #141 )
...
From code.gitea.io/go-sdk/gitea
To code.gitea.io/sdk/gitea
8 years ago
Sandro Santilli
4247304f5a
Update import paths from github.com/go-gitea to code.gitea.io ( #135 )
...
- 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
8 years ago
Sandro Santilli
80eea77953
Use MixedCase constant names
...
See https://github.com/golang/go/wiki/CodeReviewComments#mixed-caps
8 years ago
Thomas Boerger
4c6c16f358
Replaced go-gogs-client with go-sdk imports
8 years ago
Rémy Boulanouar
2d68bd1ef9
Change import reference to match gitea instead of gogs ( #37 )
8 years ago
Kurt Madel
67fb0fe6a5
added support to set pull_request event from api ( #3513 )
8 years ago
Unknwon
60110adc06
models/webhook: restrict deletion to be explicitly with repo and org ID
8 years ago
Dennis Chen
5ff2dfb23e
api: delete repository webhooks ( #3275 )
...
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>
8 years ago
Unknwon
3d93532c87
#3274 fix can't get webhook detail of organization
8 years ago
Unknwon
d62ab49978
#3057 retrieve webhook with repo_id
...
This prevents user retrieve arbitrary webhook by changing URL to
access webhook from other unauthorized repositories.
8 years ago
Unknwon
e6f927f61a
#1692 api: admin list and create team under organization
9 years ago
Unknwon
9bd9ad4205
#1692 add CRUD issue APIs
...
- Fix go-gogs-client#10
- Related to #809
9 years ago
Unknwon
dd6faf7f9b
Convert all API handers to use *context.APIContext
9 years ago
Unknwon
514382e2eb
Rename module: middleware -> context
9 years ago
Unknwon
9cd16c5b12
#1692 add organization APIs
9 years ago
Unknwon
56dd430a10
refactor API routes and some work for #976
9 years ago
Unknwon
f455125d4d
fix #878
9 years ago
Unknwon
aff49b1c9e
unified API error response
9 years ago
Unknwon
65843b803b
add webhook default events
9 years ago
Unknwon
55ddf225bb
webhook APIs
9 years ago
Unknwon
f509c59ac1
new create webhook event
9 years ago
Unknwon
23f42d92c9
add webhook recent deliveries
9 years ago
Unknwon
2881456421
new webhooks list UI
9 years ago
Unknwon
dea3a8c6a4
WIP: create PR - choose branch
9 years ago
Unknwon
ac4a10456e
api: able to create repo and fix #726
...
- POST /user/repos
- POST /org/:org/repos
10 years ago
Unknwon
37d8d3afe9
more APIs on #12
10 years ago
Unknwon
52d66ba6c8
#12 , use go-gogs-client
10 years ago
Unknwon
9dc3c93a6a
#12 , add/edit hook
10 years ago
Unknwon
8eb5120fbd
#12 , API: list user repos, list repo hooks
10 years ago