dm4client

0.2.0 • Public • Published

DeepaMehta 4 client

A DeepaMehta 4 REST client library

Requirements

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' 
client.login 'check''test'(session) ->
 
  # open the default DeepaMehta workspace 
  client.openSpace 'de.workspaces.deepamehta'(workspaceId) ->
 
    # get all data types 
    client.getDataTypes (dataTypes) ->
 
      # get all topic types 
      client.getTypes (typeList) ->
 
        # get all person contacts 
        client.getTopics 'dm4.contacts.person'(persons) ->
          for person in persons
            console.log person.value

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.0
    0
  • 0.1.0
    1
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    1

Package Sidebar

Install

npm i dm4client

Weekly Downloads

2

Version

0.2.0

License

none

Last publish

Collaborators

  • dgf