yayoc / swagger-to-flowtype

Generate Flow types from swagger file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generating client classes

TheTFo opened this issue · comments

Has there been consideration around creating the actual client classes using the proper HTTP method and URL? The swagger-codegen for typescript has a few different flavors, depending on what you want to use for your http library.

I'd like to use Axios, personally, but we could add arguments to specify different libraries. What do you think of something like this?

commented

I haven't had an idea for generating classes of HTTP client however it seems interesting and would be helpful.
I think adapting a specified library like Axios is realistic so far.

Which clients should we support?
To be honest, I haven't used these HTTP clients.