DeepaMehta 4 client
A DeepaMehta 4 REST client library
Requirements
- DeepaMehta 4 with active dm4-webservice module
- Node.js and npm
Installation
npm install dm4client
Usage
# create a client instance client = require'./src/dm4client'create 'http://localhost:8080/' # login in as user 'check' with password 'test' clientlogin 'check''test' # open the default DeepaMehta workspace clientopenSpace 'de.workspaces.deepamehta' # get all data types clientgetDataTypes # get all topic types clientgetTypes # get all person contacts clientgetTopics 'dm4.contacts.person' for person in persons consolelog personvalue