07-24-2024 11:21 AM
Hello! Is it possible to generate TypeScript Client Code? I tried, but what I got is different files for the JavaScript and TypeScript versions.
TS
JS
You will need to have a Java runtime installed on your machine to run Swagger. To generate client code, you first need to install Swagger Codegen 2.X. On macOS, you may use Homebrew:
$ brew install swagger-codegen@2 maven
To generate code in a given language, run swagger-codegen generate and pass the following parameters:
This example will generate Java code suitable to be packaged in an Android library:
$ swagger-codegen generate -i https://developers.strava.com/swagger/swagger.json -l java -o generated/java
Welcome to the Community - here is your guide to help you get started!