Angular service code gen
Install
go install github.com/u2u-labs/layerg-core/console/openapi-gen-angular
Usage
Options
input
: The pathname for the swagger input.
output
: The pathname of the generated TypeScript service class.
rm_prefix
: Optional list of prefixes, delimited by ,
, to remove from types and function names.
Generate the Angular service
Example
go run . -i '../console.swagger.json' -o '../ui/src/app/console.service.ts' -rm_prefix='console,layergconsole,layerg,Console_'
The output file is: console.service.ts
.
Limitations
The code generator has only been checked against a limited set of grpc-gateway service definitions YMMV.