CAPI proxies gRPC traffic on port 8384 using the x-capi-service header for routing.
The BFF bridges browser requests to gRPC via Python's grpcio library.
service Greeter {
rpc SayHello (HelloRequest) returns (HelloReply);
}
message HelloRequest { string name = 1; }
message HelloReply { string message = 1; }
grpcurl -plaintext \
-H "x-capi-service: greeter/dev" \
-import-path demo-e2e/services -proto greeter.proto \
-d '{"name": "CAPI"}' \
localhost:8384 greeter.Greeter/SayHello