enkot / nuxt-open-fetch

Generate zero-overhead, typed OpenAPI clients for Nuxt.
https://nuxt-open-fetch.vercel.app
MIT License
134 stars 12 forks source link

Better documentation on how to set parameters like headers/method, etc. for each fetch call #33

Closed twatzl closed 5 months ago

twatzl commented 5 months ago

Currently the documentation is quite minimal on the topic of how to do post request, how to pass header parameters or further advanced topics.

Also there is no documentation on how to make use of the typing when using ides or editors such as VSCode or Intellij.

It would be helpful to add this.

enkot commented 5 months ago

Hi @twatzl,

You can use the Nuxt documentation for useFetch and $fetch as mentioned in the docs:

It has the same API as Nuxt's useFetch composable with additional path option, which is used to replace params in the pathname.