mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-01 17:38:33 +00:00
add Upload URL to release API (#26663)
- Resolves https://codeberg.org/forgejo/forgejo/issues/580 - Return a `upload_field` to any release API response, which points to the API URL for uploading new assets. - Adds unit test. - Adds integration testing to verify URL is returned correctly and that upload endpoint actually works --------- Co-authored-by: Gusted <postmaster@gusted.xyz>
This commit is contained in:
parent
b21b63c61a
commit
a9ce570298
6 changed files with 79 additions and 0 deletions
4
templates/swagger/v1_json.tmpl
generated
4
templates/swagger/v1_json.tmpl
generated
|
@ -21090,6 +21090,10 @@
|
|||
"type": "string",
|
||||
"x-go-name": "Target"
|
||||
},
|
||||
"upload_url": {
|
||||
"type": "string",
|
||||
"x-go-name": "UploadURL"
|
||||
},
|
||||
"url": {
|
||||
"type": "string",
|
||||
"x-go-name": "URL"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue