gRPC JSON transcoding
JSON transcoding allows you call gRPC methods with familiar HTTP concepts:
- HTTP verbs
- URL parameter binding
- JSON requests/responses
RESTful APIs for your ASP.NET Core gRPC services. No duplication!

Try it now
This website's source code on GitHub:
- Proto/greet.proto - Add
google.api.http
annotations to map HTTP calls to gRPC. - Server/Server.csproj - Add
Microsoft.AspNetCore.Grpc.JsonTranscoding
NuGet package. - Server/Startup.cs - Register gRPC JSON transcoding with
AddJsonTranscoding()
.
The service, Server/Services/GreeterService.cs, is unchanged. gRPC and REST from one service!
Find out more about using gRPC JSON transcoding here.