1
0
Fork 0
forked from forgejo/forgejo

[GITEA] Add Upload URL to release API

- 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
This commit is contained in:
Gusted 2023-06-24 15:11:39 +02:00
parent 470ff32fea
commit 074413a2dc
No known key found for this signature in database
GPG key ID: FD821B732837125F
6 changed files with 78 additions and 0 deletions

View file

@ -18,6 +18,7 @@ type Release struct {
HTMLURL string `json:"html_url"`
TarURL string `json:"tarball_url"`
ZipURL string `json:"zipball_url"`
UploadURL string `json:"upload_url"`
IsDraft bool `json:"draft"`
IsPrerelease bool `json:"prerelease"`
// swagger:strfmt date-time