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.

103 lines
2.2 KiB

Add Attachment API (#3478) * Add Attachment API * repos/:owner/:repo/releases (add attachments) * repos/:owner/:repo/releases/:id (add attachments) * repos/:owner/:repo/releases/:id/attachments * repos/:owner/:repo/releases/:id/attachments/:attachment_id Signed-off-by: Jonas Franz <info@jonasfranz.de> * Add unit tests for new attachment functions Fix comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * fix lint * Update vendor.json Signed-off-by: Jonas Franz <info@jonasfranz.software> * remove version of sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Add missing license header Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add CreateReleaseAttachment Add EditReleaseAttachment Add DeleteReleaseAttachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add filename query parameter for choosing another name for an attachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix order of imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Restricting updatable attachment columns Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update go-sdk Replace Attachments with Assets Signed-off-by: Jonas Franz <info@jonasfranz.de> * Update go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.de> * Updating go-sdk and regenerating swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing file of go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change origin of code.gitea.io/sdk to code.gitea.io/sdk Update code.gitea.io/sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update updateAttachment
6 years ago
Add Attachment API (#3478) * Add Attachment API * repos/:owner/:repo/releases (add attachments) * repos/:owner/:repo/releases/:id (add attachments) * repos/:owner/:repo/releases/:id/attachments * repos/:owner/:repo/releases/:id/attachments/:attachment_id Signed-off-by: Jonas Franz <info@jonasfranz.de> * Add unit tests for new attachment functions Fix comments Signed-off-by: Jonas Franz <info@jonasfranz.software> * fix lint * Update vendor.json Signed-off-by: Jonas Franz <info@jonasfranz.software> * remove version of sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix unit tests Add missing license header Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add CreateReleaseAttachment Add EditReleaseAttachment Add DeleteReleaseAttachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add filename query parameter for choosing another name for an attachment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Fix order of imports Signed-off-by: Jonas Franz <info@jonasfranz.software> * Restricting updatable attachment columns Signed-off-by: Jonas Franz <info@jonasfranz.software> * gofmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update go-sdk Replace Attachments with Assets Signed-off-by: Jonas Franz <info@jonasfranz.de> * Update go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.de> * Updating go-sdk and regenerating swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing file of go-sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Change origin of code.gitea.io/sdk to code.gitea.io/sdk Update code.gitea.io/sdk Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update swagger Signed-off-by: Jonas Franz <info@jonasfranz.software> * Update updateAttachment
6 years ago
  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. "code.gitea.io/gitea/modules/auth"
  7. api "code.gitea.io/sdk/gitea"
  8. )
  9. // not actually a response, just a hack to get go-swagger to include definitions
  10. // of the various XYZOption structs
  11. // parameterBodies
  12. // swagger:response parameterBodies
  13. type swaggerParameterBodies struct {
  14. // in:body
  15. AddCollaboratorOption api.AddCollaboratorOption
  16. // in:body
  17. CreateEmailOption api.CreateEmailOption
  18. // in:body
  19. DeleteEmailOption api.DeleteEmailOption
  20. // in:body
  21. CreateHookOption api.CreateHookOption
  22. // in:body
  23. EditHookOption api.EditHookOption
  24. // in:body
  25. CreateIssueOption api.CreateIssueOption
  26. // in:body
  27. EditIssueOption api.EditIssueOption
  28. // in:body
  29. EditDeadlineOption api.EditDeadlineOption
  30. // in:body
  31. CreateIssueCommentOption api.CreateIssueCommentOption
  32. // in:body
  33. EditIssueCommentOption api.EditIssueCommentOption
  34. // in:body
  35. IssueLabelsOption api.IssueLabelsOption
  36. // in:body
  37. CreateKeyOption api.CreateKeyOption
  38. // in:body
  39. CreateLabelOption api.CreateLabelOption
  40. // in:body
  41. EditLabelOption api.EditLabelOption
  42. // in:body
  43. MarkdownOption api.MarkdownOption
  44. // in:body
  45. CreateMilestoneOption api.CreateMilestoneOption
  46. // in:body
  47. EditMilestoneOption api.EditMilestoneOption
  48. // in:body
  49. CreateOrgOption api.CreateOrgOption
  50. // in:body
  51. EditOrgOption api.EditOrgOption
  52. // in:body
  53. CreatePullRequestOption api.CreatePullRequestOption
  54. // in:body
  55. EditPullRequestOption api.EditPullRequestOption
  56. // in:body
  57. CreateReleaseOption api.CreateReleaseOption
  58. // in:body
  59. EditReleaseOption api.EditReleaseOption
  60. // in:body
  61. CreateRepoOption api.CreateRepoOption
  62. // in:body
  63. CreateForkOption api.CreateForkOption
  64. // in:body
  65. CreateStatusOption api.CreateStatusOption
  66. // in:body
  67. CreateTeamOption api.CreateTeamOption
  68. // in:body
  69. EditTeamOption api.EditTeamOption
  70. // in:body
  71. AddTimeOption api.AddTimeOption
  72. // in:body
  73. CreateUserOption api.CreateUserOption
  74. // in:body
  75. EditUserOption api.EditUserOption
  76. // in:body
  77. MigrateRepoForm auth.MigrateRepoForm
  78. // in:body
  79. EditAttachmentOptions api.EditAttachmentOptions
  80. }