loopbackio / loopback4-example-kafka

A LoopBack 4 example application for Kafka integration
MIT License
11 stars 4 forks source link

fix: consume messages on a given topic #1

Closed dhmlau closed 5 years ago

dhmlau commented 5 years ago

Following the instruction in the README, it complains about the GET endpoint for /topics/{topic}/messages doesn't exist. This PR adds the implementation of this endpoint.

@raymondfeng, one thing I'm not sure is that whether I should be creating a new client everytime. But then the existing function to create client requires a groupID. Thanks.