api

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 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(db dal.Dal, basicRes core.BasicRes) *Handlers

func (*Handlers) CreateTeam

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

CreateTeam godoc @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, error)

CreateUser godoc @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, error)

CreateUserAccountMapping godoc @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) GetTeam

func (h *Handlers) GetTeam(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)

GetTeam godoc @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

func (h *Handlers) GetUser(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)

GetUser godoc @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, error)

GetUserAccountMapping godoc @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