From bdebf6ca16188d9b7edfb72d5a8046e82da742b8 Mon Sep 17 00:00:00 2001 From: Akshay Shah Date: Mon, 13 Mar 2023 23:17:12 -0700 Subject: [PATCH] Switch README to buf curl Rather than using `grpcurl`, switch to @jhump's latest and greatest: `buf curl`. --- README.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 38d0dc5e..16b45556 100644 --- a/README.md +++ b/README.md @@ -28,14 +28,13 @@ curl \ Handlers and clients also support the gRPC and gRPC-Web protocols, including streaming, headers, trailers, and error details. gRPC-compatible [server reflection][] and [health checks][] are available as standalone packages. -Instead of cURL, we could call our API with `grpcurl`: +Instead of cURL, we could call our API with `buf curl`: ``` -go install github.com/fullstorydev/grpcurl/cmd/grpcurl@latest -grpcurl \ - -d '{"sentence": "I feel happy."}' \ - demo.connect.build:443 \ - buf.connect.demo.eliza.v1.ElizaService/Say +go install github.com/bufbuild/buf/cmd/buf@latest +buf curl --protocol grpc \ + --data '{"sentence": "I feel happy."}' \ + https://demo.connect.build/buf.connect.demo.eliza.v1.ElizaService/Say ``` Under the hood, Connect is just [Protocol Buffers][protobuf] and the standard