1.9.1 • Published 7 years ago

ijm-client v1.9.1

Weekly downloads
-
License
Unlicense
Repository
-
Last release
7 years ago

ijm-client

IJM - JavaScript client for ijm-client You will need to know the API Client ID to authenticate, so here it is: documentation. Sometimes (e.g. for token refreshing) you might need API Client Secret: KQ()SWK)SQK)QWSKQW(SKQ)S(QWSQW(SJ*HQ&HQW*SQ*^SSQWSGQSG. There are also two built-in users: root (administrator with all permissions) with password q user (regular user) with password w This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.9.1
  • Package version: 1.9.1
  • Build package: io.swagger.codegen.languages.JavascriptClientCodegen

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install ijm-client --save

git

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

For browser

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.

Webpack Configuration

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
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var IJM = require('ijm-client');

var defaultClient = IJM.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2_password
var oauth2_password = defaultClient.authentications['oauth2_password'];
oauth2_password.accessToken = "YOUR ACCESS TOKEN"

var api = new IJM.AuthApi()

var defaultScopes = ["defaultScopes_example"]; // {[String]} 

var opts = { 
  'redirectUris': ["redirectUris_example"] // {[String]} 
};
api.createOauthClient(defaultScopes, opts).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

Documentation for API Endpoints

All URIs are relative to https://localhost/api/v1

ClassMethodHTTP requestDescription
IJM.AuthApicreateOauthClientPOST /auth/oauth2_clients/Create a new OAuth2 Client
IJM.AuthApigetOAuth2ClientsGET /auth/oauth2_clients/List of OAuth2 Clients
IJM.AuthApioptionsOAuth2ClientsOPTIONS /auth/oauth2_clients/Check which methods are allowed
IJM.DatasetsApiaddDatasetPOST /datasets/Add a new dataset
IJM.DatasetsApideleteDatasetByIdDELETE /datasets/{dataset_id}Delete a dataset by ID
IJM.DatasetsApigetDatasetByIdGET /datasets/{dataset_id}Get dataset details by ID
IJM.DatasetsApigetDatasetsGET /datasets/List of datasets
IJM.DatasetsApioptionsDatasetByIdOPTIONS /datasets/{dataset_id}Check which methods are allowed
IJM.DatasetsApioptionsDatasetsOPTIONS /datasets/Check which methods are allowed
IJM.DatasetsApipatchDatasetByIdPATCH /datasets/{dataset_id}Patch dataset details by ID
IJM.DiffreportsApibuildDiffReportPOST /diff-reports/Build a new diff_report
IJM.DiffreportsApideleteDiffReportByIdDELETE /diff-reports/{diff_report_id}Delete a diff_report by ID
IJM.DiffreportsApigetDiffReportByIdGET /diff-reports/{diff_report_id}Get diff_report details by ID
IJM.DiffreportsApigetDiffReportsGET /diff-reports/List of diff-reports
IJM.DiffreportsApioptionsDiffReportByIdOPTIONS /diff-reports/{diff_report_id}Check which methods are allowed
IJM.DiffreportsApioptionsDiffReportsOPTIONS /diff-reports/Check which methods are allowed
IJM.DiffreportsApipatchDiffReportByIdPATCH /diff-reports/{diff_report_id}Patch diff_report details by ID
IJM.EnginesApiaddEnginePOST /engines/Add a new engine
IJM.EnginesApideleteEngineByIdDELETE /engines/{engine_id}Admin role is required
IJM.EnginesApigetEngineByIdGET /engines/{engine_id}Get engine details by ID
IJM.EnginesApigetEnginesGET /engines/List of engines
IJM.EnginesApioptionsEngineByIdOPTIONS /engines/{engine_id}Check which methods are allowed
IJM.EnginesApioptionsEnginesOPTIONS /engines/Check which methods are allowed
IJM.EnginesApipatchEngineByIdPATCH /engines/{engine_id}Admin role is required
IJM.JobsApiaddJobScriptPOST /jobs/{job_id}/scripts/Add an script to a job
IJM.JobsApideleteJobByIdDELETE /jobs/{job_id}Delete a job by ID
IJM.JobsApigetJobByIdGET /jobs/{job_id}Get job details by ID
IJM.JobsApigetJobScriptByNameGET /jobs/{job_id}/scripts/{script_name}Get job script details by name and job ID
IJM.JobsApigetJobScriptsGET /jobs/{job_id}/scripts/List of job scripts
IJM.JobsApigetJobsGET /jobs/List of jobs
IJM.JobsApioptionsJobByIdOPTIONS /jobs/{job_id}Check which methods are allowed
IJM.JobsApioptionsJobScriptByNameOPTIONS /jobs/{job_id}/scripts/{script_name}Check which methods are allowed
IJM.JobsApioptionsJobScriptsOPTIONS /jobs/{job_id}/scripts/Check which methods are allowed
IJM.JobsApioptionsJobsOPTIONS /jobs/Check which methods are allowed
IJM.JobsApipatchJobByIdPATCH /jobs/{job_id}Patch job details by ID
IJM.JobsApipatchJobScriptByNamePATCH /jobs/{job_id}/scripts/{script_name}Patch job script details by ID
IJM.JobsApischeduleJobPOST /jobs/Schedule a new job
IJM.ScriptsApiaddScriptPOST /scripts/Add a new script
IJM.ScriptsApideleteScriptByIdDELETE /scripts/{script_id}Delete a script by ID
IJM.ScriptsApigetScriptByIdGET /scripts/{script_id}Get script details by ID
IJM.ScriptsApigetScriptsGET /scripts/List of scripts
IJM.ScriptsApioptionsScriptByIdOPTIONS /scripts/{script_id}Check which methods are allowed
IJM.ScriptsApioptionsScriptsOPTIONS /scripts/Check which methods are allowed
IJM.ScriptsApipatchScriptByIdPATCH /scripts/{script_id}Patch script details by ID
IJM.SuitesApiaddSuiteVariantScriptPOST /suites/{suite_id}/variants/{suite_variant_id}/scripts/Add an script to a suite variant
IJM.SuitesApicreateSuitePOST /suites/Create a new suite
IJM.SuitesApicreateSuiteVariantPOST /suites/{suite_id}/variants/Create a new suite variant
IJM.SuitesApideleteSuiteByIdDELETE /suites/{suite_id}Delete a suite by ID
IJM.SuitesApideleteSuiteVariantByIdDELETE /suites/{suite_id}/variants/{suite_variant_id}Delete a suite variant by ID
IJM.SuitesApideleteSuiteVariantScriptByIdDELETE /suites/{suite_id}/variants/{suite_variant_id}/scripts/{script_name}Delete a suite variant script by ID
IJM.SuitesApigetSuiteByIdGET /suites/{suite_id}Get suite details by ID
IJM.SuitesApigetSuiteVariantByIdGET /suites/{suite_id}/variants/{suite_variant_id}Get suite variant details by ID
IJM.SuitesApigetSuiteVariantScriptByIdGET /suites/{suite_id}/variants/{suite_variant_id}/scripts/{script_name}Get suite variant script details by ID
IJM.SuitesApigetSuiteVariantScriptsGET /suites/{suite_id}/variants/{suite_variant_id}/scripts/List of suite variant scripts
IJM.SuitesApigetSuiteVariantsGET /suites/{suite_id}/variants/List of suite variants
IJM.SuitesApigetSuitesGET /suites/List of suites
IJM.SuitesApioptionsSuiteByIdOPTIONS /suites/{suite_id}Check which methods are allowed
IJM.SuitesApioptionsSuiteVariantByIdOPTIONS /suites/{suite_id}/variants/{suite_variant_id}Check which methods are allowed
IJM.SuitesApioptionsSuiteVariantScriptByIdOPTIONS /suites/{suite_id}/variants/{suite_variant_id}/scripts/{script_name}Check which methods are allowed
IJM.SuitesApioptionsSuiteVariantScriptsOPTIONS /suites/{suite_id}/variants/{suite_variant_id}/scripts/Check which methods are allowed
IJM.SuitesApioptionsSuiteVariantsOPTIONS /suites/{suite_id}/variants/Check which methods are allowed
IJM.SuitesApioptionsSuitesOPTIONS /suites/Check which methods are allowed
IJM.SuitesApipatchSuiteByIdPATCH /suites/{suite_id}Patch suite details by ID
IJM.TaskresultdiffsApideleteTaskResultDiffByTaskResultIdsDELETE /task-result-diffs/{primary_task_result_id}/{secondary_task_result_id}Delete a task result diff by task results IDs
IJM.TaskresultdiffsApigetTaskResultDiffAttachmentsByTaskResultIdsGET /task-result-diffs/{primary_task_result_id}/{secondary_task_result_id}/attachmentsGet task result diff attachments details by task results IDs
IJM.TaskresultdiffsApigetTaskResultDiffByTaskResultIdsGET /task-result-diffs/{primary_task_result_id}/{secondary_task_result_id}Get task result diff details by task results IDs
IJM.TaskresultdiffsApigetTaskResultDiffsGET /task-result-diffs/List of task result diffs
IJM.TaskresultdiffsApioptionsTaskResultDiffAttachmentsByTaskResultIDsOPTIONS /task-result-diffs/{primary_task_result_id}/{secondary_task_result_id}/attachmentsCheck which methods are allowed
IJM.TaskresultdiffsApioptionsTaskResultDiffByTaskResultIDsOPTIONS /task-result-diffs/{primary_task_result_id}/{secondary_task_result_id}Check which methods are allowed
IJM.TaskresultdiffsApioptionsTaskResultDiffsOPTIONS /task-result-diffs/Check which methods are allowed
IJM.TaskresultdiffsApipatchTaskResultDiffByTaskResultIdsPATCH /task-result-diffs/{primary_task_result_id}/{secondary_task_result_id}Patch task result diff details by task results IDs
IJM.TaskresultdiffsApischeduleTaskResultDiffPOST /task-result-diffs/Schedule task result diff execution
IJM.TaskresultsApideleteTaskResultByIdDELETE /task-results/{task_result_id}Delete a task result by ID
IJM.TaskresultsApidownloadTaskResultAttachmentPOST /task-results/{task_result_id}/attachments/{attachment_name}Download task result attachment
IJM.TaskresultsApigetTaskResultAttachmentsByIdGET /task-results/{task_result_id}/attachmentsGet task result details by ID
IJM.TaskresultsApigetTaskResultByIdGET /task-results/{task_result_id}Get task result details by ID
IJM.TaskresultsApigetTaskResultsGET /task-results/List of task results
IJM.TaskresultsApioptionsTaskResultAttachmentByNameOPTIONS /task-results/{task_result_id}/attachments/{attachment_name}Check which methods are allowed
IJM.TaskresultsApioptionsTaskResultAttachmentsByIdOPTIONS /task-results/{task_result_id}/attachmentsCheck which methods are allowed
IJM.TaskresultsApioptionsTaskResultByIdOPTIONS /task-results/{task_result_id}Check which methods are allowed
IJM.TaskresultsApioptionsTaskResultsOPTIONS /task-results/Check which methods are allowed
IJM.TaskresultsApipatchTaskResultByIdPATCH /task-results/{task_result_id}Patch task result details by ID
IJM.TaskresultsApischeduleTaskPOST /task-results/Schedule task execution
IJM.TasksApiaddTaskPOST /tasks/Add a new task
IJM.TasksApideleteTaskByIdDELETE /tasks/{task_id}Delete a task by ID
IJM.TasksApigetTaskByIdGET /tasks/{task_id}Get task details by ID
IJM.TasksApigetTasksGET /tasks/List of tasks
IJM.TasksApioptionsTaskByIdOPTIONS /tasks/{task_id}Check which methods are allowed
IJM.TasksApioptionsTasksOPTIONS /tasks/Check which methods are allowed
IJM.TasksApipatchTaskByIdPATCH /tasks/{task_id}Patch task details by ID
IJM.UsersApicreateUserPOST /users/Create a new user
IJM.UsersApigetUserByIdGET /users/{user_id}Get user details by ID
IJM.UsersApigetUserMeGET /users/meGet current user details
IJM.UsersApigetUserSignupFormGET /users/signup_formGet signup form keys
IJM.UsersApigetUsersGET /users/List of users
IJM.UsersApioptionsUserByIdOPTIONS /users/{user_id}Check which methods are allowed
IJM.UsersApioptionsUserMeOPTIONS /users/meCheck which methods are allowed
IJM.UsersApioptionsUserSignupFormOPTIONS /users/signup_formCheck which methods are allowed
IJM.UsersApioptionsUsersOPTIONS /users/Check which methods are allowed
IJM.UsersApipatchUserByIdPATCH /users/{user_id}Patch user details by ID

Documentation for Models

Documentation for Authorization

oauth2_password

  • Type: OAuth
  • Flow: password
  • Authorization URL:
  • Scopes:
    • auth:read: Provide access to auth details
    • auth:write: Provide write access to auth details
    • users:read: Provide access to user details
    • users:write: Provide write access to user details
    • datasets:read: Provide access to dataset details
    • datasets:write: Provide write access to dataset details
    • engines:read: Provide access to engine details
    • engines:write: Provide write access to engine details
    • scripts:read: Provide access to script details
    • scripts:write: Provide write access to script details
    • suites:read: Provide access to suite details
    • suites:write: Provide write access to suite details
    • tasks:read: Provide access to task details
    • tasks:write: Provide write access to task details
    • jobs:read: Provide access to job details
    • jobs:write: Provide write access to job details
    • task-results:read: Provide access to task result details
    • task-results:write: Provide write access to task result details
    • diff-reports:read: Provide access to job details
    • diff-reports:write: Provide write access to job details
    • task-result-diffs:read: Provide access to task result diffs details
    • task-result-diffs:write: Provide write access to task result diffs details
1.9.1

7 years ago

1.9.0

7 years ago

1.8.3

7 years ago

1.8.2

7 years ago

1.8.1

7 years ago

1.8.0

7 years ago

1.7.2

7 years ago

1.7.1

7 years ago

1.6.0

7 years ago

1.5.0

7 years ago

1.4.1

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago