@automatons/typescript-client-axios
v2.3.81
Published
[](https://github.com/openapi-automatons/typescript-client-axios/actions/workflows/ci-cd.yml) [. Non-2xx responses reject (axios default).
Generated client
import axios from "axios";
import { PetsApi } from "./clients";
const api = new PetsApi({
axios, // optional: a custom axios instance
security: { bearerAuth: () => getToken() }, // auth for the document's security schemes
});
const { data } = await api.showPetById("1");How can I use @automatons/typescript-client-axios?
This library is designed to be used by openapi-automatons. Please read the readme of openapi-automatons for how to use it.
