Rest api for stream