mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-24 09:27:17 +00:00
9a5e628a7e
* 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
69 lines
1.8 KiB
Go
69 lines
1.8 KiB
Go
// 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 (
|
|
"code.gitea.io/gitea/modules/auth"
|
|
api "code.gitea.io/sdk/gitea"
|
|
)
|
|
|
|
// not actually a response, just a hack to get go-swagger to include definitions
|
|
// of the various XYZOption structs
|
|
|
|
// swagger:response parameterBodies
|
|
type swaggerParameterBodies struct {
|
|
AddCollaboratorOption api.AddCollaboratorOption
|
|
|
|
CreateEmailOption api.CreateEmailOption
|
|
DeleteEmailOption api.DeleteEmailOption
|
|
|
|
CreateHookOption api.CreateHookOption
|
|
EditHookOption api.EditHookOption
|
|
|
|
CreateIssueOption api.CreateIssueOption
|
|
EditIssueOption api.EditIssueOption
|
|
|
|
CreateIssueCommentOption api.CreateIssueCommentOption
|
|
EditIssueCommentOption api.EditIssueCommentOption
|
|
|
|
IssueLabelsOption api.IssueLabelsOption
|
|
|
|
CreateKeyOption api.CreateKeyOption
|
|
|
|
CreateLabelOption api.CreateLabelOption
|
|
EditLabelOption api.EditLabelOption
|
|
|
|
MarkdownOption api.MarkdownOption
|
|
|
|
CreateMilestoneOption api.CreateMilestoneOption
|
|
EditMilestoneOption api.EditMilestoneOption
|
|
|
|
CreateOrgOption api.CreateOrgOption
|
|
EditOrgOption api.EditOrgOption
|
|
|
|
CreatePullRequestOption api.CreatePullRequestOption
|
|
EditPullRequestOption api.EditPullRequestOption
|
|
|
|
CreateReleaseOption api.CreateReleaseOption
|
|
EditReleaseOption api.EditReleaseOption
|
|
|
|
CreateRepoOption api.CreateRepoOption
|
|
CreateForkOption api.CreateForkOption
|
|
|
|
CreateStatusOption api.CreateStatusOption
|
|
|
|
CreateTeamOption api.CreateTeamOption
|
|
EditTeamOption api.EditTeamOption
|
|
|
|
AddTimeOption api.AddTimeOption
|
|
|
|
CreateUserOption api.CreateUserOption
|
|
EditUserOption api.EditUserOption
|
|
|
|
MigrateRepoForm auth.MigrateRepoForm
|
|
|
|
EditAttachmentOptions api.EditAttachmentOptions
|
|
}
|