swagger-typescript-api icon indicating copy to clipboard operation
swagger-typescript-api copied to clipboard

feat: add ofetch http client

Open samydoesit opened this issue 1 year ago • 0 comments

This pull request introduces a new feature to the swagger-typescript-api, allowing users to generate a HTTP client utilizing the unjs/ofetch library for making HTTP requests. This is facilitated through the use of the --ofetch command-line flag. The addition of ofetch support is aimed at providing developers with more choices for their HTTP client library, especially in projects where ofetch is already in use or preferred.

There may be areas of improvement or alternative approaches that could improve the implementation or usefulness of the feature. I'm open to any feedback, suggestions or contributions from the community to further refine this feature and would greatly appreciate it. :)

samydoesit avatar Mar 27 '24 22:03 samydoesit