techknowlogick
a60d3cbea2
Remove legacy handling of drone token ( #8191 )
...
Now Drone has removed Gitea user/pass handling we can remove legacy handling
2019-09-17 15:13:24 +03:00
Tamal Saha
171b359877
Use gitea forked macaron ( #7933 )
...
Signed-off-by: Tamal Saha <tamal@appscode.com>
2019-08-23 12:40:29 -04:00
techknowlogick
5ffc9656c6
Change drone token name to let users know to use oauth2 ( #6912 )
2019-05-12 13:29:07 -04:00
Lunny Xiao
34eee25bd4
Move sdk structs to modules/structs ( #6905 )
...
* move sdk structs to moduels/structs
* fix tests
* fix fmt
* fix swagger
* fix vendor
2019-05-11 18:21:34 +08:00
techknowlogick
46373e7657
Hash App token ( #6724 )
2019-05-04 11:45:34 -04:00
John Olheiser
cac9e6e760
Updates to API 404 responses ( #6077 )
2019-03-18 22:29:43 -04:00
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
2018-10-20 23:40:42 -04:00
techknowlogick
ab55ca7ebd
Add ability to delete a token ( #4235 )
...
Fix #4234
2018-07-06 21:54:30 -04:00
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 .
2018-06-12 22:59:22 +08:00
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
2017-11-13 09:02:25 +02:00
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
2017-08-21 14:13:47 +03:00
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
2017-05-02 15:35:59 +02:00
Ethan Koenig
831ff41754
Fix go vet faults ( #1060 )
2017-02-26 13:25:35 +08:00
Lunny Xiao
3917ed45de
golint fixed for routers ( #208 )
2016-11-24 15:04:31 +08:00
Sandro Santilli
a1c5f02444
Fix import path of go-sdk ( #141 )
...
From code.gitea.io/go-sdk/gitea
To code.gitea.io/sdk/gitea
2016-11-11 17:39:44 +08:00
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
2016-11-10 17:24:48 +01:00
Thomas Boerger
4c6c16f358
Replaced go-gogs-client with go-sdk imports
2016-11-07 16:10:32 +01:00
Rémy Boulanouar
2d68bd1ef9
Change import reference to match gitea instead of gogs ( #37 )
2016-11-03 10:29:56 -02:00
Unknwon
1f2e173a74
Refactor User.Id to User.ID
2016-07-24 01:08:22 +08:00
Unknwon
dd6faf7f9b
Convert all API handers to use *context.APIContext
2016-03-13 18:49:16 -04:00
Unknwon
514382e2eb
Rename module: middleware -> context
2016-03-11 11:56:52 -05:00
Unknwon
56dd430a10
refactor API routes and some work for #976
2015-12-04 17:16:42 -05:00