obsidiandynamics / kafdrop

Kafka Web UI
Apache License 2.0
5.46k stars 834 forks source link

[Question] How to consumer messages? #257

Closed scheung38 closed 2 years ago

scheung38 commented 3 years ago

after sending a message: curl -X POST https://producer-kafka-sample.cloud.okteto.net -H “Content-Type: application/json” -d ‘{“message”:“foo”}’ how to read from topic from curl, (not from consumer/app.py) consumer> curl -X GET https://kafdrop-kafka-sample.cloud.okteto.net returns the complete HTML instead of JSON? (edited)

OneCricketeer commented 3 years ago

Did you look at the source code?

Seems like GET /topics/:name/allmessages

https://github.com/obsidiandynamics/kafdrop/blob/master/src/main/java/kafdrop/controller/MessageController.java#L88

github-actions[bot] commented 2 years ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 2 years ago

This issue was closed because it has been inactive for 14 days since being marked as stale.