code.gitea.io/gitea@v1.21.7/routers/api/v1/swagger/repo.go (about)

     1  // Copyright 2017 The Gitea Authors. All rights reserved.
     2  // SPDX-License-Identifier: MIT
     3  
     4  package swagger
     5  
     6  import (
     7  	api "code.gitea.io/gitea/modules/structs"
     8  )
     9  
    10  // Repository
    11  // swagger:response Repository
    12  type swaggerResponseRepository struct {
    13  	// in:body
    14  	Body api.Repository `json:"body"`
    15  }
    16  
    17  // RepositoryList
    18  // swagger:response RepositoryList
    19  type swaggerResponseRepositoryList struct {
    20  	// in:body
    21  	Body []api.Repository `json:"body"`
    22  }
    23  
    24  // Branch
    25  // swagger:response Branch
    26  type swaggerResponseBranch struct {
    27  	// in:body
    28  	Body api.Branch `json:"body"`
    29  }
    30  
    31  // BranchList
    32  // swagger:response BranchList
    33  type swaggerResponseBranchList struct {
    34  	// in:body
    35  	Body []api.Branch `json:"body"`
    36  }
    37  
    38  // BranchProtection
    39  // swagger:response BranchProtection
    40  type swaggerResponseBranchProtection struct {
    41  	// in:body
    42  	Body api.BranchProtection `json:"body"`
    43  }
    44  
    45  // BranchProtectionList
    46  // swagger:response BranchProtectionList
    47  type swaggerResponseBranchProtectionList struct {
    48  	// in:body
    49  	Body []api.BranchProtection `json:"body"`
    50  }
    51  
    52  // TagList
    53  // swagger:response TagList
    54  type swaggerResponseTagList struct {
    55  	// in:body
    56  	Body []api.Tag `json:"body"`
    57  }
    58  
    59  // Tag
    60  // swagger:response Tag
    61  type swaggerResponseTag struct {
    62  	// in:body
    63  	Body api.Tag `json:"body"`
    64  }
    65  
    66  // AnnotatedTag
    67  // swagger:response AnnotatedTag
    68  type swaggerResponseAnnotatedTag struct {
    69  	// in:body
    70  	Body api.AnnotatedTag `json:"body"`
    71  }
    72  
    73  // Reference
    74  // swagger:response Reference
    75  type swaggerResponseReference struct {
    76  	// in:body
    77  	Body api.Reference `json:"body"`
    78  }
    79  
    80  // ReferenceList
    81  // swagger:response ReferenceList
    82  type swaggerResponseReferenceList struct {
    83  	// in:body
    84  	Body []api.Reference `json:"body"`
    85  }
    86  
    87  // Hook
    88  // swagger:response Hook
    89  type swaggerResponseHook struct {
    90  	// in:body
    91  	Body api.Hook `json:"body"`
    92  }
    93  
    94  // HookList
    95  // swagger:response HookList
    96  type swaggerResponseHookList struct {
    97  	// in:body
    98  	Body []api.Hook `json:"body"`
    99  }
   100  
   101  // GitHook
   102  // swagger:response GitHook
   103  type swaggerResponseGitHook struct {
   104  	// in:body
   105  	Body api.GitHook `json:"body"`
   106  }
   107  
   108  // GitHookList
   109  // swagger:response GitHookList
   110  type swaggerResponseGitHookList struct {
   111  	// in:body
   112  	Body []api.GitHook `json:"body"`
   113  }
   114  
   115  // Release
   116  // swagger:response Release
   117  type swaggerResponseRelease struct {
   118  	// in:body
   119  	Body api.Release `json:"body"`
   120  }
   121  
   122  // ReleaseList
   123  // swagger:response ReleaseList
   124  type swaggerResponseReleaseList struct {
   125  	// in:body
   126  	Body []api.Release `json:"body"`
   127  }
   128  
   129  // PullRequest
   130  // swagger:response PullRequest
   131  type swaggerResponsePullRequest struct {
   132  	// in:body
   133  	Body api.PullRequest `json:"body"`
   134  }
   135  
   136  // PullRequestList
   137  // swagger:response PullRequestList
   138  type swaggerResponsePullRequestList struct {
   139  	// in:body
   140  	Body []api.PullRequest `json:"body"`
   141  }
   142  
   143  // PullReview
   144  // swagger:response PullReview
   145  type swaggerResponsePullReview struct {
   146  	// in:body
   147  	Body api.PullReview `json:"body"`
   148  }
   149  
   150  // PullReviewList
   151  // swagger:response PullReviewList
   152  type swaggerResponsePullReviewList struct {
   153  	// in:body
   154  	Body []api.PullReview `json:"body"`
   155  }
   156  
   157  // PullComment
   158  // swagger:response PullReviewComment
   159  type swaggerPullReviewComment struct {
   160  	// in:body
   161  	Body api.PullReviewComment `json:"body"`
   162  }
   163  
   164  // PullCommentList
   165  // swagger:response PullReviewCommentList
   166  type swaggerResponsePullReviewCommentList struct {
   167  	// in:body
   168  	Body []api.PullReviewComment `json:"body"`
   169  }
   170  
   171  // CommitStatus
   172  // swagger:response CommitStatus
   173  type swaggerResponseStatus struct {
   174  	// in:body
   175  	Body api.CommitStatus `json:"body"`
   176  }
   177  
   178  // CommitStatusList
   179  // swagger:response CommitStatusList
   180  type swaggerResponseCommitStatusList struct {
   181  	// in:body
   182  	Body []api.CommitStatus `json:"body"`
   183  }
   184  
   185  // WatchInfo
   186  // swagger:response WatchInfo
   187  type swaggerResponseWatchInfo struct {
   188  	// in:body
   189  	Body api.WatchInfo `json:"body"`
   190  }
   191  
   192  // SearchResults
   193  // swagger:response SearchResults
   194  type swaggerResponseSearchResults struct {
   195  	// in:body
   196  	Body api.SearchResults `json:"body"`
   197  }
   198  
   199  // AttachmentList
   200  // swagger:response AttachmentList
   201  type swaggerResponseAttachmentList struct {
   202  	// in: body
   203  	Body []api.Attachment `json:"body"`
   204  }
   205  
   206  // Attachment
   207  // swagger:response Attachment
   208  type swaggerResponseAttachment struct {
   209  	// in: body
   210  	Body api.Attachment `json:"body"`
   211  }
   212  
   213  // GitTreeResponse
   214  // swagger:response GitTreeResponse
   215  type swaggerGitTreeResponse struct {
   216  	// in: body
   217  	Body api.GitTreeResponse `json:"body"`
   218  }
   219  
   220  // GitBlobResponse
   221  // swagger:response GitBlobResponse
   222  type swaggerGitBlobResponse struct {
   223  	// in: body
   224  	Body api.GitBlobResponse `json:"body"`
   225  }
   226  
   227  // Commit
   228  // swagger:response Commit
   229  type swaggerCommit struct {
   230  	// in: body
   231  	Body api.Commit `json:"body"`
   232  }
   233  
   234  // CommitList
   235  // swagger:response CommitList
   236  type swaggerCommitList struct {
   237  	// The current page
   238  	Page int `json:"X-Page"`
   239  
   240  	// Commits per page
   241  	PerPage int `json:"X-PerPage"`
   242  
   243  	// Total commit count
   244  	Total int `json:"X-Total"`
   245  
   246  	// Total number of pages
   247  	PageCount int `json:"X-PageCount"`
   248  
   249  	// True if there is another page
   250  	HasMore bool `json:"X-HasMore"`
   251  
   252  	// in: body
   253  	Body []api.Commit `json:"body"`
   254  }
   255  
   256  // ChangedFileList
   257  // swagger:response ChangedFileList
   258  type swaggerChangedFileList struct {
   259  	// The current page
   260  	Page int `json:"X-Page"`
   261  
   262  	// Commits per page
   263  	PerPage int `json:"X-PerPage"`
   264  
   265  	// Total commit count
   266  	Total int `json:"X-Total"`
   267  
   268  	// Total number of pages
   269  	PageCount int `json:"X-PageCount"`
   270  
   271  	// True if there is another page
   272  	HasMore bool `json:"X-HasMore"`
   273  
   274  	// in: body
   275  	Body []api.ChangedFile `json:"body"`
   276  }
   277  
   278  // Note
   279  // swagger:response Note
   280  type swaggerNote struct {
   281  	// in: body
   282  	Body api.Note `json:"body"`
   283  }
   284  
   285  // EmptyRepository
   286  // swagger:response EmptyRepository
   287  type swaggerEmptyRepository struct {
   288  	// in: body
   289  	Body api.APIError `json:"body"`
   290  }
   291  
   292  // FileResponse
   293  // swagger:response FileResponse
   294  type swaggerFileResponse struct {
   295  	// in: body
   296  	Body api.FileResponse `json:"body"`
   297  }
   298  
   299  // FilesResponse
   300  // swagger:response FilesResponse
   301  type swaggerFilesResponse struct {
   302  	// in: body
   303  	Body api.FilesResponse `json:"body"`
   304  }
   305  
   306  // ContentsResponse
   307  // swagger:response ContentsResponse
   308  type swaggerContentsResponse struct {
   309  	// in: body
   310  	Body api.ContentsResponse `json:"body"`
   311  }
   312  
   313  // ContentsListResponse
   314  // swagger:response ContentsListResponse
   315  type swaggerContentsListResponse struct {
   316  	// in:body
   317  	Body []api.ContentsResponse `json:"body"`
   318  }
   319  
   320  // FileDeleteResponse
   321  // swagger:response FileDeleteResponse
   322  type swaggerFileDeleteResponse struct {
   323  	// in: body
   324  	Body api.FileDeleteResponse `json:"body"`
   325  }
   326  
   327  // TopicListResponse
   328  // swagger:response TopicListResponse
   329  type swaggerTopicListResponse struct {
   330  	// in: body
   331  	Body []api.TopicResponse `json:"body"`
   332  }
   333  
   334  // TopicNames
   335  // swagger:response TopicNames
   336  type swaggerTopicNames struct {
   337  	// in: body
   338  	Body api.TopicName `json:"body"`
   339  }
   340  
   341  // LanguageStatistics
   342  // swagger:response LanguageStatistics
   343  type swaggerLanguageStatistics struct {
   344  	// in: body
   345  	Body map[string]int64 `json:"body"`
   346  }
   347  
   348  // CombinedStatus
   349  // swagger:response CombinedStatus
   350  type swaggerCombinedStatus struct {
   351  	// in: body
   352  	Body api.CombinedStatus `json:"body"`
   353  }
   354  
   355  // WikiPageList
   356  // swagger:response WikiPageList
   357  type swaggerWikiPageList struct {
   358  	// in:body
   359  	Body []api.WikiPageMetaData `json:"body"`
   360  }
   361  
   362  // WikiPage
   363  // swagger:response WikiPage
   364  type swaggerWikiPage struct {
   365  	// in:body
   366  	Body api.WikiPage `json:"body"`
   367  }
   368  
   369  // WikiCommitList
   370  // swagger:response WikiCommitList
   371  type swaggerWikiCommitList struct {
   372  	// in:body
   373  	Body api.WikiCommitList `json:"body"`
   374  }
   375  
   376  // PushMirror
   377  // swagger:response PushMirror
   378  type swaggerPushMirror struct {
   379  	// in:body
   380  	Body api.PushMirror `json:"body"`
   381  }
   382  
   383  // PushMirrorList
   384  // swagger:response PushMirrorList
   385  type swaggerPushMirrorList struct {
   386  	// in:body
   387  	Body []api.PushMirror `json:"body"`
   388  }
   389  
   390  // RepoCollaboratorPermission
   391  // swagger:response RepoCollaboratorPermission
   392  type swaggerRepoCollaboratorPermission struct {
   393  	// in:body
   394  	Body api.RepoCollaboratorPermission `json:"body"`
   395  }
   396  
   397  // RepoIssueConfig
   398  // swagger:response RepoIssueConfig
   399  type swaggerRepoIssueConfig struct {
   400  	// in:body
   401  	Body api.IssueConfig `json:"body"`
   402  }
   403  
   404  // RepoIssueConfigValidation
   405  // swagger:response RepoIssueConfigValidation
   406  type swaggerRepoIssueConfigValidation struct {
   407  	// in:body
   408  	Body api.IssueConfigValidation `json:"body"`
   409  }
   410  
   411  // RepoNewIssuePinsAllowed
   412  // swagger:response RepoNewIssuePinsAllowed
   413  type swaggerRepoNewIssuePinsAllowed struct {
   414  	// in:body
   415  	Body api.NewIssuePinsAllowed `json:"body"`
   416  }