openapi-gen-angular

command module
v0.0.0-...-e3f170c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

README

Angular service code gen

An utility tool to generate an angular REST client from the swagger/openapi spec service definitions generated by the protoc toolchain.
Install
  go install github.com/heroiclabs/nakama/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,nakamaconsole,nakama,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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL