News for hackers. Stuff that matters.
Re:Show HN: Stripe-quality API client libraries with a singl... by ezekg on Monday September 12, 2022 @04:51PM (#32816772)
Seems to only work for APIs with an OpenAPI spec. Anybody know of a service that can generate an OpenAPI spec for an API that doesn't have one? And keep it up to date. :)
Re:Show HN: Stripe-quality API client libraries with a singl... by ndimares on Tuesday September 13, 2022 @08:01PM (#32831675)
We built something like this. SDK you can drop into your API code, then we generate an OpenAPI spec based off of your traffic. Demo here: https://www.loom.com/share/c5b242d25de84e1d95b03fd35eab7099
Re:Show HN: Stripe-quality API client libraries with a singl... by kurtbuilds on Tuesday September 13, 2022 @10:49AM (#32824982)
Are there APIs you have in mind?

One tool we have under development is a tool (might end up being a chrome extension) that will analyze web requests to turn them into a spec.

There are a few tools that are similar in purpose, though I've only seen ones based on proxying, rather than chrome's network request recording.

- https://github.com/alufers/mitmproxy2swagger

- https://github.com/adafruit/openapi-mitm

Re:Show HN: Stripe-quality API client libraries with a singl... by bryan_cooper on Monday September 12, 2022 @06:15PM (#32817800)
Swagger does a good job of this with a little help from decorators in Typescript