Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Streaming multiple object as array #38

Open
stanislavla opened this issue May 18, 2022 · 0 comments
Open

Streaming multiple object as array #38

stanislavla opened this issue May 18, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@stanislavla
Copy link

stanislavla commented May 18, 2022

The example indicates that streaming is possible: but stream SearchTransactionResponse contains repeated TransactionResponse transactions in its response. And could contain at once - TransactionResponse stream. Is such an application possible? How?
For example proto:

service WalletService {
  rpc searchTransaction (SearchTransactionRequest) returns (stream TransactionResponse) {}
}
message TransactionResponse {
  uint64 id = 1;
  uint64 userId = 2;
  string currency = 3;
  common.proto.ProtoBigDecimal amount = 4;
  common.proto.ProtoTimestamp transaction_date = 5;
}

Json stub file may looks like:

"jsonBody": [
     {"id": 1, userId: "1", "currency":1}, 
     {"id": 2, userId: "2", "currency":2}
]
@stanislavla stanislavla added the enhancement New feature or request label May 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant