api

package
v0.15.0-pre-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const TimeFormat = "2006-01-02"

Variables

This section is empty.

Functions

func NewDbStore

func NewDbStore(db dal.Dal, basicRes core.BasicRes) *dbStore

Types

type Handlers

type Handlers struct {
	// contains filtered or unexported fields
}

func NewHandlers

func NewHandlers(basicRes core.BasicRes) *Handlers

func (*Handlers) CreateProjectMapping added in v0.13.0

func (h *Handlers) CreateProjectMapping(input *core.ApiResourceInput) (*core.ApiResourceOutput, errors.Error)

CreateProjectMapping accepts a CSV file containing project mapping and saves it to the database @Summary Upload project_mapping.csv file @Description upload project_mapping.csv file @Tags plugins/org @Accept multipart/form-data @Param file formData file true "select file to upload" @Produce json @Success 200 @Failure 400 {object} shared.ApiBody "Bad Request" @Failure 500 {object} shared.ApiBody "Internal Error" @Router /plugins/org/project_mapping.csv [put]

func (*Handlers) CreateTeam

func (h *Handlers) CreateTeam(input *core.ApiResourceInput) (*core.ApiResourceOutput, errors.Error)

CreateTeam accepts a CSV file containing team information and saves it to the database @Summary Upload teams.csv file @Description upload teams.csv file @Tags plugins/org @Accept multipart/form-data @Param file formData file true "select file to upload" @Produce json @Success 200 @Failure 400 {object} shared.ApiBody "Bad Request" @Failure 500 {object} shared.ApiBody "Internal Error" @Router /plugins/org/teams.csv [put]

func (*Handlers) CreateUser

func (h *Handlers) CreateUser(input *core.ApiResourceInput) (*core.ApiResourceOutput, errors.Error)

CreateUser accepts a CSV file containing user information mapping and saves it to the database @Summary Upload users.csv file @Description upload users.csv file @Tags plugins/org @Accept multipart/form-data @Param file formData file true "select file to upload" @Produce json @Success 200 @Failure 400 {object} shared.ApiBody "Bad Request" @Failure 500 {object} shared.ApiBody "Internal Error" @Router /plugins/org/users.csv [put]

func (*Handlers) CreateUserAccountMapping

func (h *Handlers) CreateUserAccountMapping(input *core.ApiResourceInput) (*core.ApiResourceOutput, errors.Error)

CreateUserAccountMapping accepts a CSV file containing user/account mapping and saves it to the database @Summary Upload user_account_mapping.csv.csv file @Description upload user_account_mapping.csv.csv file @Tags plugins/org @Accept multipart/form-data @Param file formData file true "select file to upload" @Produce json @Success 200 @Failure 400 {object} shared.ApiBody "Bad Request" @Failure 500 {object} shared.ApiBody "Internal Error" @Router /plugins/org/user_account_mapping.csv [put]

func (*Handlers) GetProjectMapping added in v0.13.0

func (h *Handlers) GetProjectMapping(input *core.ApiResourceInput) (*core.ApiResourceOutput, errors.Error)

GetProjectMapping returns all project mapping in csv format @Summary Get project_mapping.csv file @Description get project_mapping.csv file @Tags plugins/org @Produce text/csv @Param fake_data query bool false "return fake data or not" @Success 200 {object} core.ApiResourceOutput @Failure 400 {object} shared.ApiBody "Bad Request" @Failure 500 {object} shared.ApiBody "Internal Error" @Router /plugins/org/project_mapping.csv [get]

func (*Handlers) GetTeam

GetTeam returns all team in csv format @Summary Get teams.csv file @Description get teams.csv file @Tags plugins/org @Produce text/csv @Param fake_data query bool false "return fake data or not" @Success 200 @Failure 400 {object} shared.ApiBody "Bad Request" @Failure 500 {object} shared.ApiBody "Internal Error" @Router /plugins/org/teams.csv [get]

func (*Handlers) GetUser

GetUser returns all user in csv format @Summary Get users.csv file @Description get users.csv file @Tags plugins/org @Produce text/csv @Param fake_data query bool false "return fake data or not" @Success 200 @Failure 400 {object} shared.ApiBody "Bad Request" @Failure 500 {object} shared.ApiBody "Internal Error" @Router /plugins/org/users.csv [get]

func (*Handlers) GetUserAccountMapping

func (h *Handlers) GetUserAccountMapping(input *core.ApiResourceInput) (*core.ApiResourceOutput, errors.Error)

GetUserAccountMapping returns all user/account mapping in csv format @Summary Get user_account_mapping.csv.csv file @Description get user_account_mapping.csv.csv file @Tags plugins/org @Produce text/csv @Success 200 @Failure 400 {object} shared.ApiBody "Bad Request" @Failure 500 {object} shared.ApiBody "Internal Error" @Router /plugins/org/user_account_mapping.csv [get]

Jump to

Keyboard shortcuts

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