Client library for epilot Entity API
Uses openapi-client-axios
npm install --save @epilot/entity-client
import { getClient } from '@epilot/entity-client';
const entityClient = getClient();
const createResponse = await entityClient.createEntity({ slug: 'contact' }, { first_name: 'Example', last_name: 'Entity' });
const getResponse = await entityClient.getEntity({ slug: 'contact', id: createResponse.data._id });