daptin-client
v0.5.3
Published
NodeJS client supporting jsonapi, actions, state machines, configuration and aggregate api for daptin backend
Downloads
288
Readme
Daptin Client for JavaScript and TypeScript
Daptin Client for Node/JS/TS ecosystem which extends over the basic JSON API calls and allowes you to execute Action APIs as well handling user auth configurably using a tokenGetter.
Checkout starter kit here: https://github.com/daptin/vue_typescript_starter_kit
Install
NPM
npm install daptin-client --save
Yarn
yarn add daptin-client
Usage
import {DaptinClient} from 'daptin-client'
const daptinClient = new DaptinClient("http://localhost:6336", false);
daptinClient.worldManager.loadModels().then(function () {
daptinClient.jsonApi.findAll("todo").then(function(res: any){
console.log("all todos", res.data)
})
})
Publish
npm adduser
npm publish