test

command
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

README

grpc-gateway examples

This package contains examples of how to use the grpc_gateway rules. Specifically it has rules to generate a Python gRPC server and Go gateway which serve to illustrate how this all fits together.

To test them, run the following commands (you'll need a couple of shells for the servers to run concurrently):

plz run //grpc_gateway/test:kitten_server
plz run //grpc_gateway/test:kitten_gateway
curl http://localhost:8080/api/v1/kitten
curl http://localhost:8080/api/v1/kitten/RUSSIAN_BLUE (if you have specific breed requirements)

You can use the following to generate the Swagger JSON documentation:

plz build //grpc_gateway/test\:kitten_swagger

Documentation

Overview

Package main implements an example grpc-gateway server.

Jump to

Keyboard shortcuts

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