mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Fixes 4762 - Content API for Creating, Updating, Deleting Files (#6314)
This commit is contained in:
committed by
techknowlogick
parent
059195b127
commit
2262811e40
@@ -97,6 +97,7 @@ type swaggerParameterBodies struct {
|
||||
|
||||
// in:body
|
||||
CreateUserOption api.CreateUserOption
|
||||
|
||||
// in:body
|
||||
EditUserOption api.EditUserOption
|
||||
|
||||
@@ -105,4 +106,13 @@ type swaggerParameterBodies struct {
|
||||
|
||||
// in:body
|
||||
EditAttachmentOptions api.EditAttachmentOptions
|
||||
|
||||
// in:body
|
||||
CreateFileOptions api.CreateFileOptions
|
||||
|
||||
// in:body
|
||||
UpdateFileOptions api.UpdateFileOptions
|
||||
|
||||
// in:body
|
||||
DeleteFileOptions api.DeleteFileOptions
|
||||
}
|
||||
|
@@ -162,9 +162,37 @@ type swaggerGitTreeResponse struct {
|
||||
Body api.GitTreeResponse `json:"body"`
|
||||
}
|
||||
|
||||
// GitBlobResponse
|
||||
// swagger:response GitBlobResponse
|
||||
type swaggerGitBlobResponse struct {
|
||||
//in: body
|
||||
Body api.GitBlobResponse `json:"body"`
|
||||
}
|
||||
|
||||
// Commit
|
||||
// swagger:response Commit
|
||||
type swaggerCommit struct {
|
||||
//in: body
|
||||
Body api.Commit `json:"body"`
|
||||
}
|
||||
|
||||
// FileResponse
|
||||
// swagger:response FileResponse
|
||||
type swaggerFileResponse struct {
|
||||
//in: body
|
||||
Body api.FileResponse `json:"body"`
|
||||
}
|
||||
|
||||
// FileContentResponse
|
||||
// swagger:response FileContentResponse
|
||||
type swaggerFileContentResponse struct {
|
||||
//in: body
|
||||
Body api.FileContentResponse `json:"body"`
|
||||
}
|
||||
|
||||
// FileDeleteResponse
|
||||
// swagger:response FileDeleteResponse
|
||||
type swaggerFileDeleteResponse struct {
|
||||
//in: body
|
||||
Body api.FileDeleteResponse `json:"body"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user