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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Examples for badly designed (web) APIs

2 点作者 tonyjstark将近 6 年前
For a workshop I want to give some negative examples of badly designed APIs so that groups can work out the negative parts and how to improve them, anyone has some examples?

1 comment

gick将近 6 年前
I am not sure if its fit in the &quot;bad design&quot; category you look for but OpenStreetMap API has various usability problems.<p><a href="https:&#x2F;&#x2F;wiki.openstreetmap.org&#x2F;wiki&#x2F;API_v0.6" rel="nofollow">https:&#x2F;&#x2F;wiki.openstreetmap.org&#x2F;wiki&#x2F;API_v0.6</a><p>The main issue has I see it is that all API functions accepts only XML as content-type. There is no way to use JSON, which is rather standard by now. Even GET serves only XML.<p>Another issue is that the error messages for non-conform requests are not informative enough. This is emphasize in the doc (&quot;unfortunately error messages are not consistent&quot;).<p>Finally, in my opinion, the doc do not provide simple and clear overview of the API.
评论 #20189900 未加载