-1

I'm using proto to define a REST service

In my service, I'm trying to document that a service responds with a file.

I've looked through here https://github.com/protocolbuffers/protobuf/tree/master/src/google/protobuf but couldn't find anything that looked like a file.

service SomeService {
    rpc GetStaticAsset(GetMessageRequest) returns (FileAsset) {
        option (google.api.http) = {
            get: "/static/{assetName}"
        };
    }
}

message FileAsset {
    ¯\_(ツ)_/¯
}
Daniel
  • 34,125
  • 17
  • 102
  • 150

1 Answers1

1

Found the answer here:

message Chunk {
    bytes Content = 1;
}
double-beep
  • 5,031
  • 17
  • 33
  • 41
Daniel
  • 34,125
  • 17
  • 102
  • 150