gitea/modules/structs
qwerty287 3676fafdac
Add API to get/edit wiki ()
* Add API to get/edit wiki

* Add swagger docs, various improvements

* fmt

* Fix lint and rm comment

* Add page parameter

* Add pagination to pages

* Add tests

* fmt

* Update func names

* Update error handling

* Update type name

* Fix lint

* Don't delete Home

* Update func name

* Update routers/api/v1/repo/wiki.go

Co-authored-by: delvh <dev.lh@web.de>

* Remove unnecessary check

* Fix lint

* Use English strings

* Update integrations/api_wiki_test.go

Co-authored-by: delvh <dev.lh@web.de>

* Update func and test names

* Remove unsed check and avoid duplicated error reports

* Improve error handling

* Return after error

* Document 404 error

* Update swagger

* Fix lint

* Apply suggestions from code review

Co-authored-by: delvh <dev.lh@web.de>

* Document file encoding

* fmt

* Apply suggestions

* Use convert

* Fix integration test

* simplify permissions

* unify duplicate key Title/Name

* improve types & return UTC timestamps

* improve types pt.2

- add WikiPageMetaData.LastCommit
- add WikiPageMetaData.HTMLURL
- replace WikiPageMetaData.Updated with .LastCommit.Committer.Created

also delete convert.ToWikiPage(), as it received too many arguments and
only had one callsite anyway. sorry for bad advice earlier 🙃

* WikiPage.Content is base64 encoded

* simplify error handling in wikiContentsByName()

* update swagger

* fix & DRY findWikiRepoCommit() error handling

ListWikiPages() previously wrote error twice when repo wiki didn't exist

* rename Content -> ContentBase64

* Fix test

* Fix tests

* Update var name

* suburl -> sub_url

Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: Norwin <git@nroo.de>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
..
admin_user.go Add Visible modes function from Organisation to Users too ()
attachment.go Fix wrong hint when status checking is running on pull request view ()
commit_status.go [Refactor] CombinedStatus and CommitStatus related functions & structs ()
cron.go Add cron running API ()
doc.go Move sdk structs to modules/structs ()
fork.go Move sdk structs to modules/structs ()
git_blob.go Move sdk structs to modules/structs ()
git_hook.go Move sdk structs to modules/structs ()
hook.go Add an abstract json layout to make it's easier to change json library ()
issue.go rm gogs relict ()
issue_comment.go Display original author and URL information when showing migrated issues/comments ()
issue_label.go [API] Fix inconsistent label color format ()
issue_milestone.go Add Created & Updated to Milestone ()
issue_reaction.go [API] Fix 9544 | return 200 when reaction already exist ()
issue_stopwatch.go Display current stopwatch in navbar ()
issue_tracked_time.go [API] Extend times API ()
lfs_lock.go Move sdk structs to modules/structs ()
miscellaneous.go API method to list all commits of a repository ()
nodeinfo.go Add nodeinfo endpoint for federation purposes ()
notifications.go API: add html urls to notification subjects ()
org.go [API] Add endpount to get user org permissions ()
org_member.go Move sdk structs to modules/structs ()
org_team.go Add missing repo.projects unit into swagger ()
org_type.go Fixes - API Org Visibility ()
pull.go Add option to API to update PullRequest base branch ()
pull_review.go Expose resolver via API ()
release.go Add single release page and latest redirect ()
repo.go Add migrate from OneDev ()
repo_branch.go Support unprotected file patterns ()
repo_collaborator.go Move sdk structs to modules/structs ()
repo_commit.go [API] Add affected files of commits to commit struct ()
repo_file.go enhancement: add signoff option in commit form ()
repo_key.go Move sdk structs to modules/structs ()
repo_note.go Add an api endpoint to fetch git notes () ()
repo_refs.go Move sdk structs to modules/structs ()
repo_tag.go [API] Add repoCreateTag ()
repo_topic.go Add API endpoint for accessing repo topics ()
repo_tree.go Move sdk structs to modules/structs ()
repo_watch.go Move sdk structs to modules/structs ()
repo_wiki.go Add API to get/edit wiki ()
settings.go Add custom emoji support ()
status.go [Refactor] CombinedStatus and CommitStatus related functions & structs ()
task.go Move migrating repository from frontend to backend ()
user.go Add an abstract json layout to make it's easier to change json library ()
user_app.go Remove Unused Functions ()
user_email.go Move sdk structs to modules/structs ()
user_gpgkey.go Add option to provide signature for a token to verify key ownership ()
user_key.go Move sdk structs to modules/structs ()