api

package
v0.15.0-zentao-beta-5 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: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteConnection

func DeleteConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, errors.Error)

DELETE /plugins/Zentao/connections/:connectionId

func GetConnection

func GetConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, errors.Error)

TODO Please modify the folowing code to adapt to your plugin

GET /plugins/Zentao/connections/:connectionId

{
	"name": "Zentao data connection name",
	"endpoint": "Zentao api endpoint, i.e. https://merico.atlassian.net/rest",
	"username": "username, usually should be email address",
	"password": "Zentao api access token"
}

func Init

func Init(config *viper.Viper, logger core.Logger, database *gorm.DB)

func ListConnections

func ListConnections(input *core.ApiResourceInput) (*core.ApiResourceOutput, errors.Error)

GET /plugins/Zentao/connections

func MakePipelinePlan

func MakePipelinePlan(subtaskMetas []core.SubTaskMeta, connectionId uint64, scope []*core.BlueprintScopeV100) (core.PipelinePlan, errors.Error)

func PatchConnection

func PatchConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, errors.Error)

TODO Please modify the folowing code to adapt to your plugin

PATCH /plugins/Zentao/connections/:connectionId

{
	"name": "Zentao data connection name",
	"endpoint": "Zentao api endpoint, i.e. https://example.com",
	"username": "username, usually should be email address",
	"password": "Zentao api access token"
}

func PostConnections

func PostConnections(input *core.ApiResourceInput) (*core.ApiResourceOutput, errors.Error)

TODO Please modify the folowing code to adapt to your plugin

POST /plugins/Zentao/connections

{
	"name": "Zentao data connection name",
	"endpoint": "Zentao api endpoint, i.e. https://example.com",
	"username": "username, usually should be email address",
	"password": "Zentao api access token"
}

func TestConnection

func TestConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, errors.Error)

TODO Please modify the following code to fit your needs

Types

This section is empty.

Jump to

Keyboard shortcuts

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