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.
Georg Dangl 9538842364
Use correct response code in push mirror creation response in v1_json.tmpl (#25476)
In the process of doing a bit of automation via the API, we've
discovered a _small_ issue in the Swagger definition. We tried to create
a push mirror for a repository, but our generated client raised an
exception due to an unexpected status code.

When looking at this function:

3c7f5ed7b5/routers/api/v1/repo/mirror.go (L236-L240)

We see it defines `201 - Created` as response:

3c7f5ed7b5/routers/api/v1/repo/mirror.go (L260-L262)

But it actually returns `200 - OK`:

3c7f5ed7b5/routers/api/v1/repo/mirror.go (L373)

So I've just updated the Swagger definitions to match the code😀

---------

Co-authored-by: Giteabot <teabot@gitea.io>
1 year ago
..
blob.go Implement FSFE REUSE for golang files (#21840) 2 years ago
branch.go Create a branch directly from commit on the create branch API (#22956) 1 year ago
collaborators.go Add context cache as a request level cache (#22294) 1 year ago
commits.go Filter get single commit (#24613) 1 year ago
file.go Fix all possible setting error related storages and added some tests (#23911) 1 year ago
fork.go Fix `Permission` in API returned repository struct (#25388) 1 year ago
git_hook.go Move `convert` package to services (#22264) 2 years ago
git_ref.go Implement FSFE REUSE for golang files (#21840) 2 years ago
hook.go Fix `Permission` in API returned repository struct (#25388) 1 year ago
hook_test.go Refactor web package and context package (#25298) 1 year ago
issue.go Decouple the different contexts from each other (#24786) 1 year ago
issue_attachment.go Preserve file size when creating attachments (#23406) 1 year ago
issue_comment.go Use `CommentList` instead of `[]*Comment` (#24828) 1 year ago
issue_comment_attachment.go Preserve file size when creating attachments (#23406) 1 year ago
issue_dependency.go Add API to manage issue dependencies (#17935) 1 year ago
issue_label.go Move `convert` package to services (#22264) 2 years ago
issue_pin.go Followup to pinned Issues (#24945) 1 year ago
issue_reaction.go Add context cache as a request level cache (#22294) 1 year ago
issue_stopwatch.go Move `convert` package to services (#22264) 2 years ago
issue_subscription.go Add context cache as a request level cache (#22294) 1 year ago
issue_tracked_time.go Decouple the different contexts from each other (#24786) 1 year ago
key.go Fix `Permission` in API returned repository struct (#25388) 1 year ago
label.go Add loading yaml label template files (#22976) 1 year ago
language.go Implement FSFE REUSE for golang files (#21840) 2 years ago
main_test.go Merge setting.InitXXX into one function with options (#24389) 1 year ago
migrate.go Fix `Permission` in API returned repository struct (#25388) 1 year ago
milestone.go Move `convert` package to services (#22264) 2 years ago
mirror.go Use correct response code in push mirror creation response in v1_json.tmpl (#25476) 1 year ago
notes.go Filters for GetAllCommits (#24568) 1 year ago
patch.go Implement FSFE REUSE for golang files (#21840) 2 years ago
pull.go Filters for GetAllCommits (#24568) 1 year ago
pull_review.go Make more functions use ctx instead of db.DefaultContext (#24068) 1 year ago
release.go Add context cache as a request level cache (#22294) 1 year ago
release_attachment.go Preserve file size when creating attachments (#23406) 1 year ago
release_tags.go Add context cache as a request level cache (#22294) 1 year ago
repo.go Fix `Permission` in API returned repository struct (#25388) 1 year ago
repo_test.go Refactor web package and context package (#25298) 1 year ago
star.go Add context cache as a request level cache (#22294) 1 year ago
status.go Fix `Permission` in API returned repository struct (#25388) 1 year ago
subscriber.go Add context cache as a request level cache (#22294) 1 year ago
tag.go Add context cache as a request level cache (#22294) 1 year ago
teams.go Add context cache as a request level cache (#22294) 1 year ago
topic.go Move `convert` package to services (#22264) 2 years ago
transfer.go Fix `Permission` in API returned repository struct (#25388) 1 year ago
tree.go Implement FSFE REUSE for golang files (#21840) 2 years ago
wiki.go Pass 'not' to commit count (#24473) 1 year ago