Example 1
The following example pipelines demonstrate how to send a gRPC request to the designated server for processing.
Configure the Mapper Snap as shown below:
Configure the gRPC Snap with the Server endpoint, gRPC service and gRPC method details.
On validation, the Snap executes the method, appends
Hello
to the input stream, and displays the following output response from the server.
Example -2
Configure the JSON Generator Snap with some sample data.
[ { "name" : "Doc Test" } ]
Configure the gRPC Client Snap as shown below:
On validation, the Snap executes the method, appends
Hello
to the input stream, and displays the following output response from the server.