TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Do you write a lot of SDKs for your APIs?

1 点作者 aprao超过 2 年前
At work, I find myself writing a Python&#x2F;Go&#x2F;JS SDK for every single internal API that I implement. This might even be more prevalent for public facing APIs since creating&#x2F;maintaining public API SDKs for popular languages are table stakes for usage.<p>- Has this generally been true in your experience as well?<p>- If so, are there any hacks to create these SDKs with support for best practices like pagination, retry, etc + update them them when the API changes?

2 条评论

ndimares超过 2 年前
There is a lot of activity in the space of SDK generators. If you have an OpenAPI schema, you should be able to find tooling that can get you 80% of the way there. Here&#x27;s a small app our team put together a couple weeks ago that you might like: <a href="https:&#x2F;&#x2F;easysdk.xyz&#x2F;" rel="nofollow">https:&#x2F;&#x2F;easysdk.xyz&#x2F;</a><p>We&#x27;ve expanded support for Python and Go since we made this. If you&#x27;re interested in testing out the multi-language version, let me know!<p>Some other solutions: -OpenAPI: <a href="http:&#x2F;&#x2F;github.com&#x2F;openapitools&#x2F;openapi-generator" rel="nofollow">http:&#x2F;&#x2F;github.com&#x2F;openapitools&#x2F;openapi-generator</a> -(language specific) Go SDK: <a href="https:&#x2F;&#x2F;github.com&#x2F;deepmap&#x2F;oapi-codegen" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;deepmap&#x2F;oapi-codegen</a><p>Best of luck with finding a solution that works for your use case!
wing328hk超过 2 年前
One way is to auto-generate SDKs using OpenAPI Generator (<a href="http:&#x2F;&#x2F;github.com&#x2F;openapitools&#x2F;openapi-generator" rel="nofollow">http:&#x2F;&#x2F;github.com&#x2F;openapitools&#x2F;openapi-generator</a>) given an OpenAPI spec.