Generate a client
Generate typed SDKs for 60+ languages from the TIC LENS OpenAPI spec using the OpenAPI Generator.
The LENS API publishes an OpenAPI spec. Run the OpenAPI Generator against the spec URL to produce a typed client in your language of choice.
Spec URL
| API | OpenAPI version | Spec URL |
|---|---|---|
| LENS API | 3.1 | https://lens-api.tic.io/docs/v1/swagger.json |
The v1 in the URL is the version of the spec document, not of the API.
Quick start
Generate a TypeScript client for the LENS API:
npx @openapitools/openapi-generator-cli generate \
-i https://lens-api.tic.io/docs/v1/swagger.json \
-g typescript-fetch \
-o ./tic-lens-clientSame pattern for Python:
npx @openapitools/openapi-generator-cli generate \
-i https://lens-api.tic.io/docs/v1/swagger.json \
-g python \
-o ./tic-lens-client-pythonSwap -g <generator> to target a different language - see the full generator list.
Supported languages
The OpenAPI Generator covers 60+ targets including most common server and client languages:
Backend: C#, Go, Java, Kotlin, PHP, Python, Ruby, Rust, Scala, Swift, Elixir, Erlang, Haskell, Perl, Crystal.
Frontend / mobile: TypeScript (fetch, axios, node, angular, rxjs, redux-query, …), JavaScript, Dart, Swift, Kotlin (Android), Objective-C.
Other: Ada, Apex, Bash, C, C++, Clojure, Eiffel, Elm, Groovy, Julia, Lua, Nim, OCaml, PowerShell, R, Zapier.
For the full, current list including beta and experimental generators, see the OpenAPI Generator documentation.