From d3accbed6a51144c5325ae23b1f185337c1ff158 Mon Sep 17 00:00:00 2001 From: Till Rohrmann Date: Mon, 14 Aug 2023 22:20:13 +0200 Subject: [PATCH] Update README.md to call handler API method --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a8a44e2..0c20a84 100644 --- a/README.md +++ b/README.md @@ -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"}'