OnTaskClient - JavaScript client for on_task_client No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) This SDK is automatically generated by the Swagger Codegen project:
- API version: 0.0.1
- Package version: 0.0.1
- Build date: 2016-09-22T00:23:31.974Z
- Build package: class io.swagger.codegen.languages.JavascriptClientCodegen
For Node.js
To publish the library as a npm, please follow the procedure in "Publishing npm packages".
Then install it via:
npm install on_task_client --save
If the library is hosted at a git repository, e.g. https://github.com/YOUR_USERNAME/on_task_client then install it via:
npm install YOUR_USERNAME/on_task_client --save
The library also works in the browser environment via npm and browserify. After following
the above steps with Node.js and installing browserify with npm install -g browserify
,
perform the following (assuming main.js is your entry file):
browserify main.js > bundle.js
Then include bundle.js in the HTML pages.
Please follow the installation instruction and execute the following JS code:
var OnTaskClient = require('on_task_client');
var api = new OnTaskClient.GraphsApi()
var injectableName = "injectableName_example"; // {String} The workflow graph injectable name
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.workflowsDeleteGraphsByName(injectableName, callback);
All URIs are relative to http://localhost/api/2.0
Class | Method | HTTP request | Description |
---|---|---|---|
OnTaskClient.GraphsApi | workflowsDeleteGraphsByName | DELETE /workflows/graphs/{injectableName} | Delete a workflow graph |
OnTaskClient.GraphsApi | workflowsGetGraphs | GET /workflows/graphs | Get list of workflow graphs |
OnTaskClient.GraphsApi | workflowsGetGraphsByName | GET /workflows/graphs/{injectableName} | Get a workflow graph |
OnTaskClient.GraphsApi | workflowsPutGraphs | PUT /workflows/graphs | Put a graph |
OnTaskClient.TasksApi | getBootstrap | GET /tasks/bootstrap.js | Get tasks bootstrap.js |
OnTaskClient.TasksApi | getTasksById | GET /tasks/{identifier} | Get a task |
OnTaskClient.TasksApi | postTaskById | POST /tasks/{identifier} | Post a task |
OnTaskClient.TasksApi | workflowsDeleteTasksByName | DELETE /workflows/tasks/{injectableName} | Delete a workflow task |
OnTaskClient.TasksApi | workflowsGetAllTasks | GET /workflows/tasks | Get list of workflow tasks |
OnTaskClient.TasksApi | workflowsGetTasksByName | GET /workflows/tasks/{injectableName} | Get a workflow task |
OnTaskClient.TasksApi | workflowsPutTask | PUT /workflows/tasks | Put a workflow task |
OnTaskClient.WorkflowsApi | workflowsAction | PUT /workflows/{identifier}/action | Perform an action on a workflow |
OnTaskClient.WorkflowsApi | workflowsDeleteByInstanceId | DELETE /workflows/{identifier} | Delete a workflow |
OnTaskClient.WorkflowsApi | workflowsGet | GET /workflows | Get a list of workflow instances |
OnTaskClient.WorkflowsApi | workflowsGetByInstanceId | GET /workflows/{identifier} | Get a workflow |
OnTaskClient.WorkflowsApi | workflowsPost | POST /workflows | Run a workflow |
- OnTaskClient.Action
- OnTaskClient.Error
- OnTaskClient.ErrorResponse
- OnTaskClient.GenericObj
- OnTaskClient.PostTasks
- OnTaskClient.PostWorkflow
- OnTaskClient.PostWorkflowOptions
- OnTaskClient.PostWorkflowOptionsDefault
- OnTaskClient.VersionsResponse
- OnTaskClient.WorkflowGraph
- OnTaskClient.WorkflowGraphTask
- OnTaskClient.WorkflowTask
All endpoints do not require authorization.