All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
CreateWorkflowEvent | Post /workflow/api/v8/events | Creates a new workflow event. |
DeleteWorkflowEvent | Delete /workflow/api/v8/events/{id} | Deletes a workflow event. |
GetWorkflowEvent | Get /workflow/api/v8/events/{id} | Returns a workflow event. |
GetWorkflowEventsList | Get /workflow/api/v8/events/list | Returns a list of workflow events. |
UpdateWorkflowEvent | Put /workflow/api/v8/events/{id} | Updates a workflow event. |
WorkflowEvent CreateWorkflowEvent(ctx).WorkflowEventCreate(workflowEventCreate).Execute()
Creates a new workflow event.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
workflowEventCreate := *openapiclient.NewWorkflowEventCreate("Title_example", "TargetId_example", "SchemaId_example", map[string]interface{}{"key": interface{}(123)}) // WorkflowEventCreate |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.WorkflowEventsApi.CreateWorkflowEvent(context.Background()).WorkflowEventCreate(workflowEventCreate).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WorkflowEventsApi.CreateWorkflowEvent``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateWorkflowEvent`: WorkflowEvent
fmt.Fprintf(os.Stdout, "Response from `WorkflowEventsApi.CreateWorkflowEvent`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiCreateWorkflowEventRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
workflowEventCreate | WorkflowEventCreate |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteWorkflowEvent(ctx, id).Execute()
Deletes a workflow event.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.WorkflowEventsApi.DeleteWorkflowEvent(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WorkflowEventsApi.DeleteWorkflowEvent``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string |
Other parameters are passed through a pointer to a apiDeleteWorkflowEventRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WorkflowEvent GetWorkflowEvent(ctx, id).Execute()
Returns a workflow event.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.WorkflowEventsApi.GetWorkflowEvent(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WorkflowEventsApi.GetWorkflowEvent``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetWorkflowEvent`: WorkflowEvent
fmt.Fprintf(os.Stdout, "Response from `WorkflowEventsApi.GetWorkflowEvent`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string |
Other parameters are passed through a pointer to a apiGetWorkflowEventRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]WorkflowEvent GetWorkflowEventsList(ctx).Execute()
Returns a list of workflow events.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.WorkflowEventsApi.GetWorkflowEventsList(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WorkflowEventsApi.GetWorkflowEventsList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetWorkflowEventsList`: []WorkflowEvent
fmt.Fprintf(os.Stdout, "Response from `WorkflowEventsApi.GetWorkflowEventsList`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetWorkflowEventsListRequest struct via the builder pattern
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WorkflowEvent UpdateWorkflowEvent(ctx, id).WorkflowEventUpdate(workflowEventUpdate).Execute()
Updates a workflow event.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "id_example" // string |
workflowEventUpdate := *openapiclient.NewWorkflowEventUpdate("Title_example", "TargetId_example", "SchemaId_example", map[string]interface{}{"key": interface{}(123)}) // WorkflowEventUpdate |
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.WorkflowEventsApi.UpdateWorkflowEvent(context.Background(), id).WorkflowEventUpdate(workflowEventUpdate).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WorkflowEventsApi.UpdateWorkflowEvent``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateWorkflowEvent`: WorkflowEvent
fmt.Fprintf(os.Stdout, "Response from `WorkflowEventsApi.UpdateWorkflowEvent`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string |
Other parameters are passed through a pointer to a apiUpdateWorkflowEventRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
workflowEventUpdate | WorkflowEventUpdate | |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]