@bodesitech/web-api-client
v0.0.2
Published
Bodesi Web API TypeScript+Axios SDK
Maintainers
Readme
Bodesi Web API Client
TypeScript + Axios SDK for the Bodesi Web API
Installation
npm install @bodesi/web-api-client
# or
yarn add @bodesi/web-api-client
# or
pnpm add @bodesi/web-api-clientUsage
import { Configuration, DefaultApi } from '@bodesi/web-api-client';
// Create configuration
const config = new Configuration({
basePath: 'http://localhost:32080',
// Add any configuration options here
});
// Create API instance
const api = new DefaultApi(config);
// Use the API
async function example() {
try {
const result = await api.getApiV1Index();
console.log(result.data);
} catch (error) {
console.error('API call failed:', error);
}
}Swagger Documentation
The API documentation is available at: http://127.0.0.1:32080/swagger/index.html
Development
To regenerate the client from the OpenAPI specification:
npm run generateTo build the package:
npm run buildLicense
Apache-2.0
