@epilot/validation-rules-client
v1.1.10
Published
API Client for epilot Validation Rules API
Maintainers
Readme
@epilot/validation-rules-client
API Client for epilot Validation Rules API
Uses openapi-client-axios
Installation
Install the package:
npm install @epilot/validation-rules-clientUsage
import { getClient } from '@epilot/validation-rules-client'
const client = getClient()
// Use the client to make API calls
// The client will be automatically configured with the OpenAPI specificationBaseURL & 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}`Development
# Install dependencies
npm install
# Run tests
npm test
# Build the package
npm run build
# Update OpenAPI specification
npm run openapiDocumentation
https://docs.epilot.io/api/validation-rules
