Self Generated SDK'S

Our SDK generation feature allows you to create SDKs tailored to your specific requirements.

Downloading the Torus Developer API YAML

To obtain the YAML file, visit the following link:

https://connects.torusdigital.com/api/v1/docs

Offline SDK Generation Using Swagger Codegen CLI

  1. Download the latest jar file from Maven Repository

Note: OpenAPI 3.0 is supported only by Swagger Codegen CLI versions 3.x

Execute the below command to generate the client in a preferred language.

  1. Generate the SDK: Using the online API documentation:

java -jar modules\swagger-codegen-cli\target\swagger-codegen-cli.jar generate -i https://connects.torusdigital.com/api/v1/docs -l go -o c:\temp\go_api_client                                                                                     
  • Using the downloaded YAML file:

java -jar modules\swagger-codegen-cli\target\swagger-codegen-cli.jar generate -i swagger.yaml -l go -o c:\temp\go_api_client

SDK Generation on macOS

  1. Install Swagger Codegen:

brew install swagger-codegen

  1. Generate the SDK:

Using the online API documentation:

swagger-codegen generate -i https://connects.torusdigital.com -l go -o go_api_client

Using the downloaded YAML file:

swagger-codegen generate -i swagger.yaml -l go -o go_api_client

Command Line TIP

-h, --help: Displays help messages and exits. -l, --lang: Specifies the programming language for the generated SDK. -o, --output: Specifies the output directory for the generated files (default is the current directory). -i, --input-spec: Specifies the location of the Swagger specification, either as a URL or a file (required).

Online SDK generation using Swagger editor

  • Open your web browser and go to swagger editor.

  • From the File menu, select "Import File".

  • import the downloaded YAML file.

  • Click on "Generate Client" and select your preferred programming language

  • Download the generated ZIP file and extract it to use your SDK.

  • Each SDK comes with a readme file to know how to install and use SDK.

Last updated