Library to comunicate with jmix 2.x rest api
Install package from public registry
npm install @danny270793/jmixclientv1
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})
Last update 21/08/2024