@geowiki/api-proxy
v0.16.0-dev.4
Published
TypeScript client library for the GeoWiki backend API, auto-generated from the OpenAPI schema.
Downloads
798
Readme
@geowiki/api-proxy
TypeScript client library for the GeoWiki backend API, auto-generated from the OpenAPI schema.
Installation
npm install @geowiki/api-proxy
# or
pnpm add @geowiki/api-proxyPeer Dependencies
npm install axios form-dataUsage
import { ClusterService, NewsService, OpenAPI } from "@geowiki/api-proxy";
// Configure the API base URL
OpenAPI.BASE = "https://your-api-url.com";
// Use service classes to interact with the API
const clusters = await ClusterService.getClusters();
const news = await NewsService.getNews();What's Included
- Service classes --
ClusterService,NewsService,UserService,LayerService,ResourceService, and more - Model types -- 160+ TypeScript types for API request/response objects (DTOs for clusters, users, layers, news, resources, etc.)
- API utilities --
ApiError,CancelablePromise, andOpenAPIconfiguration
License
MIT
