docs: set up project files for swagger documentation

This commit is contained in:
eyad-hussein
2024-07-14 16:50:32 +03:00
parent 10c0766a77
commit 9ca2cdfa39
4 changed files with 47 additions and 0 deletions
+3
View File
@@ -205,4 +205,7 @@ type swaggerParameterBodies struct {
// in:body
UpdateVariableOption api.UpdateVariableOption
// in:body
CreateProjectOption api.CreateProjectOption
}
+15
View File
@@ -0,0 +1,15 @@
// Copyright 2017 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package swagger
import (
api "code.gitea.io/gitea/modules/structs"
)
// Project
// swagger:response Project
type swaggerResponseProject struct {
// in:body
Body api.Project `json:"body"`
}