diff options
Diffstat (limited to 'src/freetextsearch-service-wamp/workdir/runRESTClient.sh')
-rwxr-xr-x | src/freetextsearch-service-wamp/workdir/runRESTClient.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/freetextsearch-service-wamp/workdir/runRESTClient.sh b/src/freetextsearch-service-wamp/workdir/runRESTClient.sh new file mode 100755 index 0000000..487b8c2 --- /dev/null +++ b/src/freetextsearch-service-wamp/workdir/runRESTClient.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +# NOTE: the first argument (here: 7) is the client id for the communication +# the second and third argument are the actual arguments for the add2() method +# the return value will be another struct containing the sum and the difference of the add2 arguments + +curl -H "Content-Type: application/json" \ + -d '{"procedure": "local:org.genivi.navigation.freetextsearchservice:v0_7:org.genivi.navigation.freetextsearchservice.add2", "args": [7, 33, 22]}' \ + http://127.0.0.1:8080/call + +echo |