projectscontroller

package
v0.0.0-...-14e2bc2 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create() gin.HandlerFunc

@Summary Create project @Schemes @Description Create a project @Tags projects @Accept application/json @Produce application/json @Success 200 {object} apicontracts.Project @Failure 403 {object} rorerror.RorError @Failure 401 {object} rorerror.RorError @Failure 500 {object} rorerror.RorError @Router /v1/projects [post] @Param project body apicontracts.Project true "Project" @Security ApiKey || AccessToken

func Delete

func Delete() gin.HandlerFunc

@Summary Delete project @Schemes @Description Delete a project by id @Tags projects @Accept application/json @Produce application/json @Success 200 {bool} bool @Failure 403 {object} rorerror.RorError @Failure 401 {object} rorerror.RorError @Failure 500 {object} rorerror.RorError @Router /v1/projects/{projectId} [delete] @Param projectId path string true "projectId" @Security ApiKey || AccessToken

func GetByFilter

func GetByFilter() gin.HandlerFunc

@Summary Get projects by filter @Schemes @Description Get projects by filter @Tags projects @Accept application/json @Produce application/json @Success 200 {object} apicontracts.PaginatedResult[apicontracts.Project] @Failure 403 {object} rorerror.RorError @Failure 401 {object} rorerror.RorError @Failure 500 {object} rorerror.RorError @Router /v1/projects/filter [get] @Param filter body apicontracts.Filter true "Filter" @Security ApiKey || AccessToken

func GetById

func GetById() gin.HandlerFunc

@Summary Get projects by id @Schemes @Description Get projects by id @Tags projects @Accept application/json @Produce application/json @Success 200 {object} apicontracts.Project @Failure 403 {object} rorerror.RorError @Failure 401 {object} rorerror.RorError @Failure 500 {object} rorerror.RorError @Router /v1/projects/{projectId} [get] @Param id path string true "id" @Security ApiKey || AccessToken

func GetClustersByProjectId

func GetClustersByProjectId() gin.HandlerFunc

@Summary Get clusters by projectid @Schemes @Description Get clusters by projectid @Tags projects @Accept application/json @Produce application/json @Success 200 {array} apicontracts.ClusterInfo @Failure 403 {object} rorerror.RorError @Failure 401 {object} rorerror.RorError @Failure 500 {object} rorerror.RorError @Router /v1/projects/{projectId}/clusters [get] @Param projectId path string true "projectId" @Security ApiKey || AccessToken

func Update

func Update() gin.HandlerFunc

@Summary Update project @Schemes @Description Update a project by id @Tags projects @Accept application/json @Produce application/json @Success 200 {object} apicontracts.PaginatedResult[apicontracts.Project] @Failure 403 {object} rorerror.RorError @Failure 401 {object} rorerror.RorError @Failure 500 {object} rorerror.RorError @Router /v1/projects/{projectId} [put] @Param projectId path string true "projectId" @Param project body apicontracts.Project true "Project" @Security ApiKey || AccessToken

Types

This section is empty.

Jump to

Keyboard shortcuts

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