reliapi-sdk
v1.0.7
Published
JavaScript/TypeScript SDK for reliapi - Reliability layer for API calls
Maintainers
Readme
[email protected]
A TypeScript SDK client for the localhost API.
Usage
First, install the SDK from npm.
npm install reliapi-sdk --saveNext, try it out.
import {
Configuration,
DefaultApi,
} from 'reliapi-sdk';
import type { HealthzHealthzGetRequest } from 'reliapi-sdk';
async function example() {
console.log("🚀 Testing reliapi-sdk SDK...");
const api = new DefaultApi();
try {
const data = await api.healthzHealthzGet();
console.log(data);
} catch (error) {
console.error(error);
}
}
// Run the test
example().catch(console.error);Documentation
API Endpoints
All URIs are relative to http://localhost
| Class | Method | HTTP request | Description | ----- | ------ | ------------ | ------------- DefaultApi | healthzHealthzGet | GET /healthz | Healthz DefaultApi | livezLivezGet | GET /livez | Livez DefaultApi | metricsMetricsGet | GET /metrics | Metrics DefaultApi | proxyHttpProxyHttpPost | POST /proxy/http | Proxy HTTP request DefaultApi | proxyLlmProxyLlmPost | POST /proxy/llm | Proxy LLM request DefaultApi | rapidapiStatusRapidapiStatusGet | GET /rapidapi/status | RapidAPI Integration Status DefaultApi | readyzReadyzGet | GET /readyz | Readyz
Models
Authorization
Endpoints do not require authorization.
About
This TypeScript SDK client supports the Fetch API and is automatically generated by the OpenAPI Generator project:
- API version:
1.0.7 - Package version:
1.0.7 - Generator version:
7.17.0 - Build package:
org.openapitools.codegen.languages.TypeScriptFetchClientCodegen
The generated npm module supports the following:
- Environments
- Node.js
- Webpack
- Browserify
- Language levels
- ES5 - you must have a Promises/A+ library installed
- ES6
- Module systems
- CommonJS
- ES6 module system
For more information, please visit https://github.com/kikuai-lab/reliapi
Development
Building
To build the TypeScript source code, you need to have Node.js and npm installed. After cloning the repository, navigate to the project directory and run:
npm install
npm run buildPublishing
Once you've built the package, you can publish it to npm:
npm publish