1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-23 02:38:35 +00:00

Add support for API blob upload of release attachments (#29507)

Fixes #29502

Our endpoint is not Github compatible.


https://docs.github.com/en/rest/releases/assets?apiVersion=2022-11-28#upload-a-release-asset

---------

Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
KN4CK3R
2024-03-02 18:02:01 +01:00
committed by GitHub
parent 6465f94a2d
commit 70c126e618
4 changed files with 88 additions and 33 deletions

View File

@@ -12343,7 +12343,8 @@
},
"post": {
"consumes": [
"multipart/form-data"
"multipart/form-data",
"application/octet-stream"
],
"produces": [
"application/json"
@@ -12386,8 +12387,7 @@
"type": "file",
"description": "attachment to upload",
"name": "attachment",
"in": "formData",
"required": true
"in": "formData"
}
],
"responses": {