wolfadex / elm-open-api-cli

A CLI tool for generating Elm modules from Open API specs.
https://www.npmjs.com/package/elm-open-api
26 stars 6 forks source link

Support for custom headers #120

Open myrho opened 3 months ago

myrho commented 3 months ago

Is there a way send custom headers with the generated Cmd/Task endpoints? For instance for cache control, authentication ...

miniBill commented 3 months ago

With regards to authentication, you can specify it in the openapi spec and then the generator will make the functions take additional parameters.

For cache control, the tool doesn't currently support it.

@wolfadex now that we have the more granular effects, we could have elm/http.taskRecord?

wolfadex commented 3 months ago

Oh! We can do that now!! Will add it to the list of things to do