From a96bf1de94457b8bd94ecffee65c1d9928fbbe9f Mon Sep 17 00:00:00 2001 From: Alex Ellis Date: Fri, 23 Feb 2018 08:22:57 +0000 Subject: [PATCH] Update README.md --- sample-functions/SentimentAnalysis/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sample-functions/SentimentAnalysis/README.md b/sample-functions/SentimentAnalysis/README.md index a405b90a..6d52b627 100644 --- a/sample-functions/SentimentAnalysis/README.md +++ b/sample-functions/SentimentAnalysis/README.md @@ -7,7 +7,7 @@ Example: Run in the function: ``` -# curl -s --fail localhost:8080/system/functions -d \ +# curl -s http://localhost:8080/function/sentimentanalysis --data-binary \ '{ "service": "sentimentanalysis", "image": "functions/sentimentanalysis", @@ -19,12 +19,12 @@ Run in the function: Now test the function: ``` -# curl localhost:8080/function/sentimentanalysis -d "Personally I like functions to do one thing and only one thing well, it makes them more readable." +# curl http://localhost:8080/function/sentimentanalysis -d "Personally I like functions to do one thing and only one thing well, it makes them more readable." Polarity: 0.166666666667 Subjectivity: 0.6 -# curl localhost:8080/function/sentimentanalysis -d "Functions are great and proven to be awesome" +# curl http://localhost:8080/function/sentimentanalysis -d "Functions are great and proven to be awesome" Polarity: 0.9 Subjectivity: 0.875 -# curl localhost:8080/function/sentimentanalysis -d "The hotel was clean, but the area was terrible"; echo +# curl http://localhost:8080/function/sentimentanalysis -d "The hotel was clean, but the area was terrible"; echo Polarity: -0.316666666667 Subjectivity: 0.85 ```