Agile generation of Cloud API bindings with Haskell
summary
A data pipeline scrapes API docs with a Python scraper into CSV, then Haskell parses, validates, infers JSON types with jsonite autotype, aggregates issues with a Writer monad and generates retargetable SDK bindings. It processes ~5,000–6,000 endpoints, produces 1,000+ API calls in months and targets weekly binding generation, while skipping custom transports (TransferWise, some AWS cases). Examples: Backblaze ~30 endpoints, Office ~1,400; outcome is smaller maintenance surface and far better error visibility.
AI-written summary · about
chapters (16)
- 0:00Intro
- 1:24PROBLEM
- 4:19GOALS
- 6:06SOLUTION Code generation of API SOK bindings
- 10:25ISSUES (3)
- 13:03IMPLEMENTATION
- 14:34LIMITATIONS
- 15:56BENEFITS
- 18:10RUNNING EXAMPLE
- 19:42PARSING INTERFACE MAY FAIL
- 20:59PARSING INTERFACE WITH ERROR HANDLING
- 22:04PARSING INTERFACE FOR LARGE DATASETS
- 23:39FINDING ERRORS
- 24:47PARSING INTERFACE FOR LARGER DATASETS
- 31:46ADDING PATH TO ERROR FAILURE
- 37:29PRINCIPLES
