Remove workflow & jobs stubs
This commit is contained in:
@@ -1,317 +1,4 @@
|
||||
[
|
||||
{
|
||||
"title": "Workflows",
|
||||
"description": "CRM workflow definitions",
|
||||
"package": "crm",
|
||||
"entrypoint": "workflow",
|
||||
"path": "/workflow",
|
||||
"authentication": [],
|
||||
"struct": [
|
||||
{
|
||||
"imports": [
|
||||
"github.com/crusttech/crust/crm/types"
|
||||
]
|
||||
}
|
||||
],
|
||||
"apis": [
|
||||
{
|
||||
"name": "list",
|
||||
"method": "GET",
|
||||
"path": "/",
|
||||
"title": "List available workflows"
|
||||
},
|
||||
{
|
||||
"name": "create",
|
||||
"path": "/",
|
||||
"method": "POST",
|
||||
"title": "Create new workflow",
|
||||
"parameters": {
|
||||
"post": [
|
||||
{
|
||||
"type": "string",
|
||||
"name": "name",
|
||||
"required": true,
|
||||
"title": "Workflow name"
|
||||
},
|
||||
{
|
||||
"type": "types.WorkflowTaskSet",
|
||||
"name": "tasks",
|
||||
"required": false,
|
||||
"title": "Type ID"
|
||||
},
|
||||
{
|
||||
"type": "types.WorkflowTaskSet",
|
||||
"name": "onError",
|
||||
"required": false,
|
||||
"title": "Type ID"
|
||||
},
|
||||
{
|
||||
"type": "int",
|
||||
"name": "timeout",
|
||||
"required": false,
|
||||
"title": "Timeout in seconds"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "get",
|
||||
"method": "GET",
|
||||
"path": "/{workflowID}",
|
||||
"title": "Get workflow details",
|
||||
"parameters": {
|
||||
"path": [
|
||||
{
|
||||
"type": "string",
|
||||
"name": "workflowID",
|
||||
"required": true,
|
||||
"title": "Workflow ID"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "update",
|
||||
"method": "POST",
|
||||
"path": "/{workflowID}",
|
||||
"title": "Update workflow details",
|
||||
"parameters": {
|
||||
"path": [
|
||||
{
|
||||
"type": "string",
|
||||
"name": "workflowID",
|
||||
"required": true,
|
||||
"title": "Workflow ID"
|
||||
}
|
||||
],
|
||||
"post": [
|
||||
{
|
||||
"type": "string",
|
||||
"name": "name",
|
||||
"required": true,
|
||||
"title": "Workflow name"
|
||||
},
|
||||
{
|
||||
"type": "types.WorkflowTaskSet",
|
||||
"name": "tasks",
|
||||
"required": false,
|
||||
"title": "Type ID"
|
||||
},
|
||||
{
|
||||
"type": "types.WorkflowTaskSet",
|
||||
"name": "onError",
|
||||
"required": false,
|
||||
"title": "Type ID"
|
||||
},
|
||||
{
|
||||
"type": "int",
|
||||
"name": "timeout",
|
||||
"required": false,
|
||||
"title": "Timeout in seconds"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "delete",
|
||||
"method": "DELETE",
|
||||
"path": "/{workflowID}",
|
||||
"title": "Delete workflow",
|
||||
"parameters": {
|
||||
"path": [
|
||||
{
|
||||
"type": "string",
|
||||
"name": "workflowID",
|
||||
"required": true,
|
||||
"title": "Workflow ID"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Jobs",
|
||||
"description": "Workflow Jobs",
|
||||
"package": "crm",
|
||||
"entrypoint": "job",
|
||||
"path": "/job",
|
||||
"authentication": [],
|
||||
"struct": [
|
||||
{
|
||||
"imports": [
|
||||
"github.com/crusttech/crust/crm/types",
|
||||
"sqlxTypes github.com/jmoiron/sqlx/types"
|
||||
]
|
||||
}
|
||||
],
|
||||
"apis": [
|
||||
{
|
||||
"name": "list",
|
||||
"method": "GET",
|
||||
"path": "/",
|
||||
"title": "List jobs",
|
||||
"parameters": {
|
||||
"get": [
|
||||
{
|
||||
"type": "string",
|
||||
"name": "status",
|
||||
"required": false,
|
||||
"title": "Job status (`ok`, `error`, `running`, `cancelled` or `queued`)"
|
||||
},
|
||||
{
|
||||
"name": "page",
|
||||
"type": "int",
|
||||
"required": false,
|
||||
"title": "Page number (0 based)"
|
||||
},
|
||||
{
|
||||
"name": "perPage",
|
||||
"type": "int",
|
||||
"required": false,
|
||||
"title": "Returned items per page (default 50)"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "run",
|
||||
"path": "/",
|
||||
"method": "POST",
|
||||
"title": "Create a new job",
|
||||
"parameters": {
|
||||
"post": [
|
||||
{
|
||||
"type": "string",
|
||||
"name": "workflowID",
|
||||
"required": true,
|
||||
"title": "Workflow ID"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"name": "startAt",
|
||||
"required": false,
|
||||
"title": "Start datetime for a delayed job"
|
||||
},
|
||||
{
|
||||
"type": "types.JobParameterSet",
|
||||
"name": "parameters",
|
||||
"required": false,
|
||||
"title": "Extra job parameters (map[string]string)"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "get",
|
||||
"method": "GET",
|
||||
"path": "/{jobID}",
|
||||
"title": "Get job details",
|
||||
"parameters": {
|
||||
"path": [
|
||||
{
|
||||
"type": "string",
|
||||
"name": "jobID",
|
||||
"required": true,
|
||||
"title": "Job ID"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "logs",
|
||||
"method": "GET",
|
||||
"path": "/{jobID}/logs",
|
||||
"title": "Get job logs",
|
||||
"parameters": {
|
||||
"path": [
|
||||
{
|
||||
"type": "string",
|
||||
"name": "jobID",
|
||||
"required": true,
|
||||
"title": "Job ID"
|
||||
},
|
||||
{
|
||||
"name": "page",
|
||||
"type": "int",
|
||||
"required": false,
|
||||
"title": "Page number (0 based)"
|
||||
},
|
||||
{
|
||||
"name": "perPage",
|
||||
"type": "int",
|
||||
"required": false,
|
||||
"title": "Returned items per page (default 50)"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "update",
|
||||
"method": "POST",
|
||||
"path": "/{jobID}",
|
||||
"title": "Update job details",
|
||||
"parameters": {
|
||||
"path": [
|
||||
{
|
||||
"type": "string",
|
||||
"name": "jobID",
|
||||
"required": true,
|
||||
"title": "Job ID"
|
||||
}
|
||||
],
|
||||
"post": [
|
||||
{
|
||||
"type": "string",
|
||||
"name": "status",
|
||||
"required": false,
|
||||
"title": "Job status (`ok`, `error`, `running`, `cancelled` or `queued`)"
|
||||
},
|
||||
{
|
||||
"type": "sqlxTypes.JSONText",
|
||||
"name": "log",
|
||||
"required": false,
|
||||
"title": "Job log item (append-only)"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"name": "workflowID",
|
||||
"required": false,
|
||||
"title": "Workflow ID"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"name": "startAt",
|
||||
"required": false,
|
||||
"title": "Start datetime for a delayed job"
|
||||
},
|
||||
{
|
||||
"type": "types.JobParameterSet",
|
||||
"name": "parameters",
|
||||
"required": false,
|
||||
"title": "Extra job parameters (map[string]string)"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "delete",
|
||||
"method": "DELETE",
|
||||
"path": "/{jobID}",
|
||||
"title": "Cancel job",
|
||||
"parameters": {
|
||||
"path": [
|
||||
{
|
||||
"type": "string",
|
||||
"name": "jobID",
|
||||
"required": true,
|
||||
"title": "Job ID"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Pages",
|
||||
"description": "CRM module pages",
|
||||
|
||||
@@ -1,184 +0,0 @@
|
||||
{
|
||||
"Title": "Jobs",
|
||||
"Description": "Workflow Jobs",
|
||||
"Package": "crm",
|
||||
"Interface": "Job",
|
||||
"Struct": [
|
||||
{
|
||||
"imports": [
|
||||
"github.com/crusttech/crust/crm/types",
|
||||
"sqlxTypes github.com/jmoiron/sqlx/types"
|
||||
]
|
||||
}
|
||||
],
|
||||
"Parameters": null,
|
||||
"Protocol": "",
|
||||
"Authentication": [],
|
||||
"Path": "/job",
|
||||
"APIs": [
|
||||
{
|
||||
"Name": "list",
|
||||
"Method": "GET",
|
||||
"Title": "List jobs",
|
||||
"Path": "/",
|
||||
"Parameters": {
|
||||
"get": [
|
||||
{
|
||||
"name": "status",
|
||||
"required": false,
|
||||
"title": "Job status (`ok`, `error`, `running`, `cancelled` or `queued`)",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "page",
|
||||
"required": false,
|
||||
"title": "Page number (0 based)",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "perPage",
|
||||
"required": false,
|
||||
"title": "Returned items per page (default 50)",
|
||||
"type": "int"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "run",
|
||||
"Method": "POST",
|
||||
"Title": "Create a new job",
|
||||
"Path": "/",
|
||||
"Parameters": {
|
||||
"post": [
|
||||
{
|
||||
"name": "workflowID",
|
||||
"required": true,
|
||||
"title": "Workflow ID",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "startAt",
|
||||
"required": false,
|
||||
"title": "Start datetime for a delayed job",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "parameters",
|
||||
"required": false,
|
||||
"title": "Extra job parameters (map[string]string)",
|
||||
"type": "types.JobParameterSet"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "get",
|
||||
"Method": "GET",
|
||||
"Title": "Get job details",
|
||||
"Path": "/{jobID}",
|
||||
"Parameters": {
|
||||
"path": [
|
||||
{
|
||||
"name": "jobID",
|
||||
"required": true,
|
||||
"title": "Job ID",
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "logs",
|
||||
"Method": "GET",
|
||||
"Title": "Get job logs",
|
||||
"Path": "/{jobID}/logs",
|
||||
"Parameters": {
|
||||
"path": [
|
||||
{
|
||||
"name": "jobID",
|
||||
"required": true,
|
||||
"title": "Job ID",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "page",
|
||||
"required": false,
|
||||
"title": "Page number (0 based)",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "perPage",
|
||||
"required": false,
|
||||
"title": "Returned items per page (default 50)",
|
||||
"type": "int"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "update",
|
||||
"Method": "POST",
|
||||
"Title": "Update job details",
|
||||
"Path": "/{jobID}",
|
||||
"Parameters": {
|
||||
"path": [
|
||||
{
|
||||
"name": "jobID",
|
||||
"required": true,
|
||||
"title": "Job ID",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"post": [
|
||||
{
|
||||
"name": "status",
|
||||
"required": false,
|
||||
"title": "Job status (`ok`, `error`, `running`, `cancelled` or `queued`)",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "log",
|
||||
"required": false,
|
||||
"title": "Job log item (append-only)",
|
||||
"type": "sqlxTypes.JSONText"
|
||||
},
|
||||
{
|
||||
"name": "workflowID",
|
||||
"required": false,
|
||||
"title": "Workflow ID",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "startAt",
|
||||
"required": false,
|
||||
"title": "Start datetime for a delayed job",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "parameters",
|
||||
"required": false,
|
||||
"title": "Extra job parameters (map[string]string)",
|
||||
"type": "types.JobParameterSet"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "delete",
|
||||
"Method": "DELETE",
|
||||
"Title": "Cancel job",
|
||||
"Path": "/{jobID}",
|
||||
"Parameters": {
|
||||
"path": [
|
||||
{
|
||||
"name": "jobID",
|
||||
"required": true,
|
||||
"title": "Job ID",
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,134 +0,0 @@
|
||||
{
|
||||
"Title": "Workflows",
|
||||
"Description": "CRM workflow definitions",
|
||||
"Package": "crm",
|
||||
"Interface": "Workflow",
|
||||
"Struct": [
|
||||
{
|
||||
"imports": [
|
||||
"github.com/crusttech/crust/crm/types"
|
||||
]
|
||||
}
|
||||
],
|
||||
"Parameters": null,
|
||||
"Protocol": "",
|
||||
"Authentication": [],
|
||||
"Path": "/workflow",
|
||||
"APIs": [
|
||||
{
|
||||
"Name": "list",
|
||||
"Method": "GET",
|
||||
"Title": "List available workflows",
|
||||
"Path": "/",
|
||||
"Parameters": null
|
||||
},
|
||||
{
|
||||
"Name": "create",
|
||||
"Method": "POST",
|
||||
"Title": "Create new workflow",
|
||||
"Path": "/",
|
||||
"Parameters": {
|
||||
"post": [
|
||||
{
|
||||
"name": "name",
|
||||
"required": true,
|
||||
"title": "Workflow name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "tasks",
|
||||
"required": false,
|
||||
"title": "Type ID",
|
||||
"type": "types.WorkflowTaskSet"
|
||||
},
|
||||
{
|
||||
"name": "onError",
|
||||
"required": false,
|
||||
"title": "Type ID",
|
||||
"type": "types.WorkflowTaskSet"
|
||||
},
|
||||
{
|
||||
"name": "timeout",
|
||||
"required": false,
|
||||
"title": "Timeout in seconds",
|
||||
"type": "int"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "get",
|
||||
"Method": "GET",
|
||||
"Title": "Get workflow details",
|
||||
"Path": "/{workflowID}",
|
||||
"Parameters": {
|
||||
"path": [
|
||||
{
|
||||
"name": "workflowID",
|
||||
"required": true,
|
||||
"title": "Workflow ID",
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "update",
|
||||
"Method": "POST",
|
||||
"Title": "Update workflow details",
|
||||
"Path": "/{workflowID}",
|
||||
"Parameters": {
|
||||
"path": [
|
||||
{
|
||||
"name": "workflowID",
|
||||
"required": true,
|
||||
"title": "Workflow ID",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"post": [
|
||||
{
|
||||
"name": "name",
|
||||
"required": true,
|
||||
"title": "Workflow name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "tasks",
|
||||
"required": false,
|
||||
"title": "Type ID",
|
||||
"type": "types.WorkflowTaskSet"
|
||||
},
|
||||
{
|
||||
"name": "onError",
|
||||
"required": false,
|
||||
"title": "Type ID",
|
||||
"type": "types.WorkflowTaskSet"
|
||||
},
|
||||
{
|
||||
"name": "timeout",
|
||||
"required": false,
|
||||
"title": "Timeout in seconds",
|
||||
"type": "int"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "delete",
|
||||
"Method": "DELETE",
|
||||
"Title": "Delete workflow",
|
||||
"Path": "/{workflowID}",
|
||||
"Parameters": {
|
||||
"path": [
|
||||
{
|
||||
"name": "workflowID",
|
||||
"required": true,
|
||||
"title": "Workflow ID",
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user