▲ | Show HN: A Schema-First, Post Only Alternative to Restful API(yizy.rootxsnowstudio.com) | |
1 points by whkelvin 12 hours ago | ||
Hello HN, I am a fan of schema-first API design. I’ve always built APIs by writing Open API Spec by hand and generating server models and client SDKs to get E2E type safety across my server and clients. Writing the spec by hand is a painful process, and setting up CI/CD pipelines or CLIs to run code generation can be time-consuming. So I decided to build a POST request-based, RPC-like, non-Restful API format that treats schema-first design as the first class citizen. My vision is a web app that allows a team of developers to write API spec in the browser with automatic version control. The app would re-generate code every time there is a change in the spec right in the browser for developers to copy and paste into their editor instantly. It will also provide a way to publish the generated code to some package registry for installations. I’ve built a POC to showcase editing the spec and generating code in the browser, and I’d love to invite you all to try it out and leave your feedback! |