From a06b5c1a7aaff18aea5a021f1d3487a6a1200ddb Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Sat, 18 Feb 2023 11:20:35 +0000 Subject: [PATCH] add http annotation to fragment proto --- tests/fragments/test_rest_streaming.proto | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/fragments/test_rest_streaming.proto b/tests/fragments/test_rest_streaming.proto index b47d2030b9..f7a4937e2a 100644 --- a/tests/fragments/test_rest_streaming.proto +++ b/tests/fragments/test_rest_streaming.proto @@ -17,11 +17,16 @@ syntax = "proto3"; package google.fragment; import "google/api/client.proto"; +import "google/api/annotations.proto"; service MyService { option (google.api.default_host) = "my.example.com"; rpc MyMethod(MethodRequest) returns (stream MethodResponse) { + option (google.api.http) = { + post: "/v2/some/path/{import}/mymethod" + body: "license" + }; option (google.api.method_signature) = "from,class,import,any,license,type"; } }