API Reference
This reference covers the module options and everything an endpoint generates. To make a first request, start with Getting Started.
Configuration
- Module Configuration – Every option an endpoint accepts.
Generated Composables
Each endpoint yields two composables, both auto-imported:
useFetch-Like Composable – Returns multiple values similar touseFetch. Generated name:useMyApiData.$fetch-Like Composable – Returns response data, similar to$fetch. Generated name:$myApi.
Composable names come from the endpoint ID: an endpoint jsonPlaceholder generates $jsonPlaceholder and useJsonPlaceholderData.
Server code gets its own $myApi, which reaches the API without the server proxy. See Server Imports.
Types
- OpenAPI Type Helpers – Extract request, response and parameter types from an endpoint's schema.