Complete version of ZeroTierOne's OpenAPI
⚠️ This is not an official document by ZeroTier Inc.🤩 This is the full version with additions based on the official documentation and source code, especially the controller API.
zerotierone-api-ts-axios
npm i zerotierone-api-ts-axios
yarn add zerotierone-api-ts-axios
import {
Configuration,
StatusApi,
NetworkApi,
ControllerApi,
PeerApi,
} from "zerotierone-api-ts-axios";
// create configuration
const configuration = new Configuration({
basePath: "/path/to/your/backend",
});
// export configured api instances
export const statusApi = new StatusApi(configuration);
export const networkApi = new NetworkApi(configuration);
export const controllerApi = new ControllerApi(configuration);
export const peerApi = new PeerApi(configuration);
// export models and other exports
export * from "zerotierone-api-ts-axios";