1.0.0 • Published 3 years ago

nozomi_api v1.0.0

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

nozomi_api

NozomiApi - JavaScript client for nozomi_api

This SDK is automatically generated by the Swagger Codegen project:

  • API version: 5
  • Package version: 5
  • Build package: io.swagger.codegen.v3.generators.javascript.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 nozomi_api --save

git

If the library is hosted at a git repository, e.g. https://github.com/nozomi-ai/nozomi.js then install it via:

    npm install nozomi-ai/nozomi.js --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 NozomiApi = require('nozomi_api');
var defaultClient = NozomiApi.ApiClient.instance;

// Configure API key authorization: API Key
var API Key = defaultClient.authentications['API Key'];
API Key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//API Key.apiKeyPrefix['X-Api-Key'] = "Token"

var api = new NozomiApi.ComponentApi()
var opts = { 
  'requestGuid': "requestGuid_example", // {String} The unique identifier of the request that contains this component.
  'index': 0 // {Number} The 'page' of the list of results in 100s
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.componentAllGet(opts, callback);

Documentation for API Endpoints

All URIs are relative to https://api.nozomi.ai

ClassMethodHTTP requestDescription
NozomiApi.ComponentApicomponentAllGetGET /Component/AllObtain all components you have created.
NozomiApi.ComponentApicomponentCreatePostPOST /Component/CreateCreate a component.
NozomiApi.ComponentApicomponentDeleteDeleteDELETE /Component/DeleteDelete a component.
NozomiApi.ComponentApicomponentGetGuidGetGET /Component/Get/{guid}Obtain the component and its historical values.
NozomiApi.ComponentApicomponentUpdatePutPUT /Component/UpdateUpdate a component.
NozomiApi.ComponentHistoricItemApicomponentHistoricItemAllComponentGuidGetGET /ComponentHistoricItem/All/{componentGuid}Obtain all the component historical values created
NozomiApi.ComponentTypeApicomponentTypeAllGetGET /ComponentType/AllObtain all of the component types that are publicly available or the ones that you own.
NozomiApi.ComputeApicomputeAllIndexGetGET /Compute/All/{index}Obtains all of the relevant computes you own.
NozomiApi.ComputeApicomputeGetGuidGetGET /Compute/Get/{guid}Obtains the specific compute.
NozomiApi.ComputeExpressionApicomputeExpressionAllIndexGetGET /ComputeExpression/All/{index}Obtains all of the relevant compute expressions you own.
NozomiApi.ComputeExpressionApicomputeExpressionGetGuidGetGET /ComputeExpression/Get/{guid}Obtains the specific compute expression.
NozomiApi.ComputeValueApicomputeValueAllIndexGetGET /ComputeValue/All/{index}Obtain all compute value generated.
NozomiApi.ComputeValueApicomputeValueGetGuidGetGET /ComputeValue/Get/{guid}Obtain the compute value specified.
NozomiApi.ComputeValueApicomputeValueLastComputeGuidGetGET /ComputeValue/Last/{computeGuid}Obtain the last compute value of the compute in question.
NozomiApi.ConnectApiconnectValidateHeadHEAD /Connect/ValidateAllows the client to validate his API key.
NozomiApi.ItemApiitemAllIndexGetGET /Item/All/{index}Obtains all of the relevant items you own.
NozomiApi.ItemApiitemCreatePostPOST /Item/CreateCreate an item.
NozomiApi.ItemApiitemExistsSlugGetGET /Item/Exists/{slug}Validates if the slug is being used.
NozomiApi.ItemApiitemGetBySlugSlugGetGET /Item/GetBySlug/{slug}Obtains the specified item.
NozomiApi.ItemApiitemGetItemGuidGetGET /Item/Get/{itemGuid}Obtains the specified item.
NozomiApi.ItemApiitemUpdatePutPUT /Item/UpdateUpdate the specified item.
NozomiApi.RequestApirequestAllGetGET /Request/AllRetrieves all requests owned by the stated user with a pagination of 100 items.
NozomiApi.RequestApirequestCreatePostPOST /Request/CreateCreate a request.
NozomiApi.RequestApirequestDeleteGuidDeleteDELETE /Request/Delete/{guid}Delete a request.
NozomiApi.RequestApirequestGetGuidGetGET /Request/Get/{guid}Retrieves the request with the mentioned guid.
NozomiApi.RequestApirequestUpdatePutPUT /Request/UpdateUpdate a request.
NozomiApi.RequestPropertyApirequestPropertyAllByRequestGetGET /RequestProperty/AllByRequestObtain all analysed components you have created, relative to that specific request.
NozomiApi.RequestPropertyApirequestPropertyAllGetGET /RequestProperty/AllObtain all request properties you have created/own.
NozomiApi.RequestPropertyApirequestPropertyCreatePostPOST /RequestProperty/CreateCreate a request property.
NozomiApi.RequestPropertyApirequestPropertyDeleteGuidDeleteDELETE /RequestProperty/Delete/{guid}Delete a request property
NozomiApi.RequestPropertyApirequestPropertyUpdatePutPUT /RequestProperty/UpdateUpdate a request property.
NozomiApi.SubComputeApisubComputeAllByChildChildComputeGuidGetGET /SubCompute/AllByChild/{childComputeGuid}Obtains all of the relevant parent computes the child compute has.
NozomiApi.SubComputeApisubComputeAllByParentParentComputeGuidGetGET /SubCompute/AllByParent/{parentComputeGuid}Obtains all of the relevant child computes the parent compute has.
NozomiApi.SubComputeApisubComputeAllIndexGetGET /SubCompute/All/{index}Obtains all of the relevant Sub Computes you own.
NozomiApi.SubComputeApisubComputeGetGetGET /SubCompute/GetObtains the specific sub compute.
NozomiApi.WebsocketCommandApiwebsocketCommandAllByRequestGetGET /WebsocketCommand/AllByRequestObtain all of the websocket commands created, relative to the request.
NozomiApi.WebsocketCommandApiwebsocketCommandAllGetGET /WebsocketCommand/AllObtain all websocket commands you have created/own.
NozomiApi.WebsocketCommandPropertyApiwebsocketCommandPropertyAllByCommandGetGET /WebsocketCommandProperty/AllByCommandRetrieves all websocket command properties relevant to its parent command.
NozomiApi.WebsocketCommandPropertyApiwebsocketCommandPropertyAllGetGET /WebsocketCommandProperty/AllRetrieves all websocket command properties owned by the stated user with a pagination of 1000 items.

Documentation for Models

Documentation for Authorization

API Key

  • Type: API key
  • API key parameter name: X-Api-Key
  • Location: HTTP header