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 8.4KB

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