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

Streaming multiple object as array #38

Open
@stanislavla

Description

@stanislavla

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}
]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions