controllers

package
v0.0.0-...-82612ca Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

generated by stacks/gong/go/models/controller_file.go

generated by stacks/gong/go/models/controller_file.go

generated by stacks/gong/go/models/controller_file.go

generated by stacks/gong/go/models/controller_file.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteDependency

func DeleteDependency(c *gin.Context)

DeleteDependency

swagger:route DELETE /dependencys/{ID} dependencys deleteDependency

Delete a dependency

Responses:

default: genericError

func DeleteGanttChart

func DeleteGanttChart(c *gin.Context)

DeleteGanttChart

swagger:route DELETE /ganttcharts/{ID} ganttcharts deleteGanttChart

Delete a ganttchart

Responses:

default: genericError

func DeleteRessource

func DeleteRessource(c *gin.Context)

DeleteRessource

swagger:route DELETE /ressources/{ID} ressources deleteRessource

Delete a ressource

Responses:

default: genericError

func DeleteTask

func DeleteTask(c *gin.Context)

DeleteTask

swagger:route DELETE /tasks/{ID} tasks deleteTask

Delete a task

Responses:

default: genericError

func GetDependency

func GetDependency(c *gin.Context)

GetDependency

swagger:route GET /dependencys/{ID} dependencys getDependency

Gets the details for a dependency.

Responses:

default: genericError
    200: dependencyDBResponse

func GetDependencys

func GetDependencys(c *gin.Context)

GetDependencys

swagger:route GET /dependencys dependencys getDependencys

Get all dependencys

Responses:

default: genericError
    200: dependencyDBsResponse

func GetGanttChart

func GetGanttChart(c *gin.Context)

GetGanttChart

swagger:route GET /ganttcharts/{ID} ganttcharts getGanttChart

Gets the details for a ganttchart.

Responses:

default: genericError
    200: ganttchartDBResponse

func GetGanttCharts

func GetGanttCharts(c *gin.Context)

GetGanttCharts

swagger:route GET /ganttcharts ganttcharts getGanttCharts

Get all ganttcharts

Responses:

default: genericError
    200: ganttchartDBsResponse

func GetLastCommitNb

func GetLastCommitNb(c *gin.Context)

swagger:route GET /commitnb backrepo GetLastCommitNb

func GetRessource

func GetRessource(c *gin.Context)

GetRessource

swagger:route GET /ressources/{ID} ressources getRessource

Gets the details for a ressource.

Responses:

default: genericError
    200: ressourceDBResponse

func GetRessources

func GetRessources(c *gin.Context)

GetRessources

swagger:route GET /ressources ressources getRessources

Get all ressources

Responses:

default: genericError
    200: ressourceDBsResponse

func GetTask

func GetTask(c *gin.Context)

GetTask

swagger:route GET /tasks/{ID} tasks getTask

Gets the details for a task.

Responses:

default: genericError
    200: taskDBResponse

func GetTasks

func GetTasks(c *gin.Context)

GetTasks

swagger:route GET /tasks tasks getTasks

Get all tasks

Responses:

default: genericError
    200: taskDBsResponse

func PostDependency

func PostDependency(c *gin.Context)

PostDependency

swagger:route POST /dependencys dependencys postDependency

Creates a dependency

Consumes:
- application/json

Produces:
- application/json

Responses:
  200: dependencyDBResponse

func PostGanttChart

func PostGanttChart(c *gin.Context)

PostGanttChart

swagger:route POST /ganttcharts ganttcharts postGanttChart

Creates a ganttchart

Consumes:
- application/json

Produces:
- application/json

Responses:
  200: ganttchartDBResponse

func PostRessource

func PostRessource(c *gin.Context)

PostRessource

swagger:route POST /ressources ressources postRessource

Creates a ressource

Consumes:
- application/json

Produces:
- application/json

Responses:
  200: ressourceDBResponse

func PostTask

func PostTask(c *gin.Context)

PostTask

