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
zeripath 2e85ad665a
Contents API should return 404 on not exist (#10323)
* Return 404 on not exist

* swagger update and use git.IsErrNotExist

* Handle delete too

* Handle delete too x2

* Fix pr 10323 (#3)

* fix TESTS

* leafe a note for fututre

* placate golangci-lint

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Update integrations/api_repo_file_delete_test.go

Co-Authored-By: 6543 <6543@obermui.de>

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
5 years ago
..
blob.go Swagger info corrections (#9441) 5 years ago
branch.go Allow to set protected file patterns that can not be changed under no conditions (#10806) 5 years ago
collaborators.go API add/generalize pagination (#9452) 5 years ago
commits.go [API] Get a single commit via Ref (#10915) 5 years ago
file.go Contents API should return 404 on not exist (#10323) 5 years ago
fork.go API add/generalize pagination (#9452) 5 years ago
git_hook.go Swagger info corrections (#9441) 5 years ago
git_ref.go Swagger info corrections (#9441) 5 years ago
hook.go API add/generalize pagination (#9452) 5 years ago
hook_test.go API endpoint for testing webhook (#3550) 7 years ago
issue.go Add Organization Wide Labels (#10814) 5 years ago
issue_comment.go API add/generalize pagination (#9452) 5 years ago
issue_label.go Add Organization Wide Labels (#10814) 5 years ago
issue_reaction.go API add/generalize pagination (#9452) 5 years ago
issue_stopwatch.go Prevent panic in stopwatch (#10670) 5 years ago
issue_subscription.go Code Refactor of IssueWatch related things (#10401) 5 years ago
issue_tracked_time.go API add/generalize pagination (#9452) 5 years ago
key.go API add/generalize pagination (#9452) 5 years ago
label.go Add Organization Wide Labels (#10814) 5 years ago
main_test.go API endpoint for testing webhook (#3550) 7 years ago
migrate.go Various fixes in login sources (#10428) 5 years ago
milestone.go Fix milestone API state parameter unhandled (#10049) 5 years ago
mirror.go Refactor api repo dir (#10048) 5 years ago
pull.go Handle push rejection in branch and upload (#10854) 5 years ago
release.go API add/generalize pagination (#9452) 5 years ago
release_attachment.go Swagger info corrections (#9441) 5 years ago
repo.go Option to set default branch at repository creation (#10803) 5 years ago
repo_test.go Fixes #5960 - Adds API Endpoint for Repo Edit (#7006) 6 years ago
star.go API add/generalize pagination (#9452) 5 years ago
status.go API add/generalize pagination (#9452) 5 years ago
subscriber.go API add/generalize pagination (#9452) 5 years ago
tag.go [API] enable paggination for ListRepoTags (#10454) 5 years ago
topic.go API add/generalize pagination (#9452) 5 years ago
transfer.go API endpoint for repo transfer (#9947) 5 years ago
tree.go Swagger info corrections (#9441) 5 years ago