@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
pnpm add @geowiki/evoland-orval-api-proxy
Peer Dependencies
npm install @tanstack/react-query axios
Usage
import { useGetProjects, useGetTasks } from "@geowiki/evoland-orval-api-proxy";
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