Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
slinkydeveloper committed Apr 14, 2023
1 parent d7ae436 commit 8d0ab58
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,16 @@ This assumes that the runtime is running on `localhost:8081`.

### Invoking a Restate service

After registering a service you can invoke a service via gRPC:
After registering a service you can invoke a service via [grpcurl](https://github.com/fullstorydev/grpcurl):

```shell
grpcurl -protoset <DESCRIPTOR_SET_OF_SERVICE> -plaintext -d '{"counter_name": "foobar", "value": 10}' localhost:9090 counter.Counter/GetAndAdd
grpcurl -plaintext -d '{"counter_name": "foobar", "value": 10}' localhost:9090 counter.Counter/GetAndAdd
```

or using [grpcui](https://github.com/fullstorydev/grpcui):

```shell
grpcui -plaintext localhost:9090
```

or via HTTP/JSON that gets transcoded to gRPC:
Expand Down

0 comments on commit 8d0ab58

Please sign in to comment.