Sentiment Service
Exposes a sentiment analysis service.
Getting started
$ ruby app.rbUsage
uri = URI.parse("http://sentiment.cloud66.local:5000")
http = Net::HTTP.new(uri.host, uri.port)
header = {'Content-Type': 'text/json'}
request = Net::HTTP::Post.new(uri.request_uri, header)
request.body = "Hello world!".to_json
response = http.request(request)
response.body
# => "0.6222233866815465"Health
This service exposes a health endpoint at GET /health. It will return a 200 when it's ready and healthy.