matyama / bitcli

Simple CLI tool for URL shortening via Bitly
Apache License 2.0
0 stars 0 forks source link

Generate API client from Bitly OptenAPI specification #6

Open matyama opened 4 months ago

matyama commented 4 months ago

Bitly has an OpenAPI specification for its API - it'd probably be better (easier, more maintainable) to automatically generate the API client via a generator.

Some generators (in Rust) that come to mind:

One drawback is that the generated modes will (probably) all be fully heap allocated (or at least the generic openapi-generator does so). Although at least for the shorten command this is not strictly necessary, it probably won't be a big deal as the app is mostly I/O bound anyways.

matyama commented 4 months ago

After few brief experiments:

So this works is currently postponed (integrating the generic openapi-generator does not seem as the best choice), till required features land.