2017-11-13 12:32:25 +05:30
|
|
|
// Copyright 2017 The Gitea Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a MIT-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
package swagger
|
|
|
|
|
|
|
|
import (
|
2019-05-11 15:51:34 +05:30
|
|
|
api "code.gitea.io/gitea/modules/structs"
|
2017-11-13 12:32:25 +05:30
|
|
|
)
|
|
|
|
|
2018-05-31 16:43:55 +05:30
|
|
|
// Repository
|
2017-11-13 12:32:25 +05:30
|
|
|
// swagger:response Repository
|
|
|
|
type swaggerResponseRepository struct {
|
|
|
|
// in:body
|
|
|
|
Body api.Repository `json:"body"`
|
|
|
|
}
|
|
|
|
|
2018-05-31 16:43:55 +05:30
|
|
|
// RepositoryList
|
2017-11-13 12:32:25 +05:30
|
|
|
// swagger:response RepositoryList
|
|
|
|
type swaggerResponseRepositoryList struct {
|
|
|
|
// in:body
|
|
|
|
Body []api.Repository `json:"body"`
|
|
|
|
}
|
|
|
|
|
2018-05-31 16:43:55 +05:30
|
|
|
// Branch
|
2017-11-13 12:32:25 +05:30
|
|
|
// swagger:response Branch
|
|
|
|
type swaggerResponseBranch struct {
|
|
|
|
// in:body
|
|
|
|
Body api.Branch `json:"body"`
|
|
|
|
}
|
|
|
|
|
2018-05-31 16:43:55 +05:30
|
|
|
// BranchList
|
2017-11-13 12:32:25 +05:30
|
|
|
// swagger:response BranchList
|
|
|
|
type swaggerResponseBranchList struct {
|
|
|
|
// in:body
|
|
|
|
Body []api.Branch `json:"body"`
|
|
|
|
}
|
|
|
|
|
2019-02-07 17:30:52 +05:30
|
|
|
// TagList
|
|
|
|
// swagger:response TagList
|
2019-06-08 20:01:11 +05:30
|
|
|
type swaggerResponseTagList struct {
|
2019-02-07 17:30:52 +05:30
|
|
|
// in:body
|
|
|
|
Body []api.Tag `json:"body"`
|
|
|
|
}
|
|
|
|
|
2019-06-08 20:01:11 +05:30
|
|
|
// Tag
|
|
|
|
// swagger:response Tag
|
|
|
|
type swaggerResponseTag struct {
|
|
|
|
// in:body
|
|
|
|
Body api.Tag `json:"body"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// AnnotatedTag
|
|
|
|
// swagger:response AnnotatedTag
|
|
|
|
type swaggerResponseAnnotatedTag struct {
|
|
|
|
// in:body
|
|
|
|
Body api.AnnotatedTag `json:"body"`
|
|
|
|
}
|
|
|
|
|
2018-11-28 03:22:20 +05:30
|
|
|
// Reference
|
|
|
|
// swagger:response Reference
|
|
|
|
type swaggerResponseReference struct {
|
|
|
|
// in:body
|
|
|
|
Body api.Reference `json:"body"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// ReferenceList
|
|
|
|
// swagger:response ReferenceList
|
|
|
|
type swaggerResponseReferenceList struct {
|
|
|
|
// in:body
|
|
|
|
Body []api.Reference `json:"body"`
|
|
|
|
}
|
|
|
|
|
2018-05-31 16:43:55 +05:30
|
|
|
// Hook
|
2017-11-13 12:32:25 +05:30
|
|
|
// swagger:response Hook
|
|
|
|
type swaggerResponseHook struct {
|
|
|
|
// in:body
|
2019-03-27 01:11:17 +05:30
|
|
|
Body api.Hook `json:"body"`
|
2017-11-13 12:32:25 +05:30
|
|
|
}
|
|
|
|
|
2018-05-31 16:43:55 +05:30
|
|
|
// HookList
|
2017-11-13 12:32:25 +05:30
|
|
|
// swagger:response HookList
|
|
|
|
type swaggerResponseHookList struct {
|
|
|
|
// in:body
|
2019-03-27 01:11:17 +05:30
|
|
|
Body []api.Hook `json:"body"`
|
2017-11-13 12:32:25 +05:30
|
|
|
}
|
|
|
|
|
2019-04-17 11:01:08 +05:30
|
|
|
// GitHook
|
|
|
|
// swagger:response GitHook
|
|
|
|
type swaggerResponseGitHook struct {
|
|
|
|
// in:body
|
|
|
|
Body api.GitHook `json:"body"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// GitHookList
|
|
|
|
// swagger:response GitHookList
|
|
|
|
type swaggerResponseGitHookList struct {
|
|
|
|
// in:body
|
|
|
|
Body []api.GitHook `json:"body"`
|
|
|
|
}
|
|
|
|
|
2018-05-31 16:43:55 +05:30
|
|
|
// Release
|
2017-11-13 12:32:25 +05:30
|
|
|
// swagger:response Release
|
|
|
|
type swaggerResponseRelease struct {
|
|
|
|
// in:body
|
|
|
|
Body api.Release `json:"body"`
|
|
|
|
}
|
|
|
|
|
2018-05-31 16:43:55 +05:30
|
|
|
// ReleaseList
|
2017-11-13 12:32:25 +05:30
|
|
|
// swagger:response ReleaseList
|
|
|
|
type swaggerResponseReleaseList struct {
|
|
|
|
// in:body
|
|
|
|
Body []api.Release `json:"body"`
|
|
|
|
}
|
|
|
|
|
2018-05-31 16:43:55 +05:30
|
|
|
// PullRequest
|
2017-11-13 12:32:25 +05:30
|
|
|
// swagger:response PullRequest
|
|
|
|
type swaggerResponsePullRequest struct {
|
|
|
|
// in:body
|
|
|
|
Body api.PullRequest `json:"body"`
|
|
|
|
}
|
|
|
|
|
2018-05-31 16:43:55 +05:30
|
|
|
// PullRequestList
|
2017-11-13 12:32:25 +05:30
|
|
|
// swagger:response PullRequestList
|
|
|
|
type swaggerResponsePullRequestList struct {
|
|
|
|
// in:body
|
|
|
|
Body []api.PullRequest `json:"body"`
|
|
|
|
}
|
|
|
|
|
2018-05-31 16:43:55 +05:30
|
|
|
// Status
|
2017-11-13 12:32:25 +05:30
|
|
|
// swagger:response Status
|
|
|
|
type swaggerResponseStatus struct {
|
|
|
|
// in:body
|
|
|
|
Body api.Status `json:"body"`
|
|
|
|
}
|
|
|
|
|
2018-05-31 16:43:55 +05:30
|
|
|
// StatusList
|
2017-11-13 12:32:25 +05:30
|
|
|
// swagger:response StatusList
|
|
|
|
type swaggerResponseStatusList struct {
|
|
|
|
// in:body
|
|
|
|
Body []api.Status `json:"body"`
|
|
|
|
}
|
|
|
|
|
2018-05-31 16:43:55 +05:30
|
|
|
// WatchInfo
|
2017-11-13 12:32:25 +05:30
|
|
|
// swagger:response WatchInfo
|
|
|
|
type swaggerResponseWatchInfo struct {
|
|
|
|
// in:body
|
|
|
|
Body api.WatchInfo `json:"body"`
|
|
|
|
}
|
|
|
|
|
2018-05-31 16:43:55 +05:30
|
|
|
// SearchResults
|
2017-11-13 12:32:25 +05:30
|
|
|
// swagger:response SearchResults
|
|
|
|
type swaggerResponseSearchResults struct {
|
2018-06-12 20:29:22 +05:30
|
|
|
// in:body
|
2017-11-13 12:32:25 +05:30
|
|
|
Body api.SearchResults `json:"body"`
|
|
|
|
}
|
2018-03-06 06:52:16 +05:30
|
|
|
|
2018-05-31 16:43:55 +05:30
|
|
|
// AttachmentList
|
2018-03-06 06:52:16 +05:30
|
|
|
// swagger:response AttachmentList
|
|
|
|
type swaggerResponseAttachmentList struct {
|
|
|
|
//in: body
|
|
|
|
Body []api.Attachment `json:"body"`
|
|
|
|
}
|
|
|
|
|
2018-05-31 16:43:55 +05:30
|
|
|
// Attachment
|
2018-03-06 06:52:16 +05:30
|
|
|
// swagger:response Attachment
|
|
|
|
type swaggerResponseAttachment struct {
|
|
|
|
//in: body
|
|
|
|
Body api.Attachment `json:"body"`
|
|
|
|
}
|
2019-01-24 23:43:30 +05:30
|
|
|
|
|
|
|
// GitTreeResponse
|
|
|
|
// swagger:response GitTreeResponse
|
|
|
|
type swaggerGitTreeResponse struct {
|
|
|
|
//in: body
|
|
|
|
Body api.GitTreeResponse `json:"body"`
|
|
|
|
}
|
2019-02-03 09:05:17 +05:30
|
|
|
|
2019-04-17 21:36:35 +05:30
|
|
|
// GitBlobResponse
|
|
|
|
// swagger:response GitBlobResponse
|
|
|
|
type swaggerGitBlobResponse struct {
|
|
|
|
//in: body
|
|
|
|
Body api.GitBlobResponse `json:"body"`
|
|
|
|
}
|
|
|
|
|
2019-02-03 09:05:17 +05:30
|
|
|
// Commit
|
|
|
|
// swagger:response Commit
|
|
|
|
type swaggerCommit struct {
|
|
|
|
//in: body
|
|
|
|
Body api.Commit `json:"body"`
|
|
|
|
}
|
2019-04-17 21:36:35 +05:30
|
|
|
|
|
|
|
// FileResponse
|
|
|
|
// swagger:response FileResponse
|
|
|
|
type swaggerFileResponse struct {
|
|
|
|
//in: body
|
|
|
|
Body api.FileResponse `json:"body"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// FileContentResponse
|
|
|
|
// swagger:response FileContentResponse
|
|
|
|
type swaggerFileContentResponse struct {
|
|
|
|
//in: body
|
|
|
|
Body api.FileContentResponse `json:"body"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// FileDeleteResponse
|
|
|
|
// swagger:response FileDeleteResponse
|
|
|
|
type swaggerFileDeleteResponse struct {
|
|
|
|
//in: body
|
|
|
|
Body api.FileDeleteResponse `json:"body"`
|
|
|
|
}
|