We want a rest endpoint to view the content of the stream.
- stream: the name of the stream
- limit: the number of records to return
- fromGroup: use an existing consumer group to set the initial position
- rewind: once positioned with fromGroup fetch previous records
- fromOffset & partition: set exactly the first offset to retrieve in a particular partition
- timeout: once reached the end of the stream wait for new records up to the timeout
The output will be JSON records in server side events.