nuxt-open-fetch icon indicating copy to clipboard operation
nuxt-open-fetch copied to clipboard

Generate zero-overhead, typed OpenAPI clients for Nuxt.

Results 47 nuxt-open-fetch issues
Sort by recently updated
recently updated
newest added

Firstly, thank you very much for this awesome module! ## Expected (like built-in `useFetch`) ```ts // type of data is ref const { data } =useFetch(url) // type of data...

enhancement

Hello, now i'm doing this ```ts useApi('/foo', { baseURL: serverStore.host, }) ``` Because sometime I need to use another host. Is it the only way to dynamically change the baseURL...

Hey @enkot I was struggling to generate proper types for my OpenAPI specs and after lots of effort, I found this module. I just want to say this is amazing...

Hi, we are proxying our API through a nuxt catch-all server route. The server route authenticates the API call based on the user's session. On SSR, this works fine with...

enhancement
good first issue

Hey thanks for your module ! I'm coming from open-api-generator with axios-typescript which exposes enum and types directly from what's generated. It could be nice to expose directly quer/params and...

This PR contains the following updates: | Package | Version | |---------|---------| | [@nuxthq/studio](https://www.npmjs.com/package/@nuxthq/studio) | `1.0.3` -> `1.0.6` | | [nuxt](https://www.npmjs.com/package/nuxt) | `3.8.1` -> `3.9.1` | --- This PR has...

The original `$fetch` has `$fetch.raw` which can be used to simplify handling errors. https://github.com/unjs/ofetch#-access-to-raw-response The `$clientFetch` doesn't have the corresponding `.raw`. Can we have it?

Currently, `ComputedOptions` always expects an object: https://github.com/enkot/nuxt-open-fetch/blob/5ed0c272e4ab8e4ec4dcc8b75ed556c44d0b55d5/src/runtime/clients.ts#L16-L18 That makes it inconvenient to provide e.g. computed query: ```ts const { data } = useClientFetch("/objects", { query: { foo: computed(() => "foo"),...

### Describe the feature Using Nuxt 2, I'm configuring the base URL dynamically based on both `process.client` and `process.env.NODE_ENV` like so: ```js $axios.defaults.baseURL = process.client ? process.env.NODE_ENV === 'production' ?...

### Describe the feature Hi, I use Elysia in combination with Nuxt. When I make changes to my API on the server, it would be nice if I could trigger...