You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

repo.go 5.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. // Copyright 2017 The Gitea Authors. All rights reserved.
  2. // Use of this source code is governed by a MIT-style
  3. // license that can be found in the LICENSE file.
  4. package swagger
  5. import (
  6. api "code.gitea.io/gitea/modules/structs"
  7. )
  8. // Repository
  9. // swagger:response Repository
  10. type swaggerResponseRepository struct {
  11. // in:body
  12. Body api.Repository `json:"body"`
  13. }
  14. // RepositoryList
  15. // swagger:response RepositoryList
  16. type swaggerResponseRepositoryList struct {
  17. // in:body
  18. Body []api.Repository `json:"body"`
  19. }
  20. // Branch
  21. // swagger:response Branch
  22. type swaggerResponseBranch struct {
  23. // in:body
  24. Body api.Branch `json:"body"`
  25. }
  26. // BranchList
  27. // swagger:response BranchList
  28. type swaggerResponseBranchList struct {
  29. // in:body
  30. Body []api.Branch `json:"body"`
  31. }
  32. // BranchProtection
  33. // swagger:response BranchProtection
  34. type swaggerResponseBranchProtection struct {
  35. // in:body
  36. Body api.BranchProtection `json:"body"`
  37. }
  38. // BranchProtectionList
  39. // swagger:response BranchProtectionList
  40. type swaggerResponseBranchProtectionList struct {
  41. // in:body
  42. Body []api.BranchProtection `json:"body"`
  43. }
  44. // TagList
  45. // swagger:response TagList
  46. type swaggerResponseTagList struct {
  47. // in:body
  48. Body []api.Tag `json:"body"`
  49. }
  50. // Tag
  51. // swagger:response Tag
  52. type swaggerResponseTag struct {
  53. // in:body
  54. Body api.Tag `json:"body"`
  55. }
  56. // AnnotatedTag
  57. // swagger:response AnnotatedTag
  58. type swaggerResponseAnnotatedTag struct {
  59. // in:body
  60. Body api.AnnotatedTag `json:"body"`
  61. }
  62. // Reference
  63. // swagger:response Reference
  64. type swaggerResponseReference struct {
  65. // in:body
  66. Body api.Reference `json:"body"`
  67. }
  68. // ReferenceList
  69. // swagger:response ReferenceList
  70. type swaggerResponseReferenceList struct {
  71. // in:body
  72. Body []api.Reference `json:"body"`
  73. }
  74. // Hook
  75. // swagger:response Hook
  76. type swaggerResponseHook struct {
  77. // in:body
  78. Body api.Hook `json:"body"`
  79. }
  80. // HookList
  81. // swagger:response HookList
  82. type swaggerResponseHookList struct {
  83. // in:body
  84. Body []api.Hook `json:"body"`
  85. }
  86. // GitHook
  87. // swagger:response GitHook
  88. type swaggerResponseGitHook struct {
  89. // in:body
  90. Body api.GitHook `json:"body"`
  91. }
  92. // GitHookList
  93. // swagger:response GitHookList
  94. type swaggerResponseGitHookList struct {
  95. // in:body
  96. Body []api.GitHook `json:"body"`
  97. }
  98. // Release
  99. // swagger:response Release
  100. type swaggerResponseRelease struct {
  101. // in:body
  102. Body api.Release `json:"body"`
  103. }
  104. // ReleaseList
  105. // swagger:response ReleaseList
  106. type swaggerResponseReleaseList struct {
  107. // in:body
  108. Body []api.Release `json:"body"`
  109. }
  110. // PullRequest
  111. // swagger:response PullRequest
  112. type swaggerResponsePullRequest struct {
  113. // in:body
  114. Body api.PullRequest `json:"body"`
  115. }
  116. // PullRequestList
  117. // swagger:response PullRequestList
  118. type swaggerResponsePullRequestList struct {
  119. // in:body
  120. Body []api.PullRequest `json:"body"`
  121. }
  122. // Status
  123. // swagger:response Status
  124. type swaggerResponseStatus struct {
  125. // in:body
  126. Body api.Status `json:"body"`
  127. }
  128. // StatusList
  129. // swagger:response StatusList
  130. type swaggerResponseStatusList struct {
  131. // in:body
  132. Body []api.Status `json:"body"`
  133. }
  134. // WatchInfo
  135. // swagger:response WatchInfo
  136. type swaggerResponseWatchInfo struct {
  137. // in:body
  138. Body api.WatchInfo `json:"body"`
  139. }
  140. // SearchResults
  141. // swagger:response SearchResults
  142. type swaggerResponseSearchResults struct {
  143. // in:body
  144. Body api.SearchResults `json:"body"`
  145. }
  146. // AttachmentList
  147. // swagger:response AttachmentList
  148. type swaggerResponseAttachmentList struct {
  149. //in: body
  150. Body []api.Attachment `json:"body"`
  151. }
  152. // Attachment
  153. // swagger:response Attachment
  154. type swaggerResponseAttachment struct {
  155. //in: body
  156. Body api.Attachment `json:"body"`
  157. }
  158. // GitTreeResponse
  159. // swagger:response GitTreeResponse
  160. type swaggerGitTreeResponse struct {
  161. //in: body
  162. Body api.GitTreeResponse `json:"body"`
  163. }
  164. // GitBlobResponse
  165. // swagger:response GitBlobResponse
  166. type swaggerGitBlobResponse struct {
  167. //in: body
  168. Body api.GitBlobResponse `json:"body"`
  169. }
  170. // Commit
  171. // swagger:response Commit
  172. type swaggerCommit struct {
  173. //in: body
  174. Body api.Commit `json:"body"`
  175. }
  176. // CommitList
  177. // swagger:response CommitList
  178. type swaggerCommitList struct {
  179. // The current page
  180. Page int `json:"X-Page"`
  181. // Commits per page
  182. PerPage int `json:"X-PerPage"`
  183. // Total commit count
  184. Total int `json:"X-Total"`
  185. // Total number of pages
  186. PageCount int `json:"X-PageCount"`
  187. // True if there is another page
  188. HasMore bool `json:"X-HasMore"`
  189. //in: body
  190. Body []api.Commit `json:"body"`
  191. }
  192. // EmptyRepository
  193. // swagger:response EmptyRepository
  194. type swaggerEmptyRepository struct {
  195. //in: body
  196. Body api.APIError `json:"body"`
  197. }
  198. // FileResponse
  199. // swagger:response FileResponse
  200. type swaggerFileResponse struct {
  201. //in: body
  202. Body api.FileResponse `json:"body"`
  203. }
  204. // ContentsResponse
  205. // swagger:response ContentsResponse
  206. type swaggerContentsResponse struct {
  207. //in: body
  208. Body api.ContentsResponse `json:"body"`
  209. }
  210. // ContentsListResponse
  211. // swagger:response ContentsListResponse
  212. type swaggerContentsListResponse struct {
  213. // in:body
  214. Body []api.ContentsResponse `json:"body"`
  215. }
  216. // FileDeleteResponse
  217. // swagger:response FileDeleteResponse
  218. type swaggerFileDeleteResponse struct {
  219. //in: body
  220. Body api.FileDeleteResponse `json:"body"`
  221. }
  222. // TopicListResponse
  223. // swagger:response TopicListResponse
  224. type swaggerTopicListResponse struct {
  225. //in: body
  226. Body []api.TopicResponse `json:"body"`
  227. }
  228. // TopicNames
  229. // swagger:response TopicNames
  230. type swaggerTopicNames struct {
  231. //in: body
  232. Body api.TopicName `json:"body"`
  233. }