AspLabs
AspLabs copied to clipboard
Add Query Parameters Resolver to Grpc Swagger
Grpc Swagger does not describe and display gRPC transcoding "query" parameters, while describes "path" and "body" parameters. There is a modest desire to supplement the code with a "query" parameters resolver, wich allows mapped "query" parameters in accordance with the rules of the gRPC transcoding Http Rule Reference: https://cloud.google.com/endpoints/docs/grpc-service-config/reference/rpc/google.api#google.api.HttpRule I wrote the ResolveQueryParameterDescriptors method in the class ServiceDescriptorHelpers with a test for the GrpcHttpApi project. Related to the discussion: https://github.com/dotnet/aspnetcore/issues/42407 Thank you.