@geowiki/api-proxy
TypeScript client library for the GeoWiki backend API, auto-generated from the OpenAPI schema.
Installation
npm install @geowiki/api-proxy
pnpm add @geowiki/api-proxy
Peer Dependencies
npm install axios form-data
Usage
import { ClusterService, NewsService, OpenAPI } from "@geowiki/api-proxy";
OpenAPI.BASE = "https://your-api-url.com";
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, and OpenAPI configuration
License
MIT