Install: @travetto/rest-client
npm install @travetto/rest-client
# or
yarn add @travetto/rest-client
This module allows for a highly focused scenario, of producing Typescript-based clients for use within a homogenous ecosystem. If a more general/robust solution is needed, OpenAPI Specification operates with the the full generative abilities provided by OpenAPI's client generation tools.
The primary benefit with this approach is faster code generation times, as well as no longer having a dependency on docker during generation. This results in far less system resources, along with a more responsive rendering process.
The library, in addition to generating client output at runtime, also allows for direct generation of clients, regardless of any configurations defined in the application's configuration files.
Terminal: Command Service
$ trv rest:client --help
Usage: rest:client [options] <type:angular|fetch-node|fetch-web> <output:string>
Options:
-e, --env <string> Application environment
-m, --module <module> Module to run for
-h, --help display help for command