You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/routers/api/v1/repo
ChristopherHX 2b8cfb557d
Artifacts download api for artifact actions v4 (#33510)
* download endpoint has to use 302 redirect
* fake blob download used if direct download not possible
* downloading v3 artifacts not possible

New repo apis based on GitHub Rest V3
- GET /runs/{run}/artifacts (Cannot use run index of url due to not
being unique)
- GET /artifacts
- GET + DELETE /artifacts/{artifact_id}
- GET /artifacts/{artifact_id}/zip
- (GET /artifacts/{artifact_id}/zip/raw this is a workaround for a http
302 assertion in actions/toolkit)
- api docs removed this is protected by a signed url like the internal
artifacts api and no longer usable with any token or swagger
  - returns http 401 if the signature is invalid
    - or change the artifact id
    - or expired after 1 hour

Closes #33353
Closes #32124

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2 weeks ago
..
action.go Artifacts download api for artifact actions v4 (#33510) 2 weeks ago
avatar.go Move context from modules to services (#29440) 1 year ago
blob.go Refactor names (#31405) 8 months ago
branch.go Only allow admins to rename default/protected branches (#33276) 1 month ago
collaborators.go Clarify path param naming (#32969) 2 months ago
commits.go Clarify path param naming (#32969) 2 months ago
compare.go [Feature] Private README.md for organization (#32872) 2 months ago
download.go Refactor context RefName and RepoAssignment (#33226) 1 month ago
file.go Support choose email when creating a commit via web UI (#33432) 4 weeks ago
fork.go Fix system admin cannot fork or get private fork with API (#33401) 1 month ago
git_hook.go Refactor package (routes and error handling, npm peer dependency) (#33111) 2 months ago
git_ref.go Refactor names (#31405) 8 months ago
hook.go Clarify path param naming (#32969) 2 months ago
hook_test.go Remove duplicate "ResponseWriter.Status" method (#33346) 1 month ago
issue.go Use `CloseIssue` and `ReopenIssue` instead of `ChangeStatus` (#32467) 2 months ago
issue_attachment.go Include file extension checks in attachment API (#32151) 4 months ago
issue_comment.go Clarify path param naming (#32969) 2 months ago
issue_comment_attachment.go Include file extension checks in attachment API (#32151) 4 months ago
issue_dependency.go Clarify path param naming (#32969) 2 months ago
issue_label.go Support org labels when adding labels by label names (#32988) 2 months ago
issue_pin.go Clarify path param naming (#32969) 2 months ago
issue_reaction.go Clarify path param naming (#32969) 2 months ago
issue_stopwatch.go Clarify path param naming (#32969) 2 months ago
issue_subscription.go Clarify path param naming (#32969) 2 months ago
issue_tracked_time.go Clarify path param naming (#32969) 2 months ago
key.go Clarify path param naming (#32969) 2 months ago
label.go Clarify path param naming (#32969) 2 months ago
language.go Move context from modules to services (#29440) 1 year ago
license.go Support repo license (#24872) 5 months ago
main_test.go make writing main test easier (#27270) 1 year ago
migrate.go Move some errors to their own sub packages (#32880) 2 months ago
milestone.go Clarify path param naming (#32969) 2 months ago
mirror.go Clarify path param naming (#32969) 2 months ago
notes.go Clarify path param naming (#32969) 2 months ago
patch.go Support choose email when creating a commit via web UI (#33432) 4 weeks ago
pull.go Automerge supports deleting branch automatically after merging (#32343) 2 months ago
pull_review.go Clarify path param naming (#32969) 2 months ago
release.go Clarify path param naming (#32969) 2 months ago
release_attachment.go Clarify path param naming (#32969) 2 months ago
release_tags.go Clarify path param naming (#32969) 2 months ago
repo.go [Feature] Private README.md for organization (#32872) 2 months ago
repo_test.go Remove duplicate "ResponseWriter.Status" method (#33346) 1 month ago
star.go Reject star-related requests if stars are disabled (#33208) 3 weeks ago
status.go Refactor names (#31405) 8 months ago
subscriber.go Move context from modules to services (#29440) 1 year ago
tag.go Clarify path param naming (#32969) 2 months ago
teams.go Clarify path param naming (#32969) 2 months ago
topic.go Clarify path param naming (#32969) 2 months ago
transfer.go Refactor repository transfer (#33211) 4 weeks ago
tree.go Clarify path param naming (#32969) 2 months ago
wiki.go Clarify path param naming (#32969) 2 months ago