swagger:route POST /tasks tasks postTask

Creates a task

Consumes:
- application/json

Produces:
- application/json

Responses:
  200: taskDBResponse

func RegisterControllers

func RegisterControllers(r *gin.Engine)

RegisterControllers register controllers

func UpdateDependency

func UpdateDependency(c *gin.Context)

UpdateDependency

swagger:route PATCH /dependencys/{ID} dependencys updateDependency

Update a dependency

Responses:

default: genericError
    200: dependencyDBResponse

func UpdateGanttChart

func UpdateGanttChart(c *gin.Context)

UpdateGanttChart

swagger:route PATCH /ganttcharts/{ID} ganttcharts updateGanttChart

Update a ganttchart

Responses:

default: genericError
    200: ganttchartDBResponse

func UpdateRessource

func UpdateRessource(c *gin.Context)

UpdateRessource

swagger:route PATCH /ressources/{ID} ressources updateRessource

Update a ressource

Responses:

default: genericError
    200: ressourceDBResponse

func UpdateTask

func UpdateTask(c *gin.Context)

UpdateTask

swagger:route PATCH /tasks/{ID} tasks updateTask

Update a task

Responses:

default: genericError
    200: taskDBResponse

Types

type DependencyID

type DependencyID struct {
	// The ID of the order
	//
	// in: path
	// required: true
	ID int64
}

An DependencyID parameter model.

This is used for operations that want the ID of an order in the path swagger:parameters getDependency updateDependency deleteDependency

type DependencyInput

type DependencyInput struct {
	// The Dependency to submit or modify
	// in: body
	Dependency *orm.DependencyAPI
}

DependencyInput is a schema that can validate the user’s input to prevent us from getting invalid data swagger:parameters postDependency updateDependency

type GanttChartID

type GanttChartID struct {
	// The ID of the order
	//
	// in: path
	// required: true
	ID int64
}

An GanttChartID parameter model.

This is used for operations that want the ID of an order in the path swagger:parameters getGanttChart updateGanttChart deleteGanttChart

type GanttChartInput

type GanttChartInput struct {
	// The GanttChart to submit or modify
	// in: body
	GanttChart *orm.GanttChartAPI
}

GanttChartInput is a schema that can validate the user’s input to prevent us from getting invalid data swagger:parameters postGanttChart updateGanttChart

type GenericError

type GenericError struct {
	// in: body
	Body struct {
		Code    int32  `json:"code"`
		Message string `json:"message"`
	} `json:"body"`
}

A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures.

swagger:response genericError

type RessourceID

type RessourceID struct {
	// The ID of the order
	//
	// in: path
	// required: true
	ID int64
}

An RessourceID parameter model.

This is used for operations that want the ID of an order in the path swagger:parameters getRessource updateRessource deleteRessource

type RessourceInput

type RessourceInput struct {
	// The Ressource to submit or modify
	// in: body
	Ressource *orm.RessourceAPI
}

RessourceInput is a schema that can validate the user’s input to prevent us from getting invalid data swagger:parameters postRessource updateRessource

type TaskID

type TaskID struct {
	// The ID of the order
	//
	// in: path
	// required: true
	ID int64
}

An TaskID parameter model.

This is used for operations that want the ID of an order in the path swagger:parameters getTask updateTask deleteTask

type TaskInput

type TaskInput struct {
	// The Task to submit or modify
	// in: body
	Task *orm.TaskAPI
}

TaskInput is a schema that can validate the user’s input to prevent us from getting invalid data swagger:parameters postTask updateTask

type ValidationError

type ValidationError struct {
	// in: body
	Body struct {
		Code    int32  `json:"code"`
		Message string `json:"message"`
		Field   string `json:"field"`
	} `json:"body"`
}

A ValidationError is an that is generated for validation failures. It has the same fields as a generic error but adds a Field property.

swagger:response validationError

Jump to

Keyboard shortcuts

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