0.0.14 • Published 9 years ago

weaviate v0.0.14

Weekly downloads
48
License
MIT
Repository
-
Last release
9 years ago

weaviate_api

WeaviateApi - JavaScript client for weaviate_api Lets you register, view and manage cloud ready devices.

  • API version: v1-alpha
  • Package version: v1-alpha
  • Build package: io.swagger.codegen.languages.JavascriptClientCodegen For more information, please visit https://github.com/weaviate/weaviate

Installation

npm

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

Then install it via:

npm install weaviate --save

git

If the library is hosted at a git repository, e.g. https://github.com/weaviate/weaviate-client-nodejs then install it via:

    npm install weaviate/weaviate-client-nodejs --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.

Getting Started

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

var WeaviateApi = require('weaviate');

var defaultClient = WeaviateApi.ApiClient.instance;

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

var api = new WeaviateApi.AclEntriesApi()

var deviceId = "deviceId_example"; // {String} ID of the device to use.

var aclEntryId = "aclEntryId_example"; // {String} Unique ACL entry ID.

var opts = { 
  'alt': "json", // {String} Data format for the response.
  'fields': "fields_example", // {String} Selector specifying which fields to include in a partial response.
  'key': "key_example", // {String} API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  'oauthToken': "oauthToken_example", // {String} OAuth 2.0 token for the current user.
  'prettyPrint': true, // {Boolean} Returns response with indentations and line breaks.
  'quotaUser': "quotaUser_example", // {String} Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
  'userIp': "userIp_example", // {String} IP address of the site where the request originates. Use this if you want to enforce per-user limits.
  'hl': "hl_example" // {String} Specifies the language code that should be used for text values in the API response.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.weaveAclEntriesDelete(deviceId, aclEntryId, opts, callback);

Documentation for API Endpoints

All URIs are relative to https://localhost/weaviate/v1-alpha

ClassMethodHTTP requestDescription
WeaviateApi.AclEntriesApiweaveAclEntriesDeleteDELETE /devices/{deviceId}/aclEntries/{aclEntryId}
WeaviateApi.AclEntriesApiweaveAclEntriesGetGET /devices/{deviceId}/aclEntries/{aclEntryId}
WeaviateApi.AclEntriesApiweaveAclEntriesInsertPOST /devices/{deviceId}/aclEntries
WeaviateApi.AclEntriesApiweaveAclEntriesListGET /devices/{deviceId}/aclEntries
WeaviateApi.AclEntriesApiweaveAclEntriesPatchPATCH /devices/{deviceId}/aclEntries/{aclEntryId}
WeaviateApi.AclEntriesApiweaveAclEntriesUpdatePUT /devices/{deviceId}/aclEntries/{aclEntryId}
WeaviateApi.AdaptersApiweaveAdaptersAcceptPOST /adapters/accept
WeaviateApi.AdaptersApiweaveAdaptersActivatePOST /adapters/{adapterId}/activate
WeaviateApi.AdaptersApiweaveAdaptersDeactivatePOST /adapters/{adapterId}/deactivate
WeaviateApi.AdaptersApiweaveAdaptersGetGET /adapters/{adapterId}
WeaviateApi.AdaptersApiweaveAdaptersListGET /adapters
WeaviateApi.CommandsApiweaveCommandsCancelPOST /commands/{commandId}/cancel
WeaviateApi.CommandsApiweaveCommandsDeleteDELETE /commands/{commandId}
WeaviateApi.CommandsApiweaveCommandsGetGET /commands/{commandId}
WeaviateApi.CommandsApiweaveCommandsGetQueueGET /commands/queue
WeaviateApi.CommandsApiweaveCommandsInsertPOST /commands
WeaviateApi.CommandsApiweaveCommandsListGET /commands
WeaviateApi.CommandsApiweaveCommandsPatchPATCH /commands/{commandId}
WeaviateApi.CommandsApiweaveCommandsUpdatePUT /commands/{commandId}
WeaviateApi.DevicesApiweaveDevicesAddLabelPOST /devices/{deviceId}/addLabel
WeaviateApi.DevicesApiweaveDevicesAddNicknamePOST /devices/{deviceId}/addNickname
WeaviateApi.DevicesApiweaveDevicesDeleteDELETE /devices/{deviceId}
WeaviateApi.DevicesApiweaveDevicesGetGET /devices/{deviceId}
WeaviateApi.DevicesApiweaveDevicesInsertPOST /devices
WeaviateApi.DevicesApiweaveDevicesListGET /devices
WeaviateApi.DevicesApiweaveDevicesPatchPATCH /devices/{deviceId}
WeaviateApi.DevicesApiweaveDevicesPatchStatePOST /devices/{deviceId}/patchState
WeaviateApi.DevicesApiweaveDevicesRemoveLabelPOST /devices/{deviceId}/removeLabel
WeaviateApi.DevicesApiweaveDevicesRemoveNicknamePOST /devices/{deviceId}/removeNickname
WeaviateApi.DevicesApiweaveDevicesUpdatePUT /devices/{deviceId}
WeaviateApi.DevicesApiweaveDevicesUpdateParentPOST /devices/{deviceId}/updateParent
WeaviateApi.EventsApiweaveEventsDeleteAllPOST /events/deleteAll
WeaviateApi.EventsApiweaveEventsListGET /events
WeaviateApi.EventsApiweaveEventsRecordDeviceEventsPOST /events/recordDeviceEvents
WeaviateApi.ModelManifestsApiweaveModelManifestsGetGET /modelManifests/{modelManifestId}
WeaviateApi.ModelManifestsApiweaveModelManifestsListGET /modelManifests
WeaviateApi.ModelManifestsApiweaveModelManifestsValidateCommandDefsPOST /modelManifests/validateCommandDefs
WeaviateApi.ModelManifestsApiweaveModelManifestsValidateComponentsPOST /modelManifests/validateComponents
WeaviateApi.ModelManifestsApiweaveModelManifestsValidateDeviceStatePOST /modelManifests/validateDeviceState

Documentation for Models

Documentation for Authorization

apiKey

  • Type: API key
  • API key parameter name: X-API-KEY
  • Location: HTTP header
0.0.14

9 years ago

0.0.12

9 years ago

0.0.11

9 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago