Swagger-codegen: TypeScript axios code generation

Created on 1 May 2019  路  4Comments  路  Source: swagger-api/swagger-codegen

Description

It would be useful to have a code generator for TypeScript using axios library. axios is a popular HTTP client library that is extensively for both backend and frontend development and it would be great to have a generator that supports it.

Suggest a fix/enhancement

Add a new typescript-axios generator that allows generating TypeScript client from Swagger definition.

Most helpful comment

Hi @simllll What kind of bugs have you met? Did you find any alternatives? I also need a code generator for TypeScript using axios library. I'm considering using openapi-generator.

All 4 comments

hello @mushketyk if you're interested you have this library on the forked project : https://github.com/OpenAPITools/openapi-generator

Anyone done this already? The open api version has some bugs, therefore I'm looking for alternatives.

Hi @simllll What kind of bugs have you met? Did you find any alternatives? I also need a code generator for TypeScript using axios library. I'm considering using openapi-generator.

Anyone done this already? The open api version has some bugs, therefore I'm looking for alternatives.

I created a generator for Typescript which uses Axios internally, fully type based, and functional, I think this could help you.
https://github.com/hosseinmd/swagger-typescript

Was this page helpful?
0 / 5 - 0 ratings