client_golang icon indicating copy to clipboard operation
client_golang copied to clipboard

Generate prom API from Swagger/OpenAPI

Open bwplotka opened this issue 3 years ago • 4 comments

With the work done with @Hangzhi on https://github.com/thanos-io/thanos/issues/4102 I think we could replace current promclient with generated client or remove it completely (v2)

bwplotka avatar Aug 02 '21 11:08 bwplotka

@bwplotka have you had any success with generating relatively idiomatic clients from OpenAPI spec? If so, what tools did you use?

philipgough avatar Sep 02 '21 09:09 philipgough

No. I did not XD but did not try much... this has to be experimented with

bwplotka avatar Apr 29 '22 14:04 bwplotka

@saswatamcode - this may be of interest to you since you have done something similar in https://github.com/observatorium/obsctl/ recently I think :)

philipgough avatar Apr 29 '22 15:04 philipgough

Yes, we have had some success with generating clients using the Observatorium OpenAPI spec. I'd love to combine it with some of the work that is already done upstream (there are some open PRs) and maybe bring it here! 🙂 There are some types that we don't use but are necessary to add for a fully functional client here.

saswatamcode avatar Apr 29 '22 16:04 saswatamcode