]> source.dussan.org Git - gitea.git/commit
Swagger info corrections (#9441)
author6543 <6543@obermui.de>
Fri, 20 Dec 2019 17:07:12 +0000 (18:07 +0100)
committerLauris BH <lauris@nix.lv>
Fri, 20 Dec 2019 17:07:12 +0000 (19:07 +0200)
commit2848c5eb8f7333b6791afd296b12d21751d0516b
tree67ff6244026174116edbff1b4c4cdb5934401968
parent050a8af4243d7f5fff0a2f492b9166f4dfdf0ecf
Swagger info corrections (#9441)

* use numbers and not http.Status___ enum

* fix test

* add many missing swagger responses

* code format

* Deletion Sould return 204 ...

* error handling improvements

* if special error type ... then add it to swagger too

* one smal nit

* invalidTopicsError is []string

* valid swagger specification 2.0
 - if you add responses swagger can tell you if you do it right :+1:

* use ctx.InternalServerError

* Revert "use numbers and not http.Status___ enum"

This reverts commit b1ff386e2418ed6a7f183e756b13277d701278ef.

* use http.Status* enum everywhere
52 files changed:
modules/context/api.go
routers/api/v1/admin/org.go
routers/api/v1/admin/repo.go
routers/api/v1/admin/user.go
routers/api/v1/api.go
routers/api/v1/misc/markdown.go
routers/api/v1/misc/swagger.go
routers/api/v1/misc/version.go
routers/api/v1/org/hook.go
routers/api/v1/org/member.go
routers/api/v1/org/org.go
routers/api/v1/org/team.go
routers/api/v1/repo/blob.go
routers/api/v1/repo/branch.go
routers/api/v1/repo/collaborators.go
routers/api/v1/repo/commits.go
routers/api/v1/repo/file.go
routers/api/v1/repo/fork.go
routers/api/v1/repo/git_hook.go
routers/api/v1/repo/git_ref.go
routers/api/v1/repo/hook.go
routers/api/v1/repo/issue.go
routers/api/v1/repo/issue_comment.go
routers/api/v1/repo/issue_label.go
routers/api/v1/repo/issue_reaction.go
routers/api/v1/repo/issue_stopwatch.go
routers/api/v1/repo/issue_subscription.go
routers/api/v1/repo/issue_tracked_time.go
routers/api/v1/repo/key.go
routers/api/v1/repo/label.go
routers/api/v1/repo/milestone.go
routers/api/v1/repo/pull.go
routers/api/v1/repo/release.go
routers/api/v1/repo/release_attachment.go
routers/api/v1/repo/repo.go
routers/api/v1/repo/star.go
routers/api/v1/repo/status.go
routers/api/v1/repo/subscriber.go
routers/api/v1/repo/tag.go
routers/api/v1/repo/topic.go
routers/api/v1/repo/tree.go
routers/api/v1/user/app.go
routers/api/v1/user/email.go
routers/api/v1/user/follower.go
routers/api/v1/user/gpg_key.go
routers/api/v1/user/key.go
routers/api/v1/user/repo.go
routers/api/v1/user/star.go
routers/api/v1/user/user.go
routers/api/v1/user/watch.go
routers/api/v1/utils/hook.go
templates/swagger/v1_json.tmpl