@mtk-router/router-client
v0.1.5
Published
MTK Router Automation Platform — TypeScript HTTP client for mtk-serve (/v1/*) with testing utilities.
Downloads
817
Maintainers
Readme
@mtk-router/router-client
MTK Router Automation Platform — TypeScript/JavaScript HTTP client for mtk-serve (/v1/*), with a testing entry for local doubles.
- Install:
npm install @mtk-router/router-client - Env / service URL: same ideas as the Python SDK; see ENVIRONMENT.md for
MTK_*variables. - Contract: OpenAPI is exported by the service at
GET /openapi.json; this package’s types are generated from the committedopenapi.jsonin this directory.
Usage
import { MtkHttpClient } from "@mtk-router/router-client";
const client = new MtkHttpClient({ baseUrl: "http://127.0.0.1:8765" });
// … call typed helpers (see dist/index.d.ts)import { … } from "@mtk-router/router-client/testing";Requirements
- Node.js 18+
- A running
mtk-serve(or compatible) instance atbaseUrl.
