@geowiki/evoland-orval-api-proxy
v0.16.7-dev.3
Published
TypeScript client library for the EvoLand API, generated using [Orval](https://orval.dev/) with React Query integration.
Downloads
2,090
Readme
@geowiki/evoland-orval-api-proxy
TypeScript client library for the EvoLand API, generated using Orval with React Query integration.
Installation
npm install @geowiki/evoland-orval-api-proxy
# or
pnpm add @geowiki/evoland-orval-api-proxyPeer Dependencies
npm install @tanstack/react-query axiosUsage
import { useGetProjects, useGetTasks } from "@geowiki/evoland-orval-api-proxy";
// Use React Query hooks for data fetching
function ProjectList() {
const { data: projects } = useGetProjects();
return <div>{projects?.map((p) => <span key={p.id}>{p.name}</span>)}</div>;
}What's Included
- React Query hooks -- Auto-generated hooks for all EvoLand API endpoints
- API schemas -- TypeScript types matching the EvoLand OpenAPI specification
- Axios client -- Pre-configured API client utilities
License
MIT
