1.0.2 • Published 5 years ago

approval_api_jsclient v1.0.2

Weekly downloads
2
License
Apache 2.0
Repository
github
Last release
5 years ago

insights_service_approval_ap_is

InsightsServiceApprovalApIs - JavaScript client for insights_service_approval_ap_is APIs to query approval service This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: org.openapitools.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 insights_service_approval_ap_is --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 InsightsServiceApprovalApIs = require('insights_service_approval_ap_is');

var defaultClient = InsightsServiceApprovalApIs.ApiClient.instance;
// Configure API key authorization: APIKey_auth
var APIKey_auth = defaultClient.authentications['APIKey_auth'];
APIKey_auth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey_auth.apiKeyPrefix['x-rh-auth-identity'] = "Token"

var api = new InsightsServiceApprovalApIs.AdminsApi()
var groupIn = new InsightsServiceApprovalApIs.GroupIn(); // {GroupIn} Parameters need to create user group
api.addGroup(groupIn).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 http://localhost:3000

ClassMethodHTTP requestDescription
InsightsServiceApprovalApIs.AdminsApiaddGroupPOST /groupsAdd a new user group by given parameters
InsightsServiceApprovalApIs.AdminsApiaddUserPOST /usersAdd a new user by given parameters
InsightsServiceApprovalApIs.AdminsApiaddWorkflowPOST /templates/{template_id}/workflowsAdd a workflow by given template id
InsightsServiceApprovalApIs.AdminsApifetchGroupByIdGET /groups/{id}Return user group by given id
InsightsServiceApprovalApIs.AdminsApifetchGroupsGET /groupsReturn all user groups
InsightsServiceApprovalApIs.AdminsApifetchGroupsByUserIdGET /users/{user_id}/groupsReturn associated groups by given user id
InsightsServiceApprovalApIs.AdminsApifetchGroupsByWorkflowIdGET /workflows/{workflow_id}/groupsReturn an array of groups for the workflow
InsightsServiceApprovalApIs.AdminsApifetchRequestsByUserIdGET /users/{user_id}/requestsReturn associated requests by given user id
InsightsServiceApprovalApIs.AdminsApifetchStageByIdGET /stages/{id}Return an approval stage by given id
InsightsServiceApprovalApIs.AdminsApifetchTemplateByIdGET /templates/{id}Return a template by given id
InsightsServiceApprovalApIs.AdminsApifetchTemplateWorkflowsGET /templates/{template_id}/workflowsReturn an array of workflows by given template id
InsightsServiceApprovalApIs.AdminsApifetchTemplatesGET /templatesReturn all templates
InsightsServiceApprovalApIs.AdminsApifetchUserByIdGET /users/{id}Return user by given id
InsightsServiceApprovalApIs.AdminsApifetchUsersGET /usersReturn a list of users
InsightsServiceApprovalApIs.AdminsApifetchUsersByGroupIdGET /groups/{group_id}/usersReturn associated users by given group id
InsightsServiceApprovalApIs.AdminsApifetchWorkflowByIdGET /workflows/{id}Return an approval workflow by given id
InsightsServiceApprovalApIs.AdminsApifetchWorkflowRequestsGET /workflows/{workflow_id}/requestsReturn approval requests by given workflow id
InsightsServiceApprovalApIs.AdminsApifetchWorkflowsGET /workflowsReturn all approval workflows
InsightsServiceApprovalApIs.AdminsApigroupOperationPOST /groups/{id}Update users in a given group
InsightsServiceApprovalApIs.AdminsApiremoveGroupDELETE /groups/{id}Delete user group by given id
InsightsServiceApprovalApIs.AdminsApiremoveUserDELETE /users/{id}Delete user by given id
InsightsServiceApprovalApIs.AdminsApiremoveWorkflowDELETE /workflows/{id}Delete approval workflow by given id
InsightsServiceApprovalApIs.AdminsApiupdateGroupPATCH /groups/{id}Update an user group by given id
InsightsServiceApprovalApIs.AdminsApiupdateUserPATCH /users/{id}Update an user by given id
InsightsServiceApprovalApIs.AdminsApiupdateWorkflowPATCH /workflows/{id}Update an approval workflow by given id
InsightsServiceApprovalApIs.RequestersApiaddRequestPOST /workflows/{workflow_id}/requestsAdd an approval request by given parameters
InsightsServiceApprovalApIs.RequestersApifetchActionsByStageIdGET /stages/{stage_id}/actionsReturn actions in a given stage
InsightsServiceApprovalApIs.RequestersApifetchRequestByIdGET /requests/{id}Return an approval request by given id
InsightsServiceApprovalApIs.RequestersApifetchRequestStagesGET /requests/{request_id}/stagesReturn an array of stages by given request id
InsightsServiceApprovalApIs.RequestersApifetchRequestsGET /requestsReturn an array of approval requests
InsightsServiceApprovalApIs.RequestersApifetchStageByIdGET /stages/{id}Return an approval stage by given id
InsightsServiceApprovalApIs.UsersApiaddActionPOST /stages/{stage_id}/actionsAdd an action to a given stage
InsightsServiceApprovalApIs.UsersApifetchActionByIdGET /actions/{id}Return an user action by id
InsightsServiceApprovalApIs.UsersApifetchActionsByStageIdGET /stages/{stage_id}/actionsReturn actions in a given stage
InsightsServiceApprovalApIs.UsersApifetchRequestByIdGET /requests/{id}Return an approval request by given id
InsightsServiceApprovalApIs.UsersApifetchRequestStagesGET /requests/{request_id}/stagesReturn an array of stages by given request id
InsightsServiceApprovalApIs.UsersApifetchRequestsGET /requestsReturn an array of approval requests

Documentation for Models

Documentation for Authorization

APIKey_auth

  • Type: API key
  • API key parameter name: x-rh-auth-identity
  • Location: HTTP header
1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago