@danny270793/jmixclientv1
v1.0.0
Published
jmix rest api client for jmix v1
Downloads
3
Readme
NodeJmixClientV1
Library to comunicate with jmix 2.x rest api
Instalation
Install package from public registry
npm install @danny270793/jmixclientv1
Examples
Compute the levenshtein distance between two strings
import JmixClient from '@danny270793/jmixclientv1'
import User from '@danny270793/jmixclientv1/build/entities/user'
const protocol: string = process.env.JMIX_PROTOCOL || ''
const hostname: string = process.env.JMIX_HOSTNAME || ''
const port: number = parseInt(process.env.JMIX_PORT || '')
const username: string = process.env.JMIX_USERNAME || ''
const password: string = process.env.JMIX_PASSWORD || ''
const clientId: string = process.env.JMIX_CLIENT_ID || ''
const clientSecret: string = process.env.JMIX_CLIENT_SECRET || ''
const jmixClient: JmixClient = new JmixClient(
protocol,
hostname,
port,
username,
password,
clientId,
clientSecret,
)
const users: User[] = await jmixClient.getEntities<User>('User')
console.log({users})
Follow me
LICENSE
Version
Last update 21/08/2024