swagger-to-flowtype icon indicating copy to clipboard operation
swagger-to-flowtype copied to clipboard

Generating client classes

Open TheTFo opened this issue 7 years ago • 2 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?

TheTFo avatar Jun 27 '17 02:06 TheTFo

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.

yayoc avatar Jun 27 '17 12:06 yayoc

I may throw together an example PR and have you review it.

Thanks!

On Tue, Jun 27, 2017, 8:27 AM yayoc [email protected] wrote:

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.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/yayoc/swagger-to-flowtype/issues/5#issuecomment-311342877, or mute the thread https://github.com/notifications/unsubscribe-auth/AAgWoA6WtnRr7FjwriI1Q4QffsTWWpxQks5sIPUhgaJpZM4OGFcJ .

TheTFo avatar Jun 27 '17 12:06 TheTFo