diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2024-03-02 18:02:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-02 17:02:01 +0000 |
commit | 70c126e6184872a6ac63cae2f327fc745b25d1d7 (patch) | |
tree | fd33ef9f000075dbd06693c0834a8521369df709 /templates/swagger | |
parent | 6465f94a2d26cdacc232fddc20f98d98df61ddac (diff) | |
download | gitea-70c126e6184872a6ac63cae2f327fc745b25d1d7.tar.gz gitea-70c126e6184872a6ac63cae2f327fc745b25d1d7.zip |
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>
Diffstat (limited to 'templates/swagger')
-rw-r--r-- | templates/swagger/v1_json.tmpl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index d4c5d9a7ee..b739bea60d 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -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": { |