REST effect for the vrf form engine (v0.11.0). Enables automatic REST API integration for Vue forms built with vrf: forms declare resources and vrf-rest generates GET, POST, PATCH requests from form configuration (auto, single, action modes). Supports file uploads via multipayload format. Ships TypeScript types. Release cadence is irregular; currently stable.
npm install vrf-restNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to install the vrf-rest plugin with Vue and vrf, setting a base URL and auth header.
Ensure 'vrf' is installed: npm install vrf, and call app.use(vrf) before app.use(vrfRest).
Consider using standard multipart/form-data with JSON metadata if needed.
Define explicit routes for action endpoints in your backend.
Ensure backend route for PATCH /todos acts on a single resource (e.g., current user).
npm install vrf-rest (if types exist they are bundled).
Ensure import vrfRest from 'vrf-rest' returns a default function that is a Vue plugin.
Provide options object with baseURL: process.env.VITE_API_BASE ?? '/api', and ensure app.use(vrf) is called first.
No dependency data recorded yet.