package tcms

import "fmt"

type api string

const (
	version               = "/api/v1"
	GetWorkflows      api = "/workflows"
	PostWorkflow      api = "/workflow-executions/run"
	GetWorkflowRun    api = "/workflow-executions/%d"
	PutTestbedRelease api = "/plan-executions/%d/testbeds/%s/release"
	PutWorkflowRun    api = "/workflow-executions/%d/remote-control"
)

func getPath(api api, pathVer ...any) string {
	return fmt.Sprintf(fmt.Sprintf("%s%s", version, api), pathVer...)
}
