3 ms·
I wonder if there is a format for API -> client automation that can be good enough, in the end Stripe have a rest API, with enough description it should be poss
by andy_ppp 4y ago
I wonder if there is a format for API -> client automation that can be good enough, in the end Stripe have a rest API, with enough description it should be possible.
Okay so after a quick google it appears Microsoft are the "Simpsons already done it" of the programming world: https://github.com/Azure/autorest/ https://github.com/Azure/autorest/
It'd probably be a good idea to add an Elixir backend for that and point it at the Stripe's API here: https://github.com/stripe/openapi https://github.com/stripe/openapi
- AlchemistCamp 4y agoInteresting... I've spent a fair amount of time looking at Stripe docs while working on various projects over the years and never seen the openapi link before! Purely in terms of seeing what structs are used in what what on what endpoints, the docs are fine. It's really when it comes to guides that it falls over since they invariably lean on language-specific API clients. This makes it easy to miss how headers are constructed, the required security-related details for webhooks, etc.