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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Web analytics with API only approach

33 点作者 petrohi超过 13 年前

1 comment

pwim超过 13 年前
Your API is pretty strange. Some initial things that pop out on me:<p>json=true to specify the content type. Ideally, this should be from the accept header, but at the very least it should be possible to only specify one content type. Right now, I can specify json=true&#38;xml=true.<p>Only using GET.<p>Session management on the client. Why would I want to log someone out?<p>Not using meaningful keys. s and t? Why not status and token?<p>HTTP codes should be used instead of status codes.
评论 #3611319 未加载
评论 #3611320 未加载
评论 #3611364 未加载