Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

REST Endpoints Sample

This sample demonstrates how to use the EndpointSink and EndpointSource operators to send and receive data in a Streams application by REST requests.

The demo application is a simple calculator that ingests two numbers and returns the result of adding the 2 numbers. The data is received via the EndpointSource operator and the result is sent to the EndpointSink operator.

See this tutorial for more information about this sample and how to run it.

Contents

  • sample/BasicCalculator.spl: This application is the calculator without any REST endpoints. You can follow the tutorial to see how to modify it to enable REST.

  • sample/CalculatorRESTService.spl: This is the completed application with REST endpoints.

  • sample_client.ipynb - Python notebook to use to connect to the Streams application once it is running.