apache / pinot

Apache Pinot - A realtime distributed OLAP datastore
https://pinot.apache.org/
Apache License 2.0
5.35k stars 1.25k forks source link

Generate cli for Pinot REST Api #5590

Open kishoreg opened 4 years ago

kishoreg commented 4 years ago

Having a pinot-rest-cli based on swagger endpoints will be useful. we can eliminate some commands from pinot-admin.sh

kishoreg commented 4 years ago

https://github.com/swagger-api/swagger-codegen

jgutmann commented 4 years ago

Hi @kishoreg, do you have some commands or operations in mind which you would like to see prioritized for this?

spaghettifunk commented 3 years ago

I think it would be nice to be able to generate the client once a release is cut. In this way both client and server have the same version. You could use Github Actions to do automate the generation. For example, it is sufficient to do swagger generate client -f ./path/to//swagger.json -a kind -A pinot-sdk and you have it available. Does it make sense? Maybe the default generated client is the Java one. While, for other languages the community can maintain themselves by still leveraging swagger-codegen or similar.

davizucon commented 5 months ago

Hello guys, I made some progress on that, fixing some minor swagger issues also, news soon. :)