Commit Graph
9 Commits
Author SHA1 Message Date
Segev FinerandLauris BH b4941f707b Fix Hook & HookList in Swagger (#6432)
Signed-off-by: Segev Finer <[email protected]>
2019-03-26 21:41:17 +02:00
Lunny Xiaoandzeripath 01bbf5ea69 Add API to list tags (#5850)
* Add API to list tags

* update dependency gitea sdk vendor

* fix swagger generation

* fix swagger

* add tests

* update code.gitea.io/git vendor
2019-02-07 12:00:52 +00:00
Lunny Xiaoandtechknowlogick ecefa9e724 Add single commit API support (#5843)
* add single commit API support
2019-02-02 22:35:17 -05:00
kolaenteandtechknowlogick 9a137faaaf Added docs for the tree api (#5834)
* Added docs for the tree api

* Added missing response definition

* Fixed swagger docs
2019-01-24 13:13:30 -05:00
Lauris BHandtechknowlogick 08bf443016 Implement git refs API for listing references (branches, tags and other) (#5354)
* 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 :)
2018-11-27 16:52:20 -05:00
Antoine GIRARDandBo-Yi Wu 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
stevegtandLunny Xiao 7707ad7a0a add simple descriptions for swagger validate (#4087)
* Partial fix for #4010

Swagger needs a comment line above each swagger:response comment -- it
uses these to populate the description: fields.  Adding minimal text
for now on the way to getting swagger validate to pass.  Many standard
swagger client libraries will not work at all with gitea until validate
passes, so prioritizing that over better descriptions for now.

Signed-off-by: Steve Traugott <[email protected]>
2018-05-31 19:13:55 +08:00
Jonas FranzandBo-Yi Wu 9a5e628a7e Add Attachment API (#3478)
* Add Attachment API
* repos/:owner/:repo/releases (add attachments)
* repos/:owner/:repo/releases/:id (add attachments)
* repos/:owner/:repo/releases/:id/attachments
* repos/:owner/:repo/releases/:id/attachments/:attachment_id

Signed-off-by: Jonas Franz <[email protected]>

* Add unit tests for new attachment functions
Fix comments

Signed-off-by: Jonas Franz <[email protected]>

* fix lint

* Update vendor.json

Signed-off-by: Jonas Franz <[email protected]>

* remove version of sdk

Signed-off-by: Jonas Franz <[email protected]>

* Fix unit tests
Add missing license header

Signed-off-by: Jonas Franz <[email protected]>

* Add CreateReleaseAttachment
Add EditReleaseAttachment
Add DeleteReleaseAttachment

Signed-off-by: Jonas Franz <[email protected]>

* Add filename query parameter for choosing another name for an attachment

Signed-off-by: Jonas Franz <[email protected]>

* Fix order of imports

Signed-off-by: Jonas Franz <[email protected]>

* Restricting updatable attachment columns

Signed-off-by: Jonas Franz <[email protected]>

* gofmt

Signed-off-by: Jonas Franz <[email protected]>

* Update go-sdk
Replace Attachments with Assets

Signed-off-by: Jonas Franz <[email protected]>

* Update go-sdk

Signed-off-by: Jonas Franz <[email protected]>

* Updating go-sdk and regenerating swagger

Signed-off-by: Jonas Franz <[email protected]>

* Add missing file of go-sdk

Signed-off-by: Jonas Franz <[email protected]>

* Change origin of code.gitea.io/sdk to code.gitea.io/sdk
Update code.gitea.io/sdk

Signed-off-by: Jonas Franz <[email protected]>

* Update swagger

Signed-off-by: Jonas Franz <[email protected]>

* Update updateAttachment
2018-03-06 09:22:16 +08:00
Ethan KoenigandLauris BH 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