You've already forked woodpecker
mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-07-12 22:21:40 +02:00
Cleanup openapi generation (#4331)
Co-authored-by: oauth <woodpecker-bot@obermui.de> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
@ -144,14 +144,14 @@ func PatchForge(c *gin.Context) {
|
||||
|
||||
// PostForge
|
||||
//
|
||||
// @Summary Create a new forge
|
||||
// @Description Creates a new forge with a random token
|
||||
// @Router /forges [post]
|
||||
// @Produce json
|
||||
// @Success 200 {object} Forge
|
||||
// @Tags Forges
|
||||
// @Param Authorization header string true "Insert your personal access token" default(Bearer <personal access token>)
|
||||
// @Param forge body Forge true "the forge's data (only 'name' and 'no_schedule' are read)"
|
||||
// @Summary Create a new forge
|
||||
// @Description Creates a new forge with a random token
|
||||
// @Router /forges [post]
|
||||
// @Produce json
|
||||
// @Success 200 {object} Forge
|
||||
// @Tags Forges
|
||||
// @Param Authorization header string true "Insert your personal access token" default(Bearer <personal access token>)
|
||||
// @Param forge body Forge true "the forge's data (only 'name' and 'no_schedule' are read)"
|
||||
func PostForge(c *gin.Context) {
|
||||
in := &model.Forge{}
|
||||
err := c.Bind(in)
|
||||
|
Reference in New Issue
Block a user