placeholder

Lessons from building an automated SDK pipeline

During Developer Week 2024, we announced the revamped SDKs that are automatically generated using our OpenAPI schemas. Today, we’re taking a deeper look at how the pipeline works and share lessons we’ve learned along the way.

Click to view the original at blog.cloudflare.com

Hasnain says:

“Depending on the age of your APIs, you will have a diverging history of how they are represented to customers. That may be as simple as path parameters being inconsistent or perhaps something more complex like different HTTP methods for updates. While you can handle these individually at any sort of scale, that just isn’t feasible. As of this post, Cloudflare offers roughly 1,300 publicly documented endpoints, and we needed a more automatable solution. For us, that was codemods. Codemods are a way of applying transformations to perform large scale refactoring of your codebase. This allows you to programmatically rewrite expressions, syntax or other parts of your code without having to manually go through every file. Think of it like find and replace, but on steroids and with more context of the underlying language constructs.”

Posted on 2024-05-08T05:18:36+0000