@travetto/rest-client
v5.0.19
Published
RESTful support for generating clients for controller endpoints
Downloads
588
Maintainers
Readme
RESTful Client Support
RESTful support for generating clients for controller endpoints
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.
CLI - rest:client
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