project

package
v0.15.0-zentao-beta-4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProject

func GetProject(c *gin.Context)

@Summary Create and run a new project @Description Create and run a new project @Tags framework/projects @Accept application/json @Param project body models.Project true "json" @Success 200 {object} models.Project @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internal Error" @Router /projects/:projectName [get]

func GetProjectMetrics

func GetProjectMetrics(c *gin.Context)

@Summary Get a ProjectMetrics @Description Get a ProjectMetrics @Tags framework/ProjectMetrics @Param page query int true "query" @Param pagesize query int true "query" @Success 200 {object} models.ProjectMetric @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internel Error" @Router /projects/:projectName/metrics/:pluginName [get]

func GetProjects

func GetProjects(c *gin.Context)

@Summary Get list of projects @Description GET /projects?page=1&pagesize=10 @Tags framework/projects @Param page query int true "query" @Param pagesize query int true "query" @Success 200 {object} PaginatedProjects @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internel Error" @Router /projects [get]

func PatchProject

func PatchProject(c *gin.Context)

@Summary Patch a project @Description Patch a project @Tags framework/projects @Accept application/json @Param project body models.Project true "json" @Success 200 {object} models.Project @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internal Error" @Router /projects/:projectName [patch]

func PatchProjectMetrics

func PatchProjectMetrics(c *gin.Context)

@Summary Patch a ProjectMetrics @Description Patch a ProjectMetrics @Tags framework/ProjectMetrics @Accept application/json @Param ProjectMetrics body models.ProjectMetric true "json" @Success 200 {object} models.ProjectMetric @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internal Error" @Router /projects/:projectName/metrics/:pluginName [patch]

func PostProject

func PostProject(c *gin.Context)

@Summary Create a new project @Description Create a new project @Tags framework/projects @Accept application/json @Param project body models.Project true "json" @Success 200 {object} models.Project @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internal Error" @Router /projects [post]

func PostProjectMetrics

func PostProjectMetrics(c *gin.Context)

@Summary Create a new ProjectMetrics @Description Create a new ProjectMetrics @Tags framework/ProjectMetrics @Accept application/json @Param project body models.Project true "json" @Success 200 {object} models.ProjectMetric @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internal Error" @Router /projects/:projectName/metrics [post]

Types

type PaginatedProjects

type PaginatedProjects struct {
	Projects []*models.Project
	Count    int64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL