Skip to content

Files

Latest commit

627b1e8 · Mar 13, 2025

History

History
23 lines (18 loc) · 466 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 466 Bytes

waldur-js-client

JavaScript client for Waldur MasterMind generated from OpenAPI schema

Example usage

import { client, usersList } from 'waldur-js-client';
import Qs from 'qs';

const querySerializer = (params) =>
    Qs.stringify(params, { arrayFormat: 'repeat' });

client.setConfig({
    auth: () => API_TOKEN,
    baseUrl: API_URL,
    throwOnError: true,
    querySerializer,
});

usersList().then(response => {
    console.log(response.data)
})