@codeless.qa/contracts
v0.0.9
Published
CodelessQA API Client
Downloads
541
Readme
CodelessQA API Contracts
This package contains an API client for public facing CodelessQA endpoints.
You can use this package to make API requests to CodelessQA public facing API.
Install
Install via NPM:
npm i @codeless.qa/contracts
Usage
You can make API requests via:
import { getAuthenticatedClient } from '@codeless.qa/contracts/client'
// get authenticated client with token
const client = getAuthenticatedClient('codeless-qa-b82b312d-4d44-40a3-bb5a-02529417e2d7')
// fetch all tests
const response = await client.tests.get()
console.log(response.body)