swagger-typescript-api
swagger-typescript-api copied to clipboard
Middleware
Hi there. I haven't used the project yet, but it's not obvious if the generated client API supports request middleware. Is it possible to add request middleware?
Hello @badsyntax Yes, it's possible if you will use --axios http client
Thanks for the reply. I would prefer to use fetch tbh. I like the way the middleware is implemented in the openapi typescript fetch client. You can see an overview of how it works here: https://github.com/badsyntax/lamernews-api-client
Would you be willing to accept a PR to add middleware to the fetch template?