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>
2020-04-15 02:18:51 -03:00
..
blob.go
branch.go
collaborators.go
commits.go
file.go Contents API should return 404 on not exist (#10323) 2020-04-15 02:18:51 -03:00
fork.go
git_hook.go
git_ref.go
hook_test.go
hook.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
issue_comment.go
issue_label.go
issue_reaction.go API add/generalize pagination (#9452) 2020-01-24 14:00:29 -05:00
issue_stopwatch.go
issue_subscription.go
issue_tracked_time.go
issue.go
key.go
label.go Add Organization Wide Labels (#10814) 2020-04-01 01:14:46 -03:00
main_test.go API endpoint for testing webhook (#3550) 2018-04-29 14:21:33 +08:00
migrate.go
milestone.go
mirror.go
pull.go
release_attachment.go
release.go
repo_test.go
repo.go
star.go
status.go
subscriber.go
tag.go
topic.go
transfer.go
tree.go