Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swagger documentation for Kafka Listener

I have used Swagger to generate a document for rest API, but I am building Kafka listener and wanted to generate a document for it. Do we have any possibility using Swagger or something similar?

Thanks, Manish

like image 705
krmanish007 Avatar asked Feb 22 '18 15:02

krmanish007


1 Answers

I have faced the same need, and decided to create something myself. I call it swagger4kafka, and it works very similar to swagger, but it documents @KafkaListener annotated methods instead of RestController methods.

Its source is hosted in github: swagger4kafka repository In the readme section you can find how to use it.

I would not say it is production ready yet, but I think it can be quite useful for internal use.

like image 144
Stav Shamir Avatar answered Oct 15 '22 07:10

Stav Shamir