New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gRPC transcoding public API #40792
Labels
api-approved
API was approved in API review, it can be implemented
area-grpc
Includes: GRPC wire-up, templates
Milestone
Comments
JamesNK
added
area-grpc
Includes: GRPC wire-up, templates
api-suggestion
Early API idea and discussion, it is NOT ready for implementation
labels
Mar 21, 2022
JamesNK
added
api-ready-for-review
API is ready for formal API review - https://github.com/dotnet/apireviews
and removed
api-suggestion
Early API idea and discussion, it is NOT ready for implementation
labels
Mar 21, 2022
Thank you for submitting this for API review. This will be reviewed by @dotnet/aspnet-api-review at the next meeting of the ASP.NET Core API Review group. Please ensure you take a look at the API review process documentation and ensure that:
|
Note: Will review in a separate meeting. |
Api review:
+ namespace Microsoft.AspNetCore.Grpc.JsonTranscoding;
+
+ public sealed class GrpcJsonTranscodingOptions
+ {
+ public GrpcJsonSettings JsonSettings { get; set; }
+ public Google.Protobuf.Reflection.TypeRegistry TypeRegistry { get; set; }
+ }
+
+ public sealed class GrpcJsonSettings
+ {
+ public bool WriteIndented { get; set; } = false;
+ public bool WriteEnumsAsIntegers { get; set; } = false;
+ public bool WriteInt64AsStrings { get; set; } = false;
+ public bool IgnoreDefaultValues { get; set; } = false;
+ }
+
+ public sealed class GrpcJsonTranscodingMetadata
+ {
+ public GrpcTranscodingMetadata(Google.Protobuf.Reflection.MethodDescriptor methodDescriptor, Google.Api.HttpRule httpRule);
+
+ public Google.Api.HttpRule HttpRule { get; }
+ public Google.Protobuf.Reflection.MethodDescriptor MethodDescriptor { get; }
+ }
+
+ namespace Microsoft.Extensions.DependencyInjection;
+
+ public static class GrpcTranscodingServiceExtensions
+ {
+ public static IGrpcServerBuilder AddJsonTranscoding(this IGrpcServerBuilder builder);
+ public static IGrpcServerBuilder AddJsonTranscoding(this IGrpcServerBuilder builder, Action<GrpcJsonTranscodingOptions> configureOptions);
+ }
|
halter73
added
api-approved
API was approved in API review, it can be implemented
and removed
api-ready-for-review
API is ready for formal API review - https://github.com/dotnet/apireviews
labels
Mar 21, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
api-approved
API was approved in API review, it can be implemented
area-grpc
Includes: GRPC wire-up, templates
Background and Motivation
gRPC transcoding allows apps to expose gRPC services as if they were RESTful APIs.
Proposed API
Usage Examples
Alternative Designs
Risks
The text was updated successfully, but these errors were encountered: