Skip to content

Commit

Permalink
Merge commit '37cd40f37662434df5e20a0c99ca96d51543ed80'
Browse files Browse the repository at this point in the history
  • Loading branch information
slinkydeveloper committed Sep 22, 2023
2 parents 537c254 + 37cd40f commit f39ef15
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions sdk-core/src/main/proto/dev/restate/services.proto
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,17 @@ service Ingress {
message InvokeRequest {
// Fully qualified name of the service, e.g. `counter.Counter`
string service = 1;

// Method name of the service to invoke, e.g. `Add`
string method = 2;

// Argument of the invocation.
// When executing requests to the ingress using Protobuf,
// this field must contain the serialized Protobuf matching the argument type of the target method.
// When executing requests to the ingress using JSON,
// this field must contain the JSON object representing the argument type of the target method.
bytes argument = 3;
// You can pass the invocation argument either as protobuf or as JSON.
// In case of JSON, the argument will be automatically transcoded to protobuf before sending it to the target service.
oneof argument {
bytes pb = 3;
google.protobuf.Struct json = 4 [json_name = "argument"];
}
}

message InvokeResponse {
Expand Down

0 comments on commit f39ef15

Please sign in to comment.