Skip to content

Commit

Permalink
Update README.md to call handler API method
Browse files Browse the repository at this point in the history
  • Loading branch information
tillrohrmann authored Aug 14, 2023
1 parent e43db5f commit d3accbe
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,13 @@ curl -X POST http://localhost:8081/endpoints -H 'content-type: application/json'

### Call the Service

We can now invoke the `SampleCall` method by executing:
We can now invoke the sample method by executing:

```shell
curl -X POST http://localhost:9090/myservice/hello -H 'content-type: application/json' -d '{"request": "Pete"}'
```

For the gRPC-based template, use the following command instead:

```shell
curl -X POST http://localhost:9090/org.example.ExampleService/SampleCall -H 'content-type: application/json' -d '{"request": "Pete"}'
Expand Down

0 comments on commit d3accbe

Please sign in to comment.