@danny270793/jmixclientv2
v1.1.1
Published
jmix rest api client for jmix v2
Downloads
4
Readme
NodeJmixClientV1
Library to comunicate with jmix 2.x rest api
Instalation
Install package from public registry
npm install @danny270793/jmixclientv2
Examples
Compute the levenshtein distance between two strings
import JmixClient from '@danny270793/jmixclientv2'
import User from '@danny270793/jmixclientv2/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 clientId: string = process.env.JMIX_CLIENT_ID || ''
const clientSecret: string = process.env.JMIX_CLIENT_SECRET || ''
const jmixClient: JmixClient = new JmixClient(
protocol,
hostname,
port,
clientId,
clientSecret,
)
const users: User[] = await jmixClient.read<User>('User')
console.log({users})
Follow me
LICENSE
Version
Last update 21/08/2024