Commit Graph
6 Commits
Author SHA1 Message Date
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
Antoine GIRARDandLauris BH 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 GIRARDandKim "BKC" Carlbäcker 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
Antoine GIRARDandLunny Xiao 14fe9010ae GPG commit validation (#1150)
* GPG commit validation

* Add translation

+ some little fix

* Move hash calc after retrieving of potential key + missing translation

* Add some little test
2017-03-22 18:43:54 +08:00
Andrey Nering d7af8f96d7 Update vendor of code.gitea.io/sdk/gitea 2017-02-25 10:04:22 -03:00