One of the great new features now available to try out in the latest ASP.NET Core updates in .NET 7 RC1 is experimental OpenAPI support for gRPC JSON transcoding which allows you to create OAS (Swagger) compliant APIs for gRPC services by just adding a Nugget package and a few lines of code.
In this video we briefly explore how to create a simple gRPC service in ASP.NET Core, and making it possible to call it from the browser (or any HTTP client) as a JSON REST API, before adding OpenAPI capabilities to the service.
Protobuf files for JSON transcoding: https://rynd.rs/json-grpc
ASP.NET Core updates in .NET 7 RC1 blog post:
https://devblogs.microsoft.com/dotnet...
gRPC JSON transcoding for .NET
https://devblogs.microsoft.com/dotnet...
00:00 - Introduction
00:56 - What is gRPC
01:43 - Creating a simple gRPC service
04:48 - Creating a gRPC client
10:35 - Adding JSON transcoding
14:15 - gRPC JSON encoding vs gRPC Web
14:55 - Adding OpenAPI capabilities to gRPC service
Watch video OpenAPI support for gRPC JSON transcoding in ASP.NET Core online without registration, duration hours minute second in high quality. This video was added by user Fanie Reynders 30 September 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,589 once and liked it 85 people.