Our great sponsors
-
Then I started looking at HTTP clients in Clojure and found https://github.com/chbrown/twttr which, frankly, blew my mind. The author defines all the API endpoints in an .edn file which conforms with (I think?) the Ring protocol for requests. These are consumed and each is intern'd to generate functions based on the API endpoints path. For example, /v1/tweet/something/dumb becomes tweet-something-dumb. These intern'd functions wrap a generalized function that preps the necessary fields and calls an aleph.http request function.
-
Check out https://github.com/cognitect-labs/aws-api which works in a similar way :)
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
Yes, this is the kind of stuff that I dig too. Ian Barber did this in 2013 with his wrapper for the Google API. The cool thing is that instead of hard-coding the API in a configuration file, he generated that too via Google's discovery API (which returns the API catalog). I don't know if he was the first to do that, but that's the earliest instance I can remember. That library was and remains obscure (a mere 25 stars as of this day), which always kind of bummed me out, but the same could be said at the time for Clojure itself.
-
openapi-generator
OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
Related posts
- OpenAPI Generator v7.3.0 has new generators for Rust, Kotlin, Scala and Java
- Stop creating HTTP clients manually - Part I
- Building a world-class suite of SDKs is easy with Speakeasy
- Sharing EF data access project DLL vs NuGet vs ?
- OpenAPI Generator v7.0.1 released with some enhancements in the PowerShell client generator