1.0.0 • Published 6 years ago

rmm_api v1.0.0

Weekly downloads
1
License
Unlicense
Repository
-
Last release
6 years ago

rmm_api

RmmApi - JavaScript client for rmm_api For this sample, you can use the api key special-key to test the authorization filters. 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.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 rmm_api --save
Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing package.json (and this README). Let's call this JAVASCRIPT_CLIENT_DIR. Then run:

npm install

Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR:

npm link

Finally, switch to the directory you want to use your rmm_api from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

You should now be able to require('rmm_api') in javascript files from the directory you ran the last command above from.

git

If the library is hosted at a git repository, e.g. https://github.com/YOUR_USERNAME/rmm_api then install it via:

    npm install YOUR_USERNAME/rmm_api --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, that's to say your javascript file where you actually use this library):

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 RmmApi = require('rmm_api');

var defaultClient = RmmApi.ApiClient.instance;

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

var api = new RmmApi.AcceptApi()

var body = new RmmApi.Accept(); // {Accept} Accept object that needs to be added to the store


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.addAccept(body, callback);

Documentation for API Endpoints

All URIs are relative to http://api-dss.virtuhorizon.com/api/v1

ClassMethodHTTP requestDescription
RmmApi.AcceptApiaddAcceptPOST /AcceptAdd a new Accept to the store
RmmApi.AcceptApifindAcceptsByStatusGET /Accept/findByStatusFinds Accepts by status
RmmApi.AcceptApifindAcceptsByTagsGET /Accept/findByTagsFinds Accepts by tags
RmmApi.AcceptApigetAcceptByIdGET /Accept/{AcceptId}Find Accept by ID
RmmApi.AcceptApiuploadFileAcceptPOST /Accept/{AcceptId}/uploadBinuploads a binary
RmmApi.ArgApiaddArgPOST /ArgAdd a new Arg to the store
RmmApi.ArgApifindArgsByStatusGET /Arg/findByStatusFinds Args by status
RmmApi.ArgApifindArgsByTagsGET /Arg/findByTagsFinds Args by tags
RmmApi.ArgApigetArgByIdGET /Arg/{ArgId}Find Arg by ID
RmmApi.ArgApiuploadFileArgPOST /Arg/{ArgId}/uploadBinuploads a binary
RmmApi.DeploymentkeyApiaddDeploymentkeyPOST /DeploymentkeyAdd a new Deploymentkey to the store
RmmApi.DeploymentkeyApifindDeploymentkeysByStatusGET /Deploymentkey/findByStatusFinds Deploymentkeys by status
RmmApi.DeploymentkeyApifindDeploymentkeysByTagsGET /Deploymentkey/findByTagsFinds Deploymentkeys by tags
RmmApi.DeploymentkeyApigetDeploymentkeyByIdGET /Deploymentkey/{DeploymentkeyId}Find Deploymentkey by ID
RmmApi.DeploymentkeyApiuploadFileDeploymentkeyPOST /Deploymentkey/{DeploymentkeyId}/uploadBinuploads a binary
RmmApi.GroupApiaddGroupPOST /GroupAdd a new Group to the store
RmmApi.GroupApifindGroupsByStatusGET /Group/findByStatusFinds Groups by status
RmmApi.GroupApifindGroupsByTagsGET /Group/findByTagsFinds Groups by tags
RmmApi.GroupApigetGroupByIdGET /Group/{GroupId}Find Group by ID
RmmApi.GroupApiuploadFileGroupPOST /Group/{GroupId}/uploadBinuploads a binary
RmmApi.HostendpointApiaddHostendpointPOST /HostendpointAdd a new Hostendpoint to the store
RmmApi.HostendpointApifindHostendpointsByStatusGET /Hostendpoint/findByStatusFinds Hostendpoints by status
RmmApi.HostendpointApifindHostendpointsByTagsGET /Hostendpoint/findByTagsFinds Hostendpoints by tags
RmmApi.HostendpointApigetHostendpointByIdGET /Hostendpoint/{HostendpointId}Find Hostendpoint by ID
RmmApi.HostendpointApiuploadFileHostendpointPOST /Hostendpoint/{HostendpointId}/uploadBinuploads a binary
RmmApi.IdentifierApiaddIdentifierPOST /IdentifierAdd a new Identifier to the store
RmmApi.IdentifierApifindIdentifiersByStatusGET /Identifier/findByStatusFinds Identifiers by status
RmmApi.IdentifierApifindIdentifiersByTagsGET /Identifier/findByTagsFinds Identifiers by tags
RmmApi.IdentifierApigetIdentifierByIdGET /Identifier/{IdentifierId}Find Identifier by ID
RmmApi.IdentifierApiuploadFileIdentifierPOST /Identifier/{IdentifierId}/uploadBinuploads a binary
RmmApi.InfoApiaddInfoPOST /InfoAdd a new Info to the store
RmmApi.InfoApifindInfosByStatusGET /Info/findByStatusFinds Infos by status
RmmApi.InfoApifindInfosByTagsGET /Info/findByTagsFinds Infos by tags
RmmApi.InfoApigetInfoByIdGET /Info/{InfoId}Find Info by ID
RmmApi.InfoApiuploadFileInfoPOST /Info/{InfoId}/uploadBinuploads a binary
RmmApi.ListApiaddListPOST /ListAdd a new List to the store
RmmApi.ListApifindListsByStatusGET /List/findByStatusFinds Lists by status
RmmApi.ListApifindListsByTagsGET /List/findByTagsFinds Lists by tags
RmmApi.ListApigetListByIdGET /List/{ListId}Find List by ID
RmmApi.ListApiuploadFileListPOST /List/{ListId}/uploadBinuploads a binary
RmmApi.LogApiaddLogPOST /LogAdd a new Log to the store
RmmApi.LogApifindLogsByStatusGET /Log/findByStatusFinds Logs by status
RmmApi.LogApifindLogsByTagsGET /Log/findByTagsFinds Logs by tags
RmmApi.LogApigetLogByIdGET /Log/{LogId}Find Log by ID
RmmApi.LogApiuploadFileLogPOST /Log/{LogId}/uploadBinuploads a binary
RmmApi.OpApiaddOpPOST /OpAdd a new Op to the store
RmmApi.OpApifindOpsByStatusGET /Op/findByStatusFinds Ops by status
RmmApi.OpApifindOpsByTagsGET /Op/findByTagsFinds Ops by tags
RmmApi.OpApigetOpByIdGET /Op/{OpId}Find Op by ID
RmmApi.OpApiuploadFileOpPOST /Op/{OpId}/uploadBinuploads a binary
RmmApi.ScheduleApiaddSchedulePOST /ScheduleAdd a new Schedule to the store
RmmApi.ScheduleApifindSchedulesByStatusGET /Schedule/findByStatusFinds Schedules by status
RmmApi.ScheduleApifindSchedulesByTagsGET /Schedule/findByTagsFinds Schedules by tags
RmmApi.ScheduleApigetScheduleByIdGET /Schedule/{ScheduleId}Find Schedule by ID
RmmApi.ScheduleApiuploadFileSchedulePOST /Schedule/{ScheduleId}/uploadBinuploads a binary
RmmApi.SequenceApiaddSequencePOST /SequenceAdd a new Sequence to the store
RmmApi.SequenceApifindSequencesByStatusGET /Sequence/findByStatusFinds Sequences by status
RmmApi.SequenceApifindSequencesByTagsGET /Sequence/findByTagsFinds Sequences by tags
RmmApi.SequenceApigetSequenceByIdGET /Sequence/{SequenceId}Find Sequence by ID
RmmApi.SequenceApiuploadFileSequencePOST /Sequence/{SequenceId}/uploadBinuploads a binary
RmmApi.StackApiaddStackPOST /StackAdd a new Stack to the store
RmmApi.StackApifindStacksByStatusGET /Stack/findByStatusFinds Stacks by status
RmmApi.StackApifindStacksByTagsGET /Stack/findByTagsFinds Stacks by tags
RmmApi.StackApigetStackByIdGET /Stack/{StackId}Find Stack by ID
RmmApi.StackApiuploadFileStackPOST /Stack/{StackId}/uploadBinuploads a binary
RmmApi.TagApiaddTagPOST /TagAdd a new Tag to the store
RmmApi.TagApifindTagsByStatusGET /Tag/findByStatusFinds Tags by status
RmmApi.TagApifindTagsByTagsGET /Tag/findByTagsFinds Tags by tags
RmmApi.TagApigetTagByIdGET /Tag/{TagId}Find Tag by ID
RmmApi.TagApiuploadFileTagPOST /Tag/{TagId}/uploadBinuploads a binary
RmmApi.ThumbprintkeyApiaddThumbprintkeyPOST /ThumbprintkeyAdd a new Thumbprintkey to the store
RmmApi.ThumbprintkeyApifindThumbprintkeysByStatusGET /Thumbprintkey/findByStatusFinds Thumbprintkeys by status
RmmApi.ThumbprintkeyApifindThumbprintkeysByTagsGET /Thumbprintkey/findByTagsFinds Thumbprintkeys by tags
RmmApi.ThumbprintkeyApigetThumbprintkeyByIdGET /Thumbprintkey/{ThumbprintkeyId}Find Thumbprintkey by ID
RmmApi.ThumbprintkeyApiuploadFileThumbprintkeyPOST /Thumbprintkey/{ThumbprintkeyId}/uploadBinuploads a binary
RmmApi.TransactionApiaddTransactionPOST /TransactionAdd a new Transaction to the store
RmmApi.TransactionApifindTransactionsByStatusGET /Transaction/findByStatusFinds Transactions by status
RmmApi.TransactionApifindTransactionsByTagsGET /Transaction/findByTagsFinds Transactions by tags
RmmApi.TransactionApigetTransactionByIdGET /Transaction/{TransactionId}Find Transaction by ID
RmmApi.TransactionApiuploadFileTransactionPOST /Transaction/{TransactionId}/uploadBinuploads a binary
RmmApi.VarApiaddVarPOST /VarAdd a new Var to the store
RmmApi.VarApifindVarsByStatusGET /Var/findByStatusFinds Vars by status
RmmApi.VarApifindVarsByTagsGET /Var/findByTagsFinds Vars by tags
RmmApi.VarApigetVarByIdGET /Var/{VarId}Find Var by ID
RmmApi.VarApiuploadFileVarPOST /Var/{VarId}/uploadBinuploads a binary

Documentation for Models

Documentation for Authorization

api_auth

api_key

  • Type: API key
  • API key parameter name: api_key
  • Location: HTTP header