@epilot/document-client
v0.19.1
Published
API Client for epilot document API
Maintainers
Keywords
Readme
@epilot/document-client
API Client for epilot Document API.
Uses openapi-client-axios
Getting Started
Install the package:
npm install --save-dev @epilot/document-clientImport the package:
import { getClient } from '@epilot/document-client';Use the client:
// get typed client
const client = await getClient();
// call an operation
const res = await client.generateDocument(null, {});BaseURL & Authorization
To pass an authorization header and set up the API url, you can use axios defaults:
const client = getClient();
client.defaults.baseURL = config.API_URL;
client.defaults.headers['authorization'] = `Bearer ${token}`;API Docs:
https://docs.api.epilot.io/document
