REST API support for stream definitions