DecisionAuthorisationWorkflow - JavaScript client for decision_authorisation_workflow This is decision authorisation workflow for any platform using OAuth2 Password Flow in a specification to describe security to your API. This SDK is automatically generated by the Swagger Codegen project:
- API version: 1.0.0
- Package version: 1.0.0
- Build package: io.swagger.codegen.v3.generators.javascript.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 decision_authorisation_workflow --save
If the library is hosted at a git repository, e.g. https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:
npm install GIT_USER_ID/GIT_REPO_ID --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.
Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:
module: {
rules: [
{
parser: {
amd: false
}
}
]
}
Please follow the installation instruction and execute the following JS code:
var DecisionAuthorisationWorkflow = require('decision_authorisation_workflow');
var defaultClient = DecisionAuthorisationWorkflow.ApiClient.instance;
// Configure API key authorization: privateKey
var privateKey = defaultClient.authentications['privateKey'];
privateKey.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//privateKey.apiKeyPrefix['private_key'] = "Token"
var api = new DecisionAuthorisationWorkflow.TransactionsApi()
var body = new DecisionAuthorisationWorkflow.TransactionsBody(); // {TransactionsBody}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.assignWorkflowToTransaction(body, callback);
All URIs are relative to http://192.168.1.19:8000/v1
Class | Method | HTTP request | Description |
---|---|---|---|
DecisionAuthorisationWorkflow.TransactionsApi | assignWorkflowToTransaction | POST /transactions | Assign workflow to transaction |
DecisionAuthorisationWorkflow.TransactionsApi | getTransactionByTransactionId | GET /transactions/{transactionId} | Get transaction by transactionId |
DecisionAuthorisationWorkflow.TransactionsApi | getTransactions | GET /transactions | Get transactions list by client and few query parameter |
DecisionAuthorisationWorkflow.TransactionsApi | updateTransaction | PATCH /transactions/{transactionId} | Update transaction data by passing transaction id in query parameter |
DecisionAuthorisationWorkflow.WorkflowsApi | createWorkflow | POST /workflows | Create a workflow |
DecisionAuthorisationWorkflow.WorkflowsApi | getMatchWorkflow | POST /workflows/match | Get matched workflows for transaction |
DecisionAuthorisationWorkflow.WorkflowsApi | getWorkflow | GET /workflows/{id} | Get workflow by id |
DecisionAuthorisationWorkflow.WorkflowsApi | getWorkflowsByClient | GET /workflows/list/{client} | Get all workflows based on client with embed |
DecisionAuthorisationWorkflow.WorkflowsApi | updateWorkflow | PATCH /workflows/{id} | Update specific workflow by id |
- DecisionAuthorisationWorkflow.AnyOfcreatedAt
- DecisionAuthorisationWorkflow.AnyOfworkflowGetRulesItems
- DecisionAuthorisationWorkflow.Client
- DecisionAuthorisationWorkflow.CreateLevel
- DecisionAuthorisationWorkflow.CreatedAt
- DecisionAuthorisationWorkflow.Document
- DecisionAuthorisationWorkflow.ForInCondition
- DecisionAuthorisationWorkflow.ForIntegerCondition
- DecisionAuthorisationWorkflow.ForStringCondition
- DecisionAuthorisationWorkflow.GetLevel
- DecisionAuthorisationWorkflow.Id
- DecisionAuthorisationWorkflow.InConditions
- DecisionAuthorisationWorkflow.InlineResponse200
- DecisionAuthorisationWorkflow.InlineResponse2001
- DecisionAuthorisationWorkflow.InlineResponse2002
- DecisionAuthorisationWorkflow.InlineResponse201
- DecisionAuthorisationWorkflow.InlineResponse2011
- DecisionAuthorisationWorkflow.InlineResponse400
- DecisionAuthorisationWorkflow.InlineResponse4001
- DecisionAuthorisationWorkflow.InlineResponse401
- DecisionAuthorisationWorkflow.InlineResponse4011
- DecisionAuthorisationWorkflow.InlineResponse422
- DecisionAuthorisationWorkflow.InlineResponse4221
- DecisionAuthorisationWorkflow.InlineResponse4221Error
- DecisionAuthorisationWorkflow.InlineResponse422Error
- DecisionAuthorisationWorkflow.InlineResponse500
- DecisionAuthorisationWorkflow.InlineResponse5001
- DecisionAuthorisationWorkflow.InlineResponse504
- DecisionAuthorisationWorkflow.InlineResponse5041
- DecisionAuthorisationWorkflow.IntegerConditions
- DecisionAuthorisationWorkflow.LevelForInCondition
- DecisionAuthorisationWorkflow.StringConditions
- DecisionAuthorisationWorkflow.TrackLevels
- DecisionAuthorisationWorkflow.TrackLevelsActions
- DecisionAuthorisationWorkflow.Transaction
- DecisionAuthorisationWorkflow.TransactionAction
- DecisionAuthorisationWorkflow.TransactionAttachment
- DecisionAuthorisationWorkflow.TransactionGet
- DecisionAuthorisationWorkflow.TransactionJustification
- DecisionAuthorisationWorkflow.TransactionStatus
- DecisionAuthorisationWorkflow.TransactionsBody
- DecisionAuthorisationWorkflow.TransactionsTransactionIdBody
- DecisionAuthorisationWorkflow.UpdateLevel
- DecisionAuthorisationWorkflow.WorkflowCreate
- DecisionAuthorisationWorkflow.WorkflowCreateLevels
- DecisionAuthorisationWorkflow.WorkflowCreateStatus
- DecisionAuthorisationWorkflow.WorkflowCreateSteps
- DecisionAuthorisationWorkflow.WorkflowDescription
- DecisionAuthorisationWorkflow.WorkflowGet
- DecisionAuthorisationWorkflow.WorkflowGetLevels
- DecisionAuthorisationWorkflow.WorkflowGetMeta
- DecisionAuthorisationWorkflow.WorkflowGetRules
- DecisionAuthorisationWorkflow.WorkflowName
- DecisionAuthorisationWorkflow.WorkflowUpdate
- DecisionAuthorisationWorkflow.WorkflowUpdateLevels
- DecisionAuthorisationWorkflow.WorkflowUpdateSteps
- DecisionAuthorisationWorkflow.WorkflowUser
- DecisionAuthorisationWorkflow.WorkflowsMatchBody
- DecisionAuthorisationWorkflow.WorkflowsMatchService
- Type: API key
- API key parameter name: private_key
- Location: HTTP header
- Type: API key
- API key parameter name: public_key
- Location: HTTP header