@geowiki/cms-proxy
v0.16.0-dev.4
Published
TypeScript client library for the GeoWiki CMS backend API, auto-generated from the OpenAPI schema.
Readme
@geowiki/cms-proxy
TypeScript client library for the GeoWiki CMS backend API, auto-generated from the OpenAPI schema.
Installation
npm install @geowiki/cms-proxy
# or
pnpm add @geowiki/cms-proxyPeer Dependencies
npm install axios form-dataUsage
import { DefaultService, QueryApiService, OpenAPI } from "@geowiki/cms-proxy";
// Configure the API base URL
OpenAPI.BASE = "https://your-cms-url.com";
// Fetch CMS content
const pages = await QueryApiService.getPages();
const settings = await DefaultService.getSettings();What's Included
- Service classes --
DefaultService,QueryApiService,SettingsService - Model types -- 230+ TypeScript types for CMS content structures (widgets, sections, page elements, galleries, testimonials, etc.)
- API utilities --
ApiError,CancelablePromise, andOpenAPIconfiguration
License
MIT
