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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Debunking the Myths of RPC & REST

10 点作者 tysont超过 12 年前

1 comment

MichaelGG超过 12 年前
The article mentions that the only "contract" you have with the client is a GET request to a top-level URI, and from there, everything should be described via some sort of hypertext, and the application can go from there.<p>I just don't understand how that's supposed to work in the context of, say, a server application. In a browser, you have a human to make sense of the hypertext and decide what looks worth clicking on, which forms look like you want to fill out.<p>In an API, I already know, by the fact that I'm writing an application, what I want to do. I want to delete this customer, run a garbage compaction on a repository, search for new records. What's the point of "discovering" these URIs via hypermedia?
评论 #4874133 未加载