Combined RESTAPI and Streaming into one