diff options
Diffstat (limited to 'vendor/code.gitea.io/sdk/gitea/miscellaneous.go')
-rw-r--r-- | vendor/code.gitea.io/sdk/gitea/miscellaneous.go | 38 |
1 files changed, 35 insertions, 3 deletions
diff --git a/vendor/code.gitea.io/sdk/gitea/miscellaneous.go b/vendor/code.gitea.io/sdk/gitea/miscellaneous.go index dc56177ca6..be1aa5e8b0 100644 --- a/vendor/code.gitea.io/sdk/gitea/miscellaneous.go +++ b/vendor/code.gitea.io/sdk/gitea/miscellaneous.go @@ -4,15 +4,47 @@ package gitea +// SearchResults results of search +// swagger:response SearchResults +type SearchResults struct { + OK bool `json:"ok"` + Data []*Repository `json:"data"` +} + +// SearchError error of failing search +// swagger:response SearchError +type SearchError struct { + OK bool `json:"ok"` + Error string `json:"error"` +} + // MarkdownOption markdown options +// swagger:parameters renderMarkdown type MarkdownOption struct { - Text string - Mode string + // Text markdown to render + // + // in: body + Text string + // Mode to render + // + // in: body + Mode string + // Context to render + // + // in: body Context string - Wiki bool + // Is it a wiki page ? + // + // in: body + Wiki bool } +// MarkdownRender is a rendered markdown document +// swagger:response MarkdownRender +type MarkdownRender string + // ServerVersion wraps the version of the server +// swagger:response ServerVersion type ServerVersion struct { Version string } |