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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: What REST APIs, in your opinion, deserve an award?

7 点作者 myrloc超过 5 年前
What REST APIs, in your opinion, deserve an award for an admirable quality, be it design, documentation, etc.<p>For example, I would given an award for documentation to Stripe&#x27;s API docs (https:&#x2F;&#x2F;stripe.com&#x2F;docs&#x2F;api) due to its simplicity and support for their official SDKs.<p>The more general form of this question is: what are your favorite REST APIs and why?

2 条评论

JoshuaDavid超过 5 年前
Twilio: consistent, well-documented, as simple as needed for the problem space but no simpler. As an example of &quot;as simple as possible but no simpler&quot; and also &quot;well-documented&quot;, see &quot;What the heck is a segment&quot;[1]. Basically, plain SMS messages can be 160 bytes each, and if you want to send more than that, you have to send a multi-segment message, which sends multiple messages with a common header, which the receiver of the message reassembles into what looks like a single message. If you send a message with &gt; 160 chars, or with non-GSM chars, it will &quot;just work&quot; but if you&#x27;re optimizing for cost they still show you which encoding is used &#x2F; how many segments so you can fiddle with that if you need to).<p>[1] <a href="https:&#x2F;&#x2F;www.twilio.com&#x2F;blog&#x2F;2017&#x2F;03&#x2F;what-the-heck-is-a-segment.html" rel="nofollow">https:&#x2F;&#x2F;www.twilio.com&#x2F;blog&#x2F;2017&#x2F;03&#x2F;what-the-heck-is-a-segme...</a>
apotheosis-neko超过 5 年前
I have worked with so maaaany APIs. Could definitely say my least favorite without thinking too hard. Favorite is a bit harder.<p>1. Github. WHY: They keep is consistent across versions and it is easy to work with.<p>2. Hubspot. WHY: Each object is it&#x27;s own endpoint, very clear and concise. Short on mixed objects that should obviously be easily connected.<p>3. Mailchimp. WHY: The actual work that gets done with the API is complex while the API itself is not.<p>Good APIs should be clear, work as stated in the docs, there should never be a case where &quot;logically it should work this way&quot; but it does not.
评论 #21907408 未加载