google / google/protobuf.dart

support http and routing annotations

Open
#1,018 1 comment 4 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
572
Forks
196
Avg merge
1h 59m
Merged PRs (30d)
2

Description

We should support http and routing annotations in our grpc service generator.

The best docs for this is at:

- https://google.aip.dev/client-libraries/4222

with additional documentation at:

- https://github.com/googleapis/googleapis/blob/master/google/api/http.proto
- https://github.com/googleapis/googleapis/blob/master/google/api/routing.proto

Our grpc service generator should look for http and routing annotations and add the correct http headers for service calls (`'x-goog-request-params'`).

There's an example of passing the headers manually at https://github.com/dart-lang/labs/pull/240/files#diff-64691e9691a43f3ccbf3f98916838891c0a179c135a6bea02a79e0f05a51665fR160.

cc @craiglabenz, @mosuem

Contributor guide

Open the contributing guide

Research direction

Start with the gRPC service generator and read the linked AIP-4222, http.proto, and routing.proto documentation, along with the referenced Dart example. Trace how generated service calls are assembled. Done means supported HTTP and routing annotations produce the correct x-goog-request-params headers.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
api, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.