summaryrefslogtreecommitdiff
path: root/src/freetextsearch-service-wamp/workdir/runRESTClient.sh
blob: 487b8c2c71d63c9b396f59f27f6b1cbed6cd0a8e (plain)
1
2
3
4
5
6
7
8
9
10
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