🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

entulib

Package Overview
Dependencies
Maintainers
3
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

entulib

Javascript library to access Entu database

latest
Source
npmnpm
Version
2.0.8
Version published
Weekly downloads
27
800%
Maintainers
3
Weekly downloads
 
Created
Source

entulib

npm version

Library for authenticated access to Entu database API.

Service RequestDescriptionHTTP Method
Get EntityFetch Entity by IDGET
Find EntityDescriptionGET
Get ChildsDescriptionGET
Get RelationshipsDescriptionGET
Edit EntityDescriptionPUT
Add EntityDescriptionPOST
PollDescriptionGET

Authentication of application is done with

  • API key
    • that is stored in Entu
      • and is attached to entity
        • that identifies the application

Usage

$ npm install entulib --save, then var entu = require('entulib')

Methods to please your application

All methods return a promise

  • getEntity(id, entuOptions)
  • getEntities(definition, limit, page, entuOptions)
  • getChilds(parentEid, definition, entuOptions)
  • getRelationships(parentEid, definition, entuOptions)
  • edit(params, entuOptions)
  • add(parentEid, definition, properties, entuOptions)
  • pollUpdates(entuOptions)
  • pollParents(id, entuOptions)

EntuOptions

entuOptions = {
  entuUrl: entuUrl,
  user: user,
  key: key
}

FAQs

Package last updated on 11 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts