1
0
Fork 0
forked from forgejo/forgejo

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>
(cherry picked from commit 70c126e6184872a6ac63cae2f327fc745b25d1d7)
This commit is contained in:
KN4CK3R 2024-03-02 18:02:01 +01:00 committed by Earl Warren
parent e159297443
commit 47a913d40d
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
4 changed files with 88 additions and 33 deletions

View file

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