rest - 什么是 REST API 的组件?

标签 rest api terminology

是否有一个 API 的名称?

例如,假设我有一个提供四种服务的 API:

getCustomerInfo
setCustomerInfo
getProductInfo
setProductInfo

然后说,我想告诉一个同事:

The API is going to need a fifth webhook?



我知道这是对 webhook 一词的错误使用。

什么是正确的术语?
谢谢!

更新:这可能是重复的。 krishna kanth 的回答在这里:What is an Endpoint?是:

The term Endpoint was initially used for WCF services. Later even though this word is being used synonymous to API resources, REST recommends to call these URI (URI[s] which understand HTTP verbs and follow REST architecture) as "Resource".

In a nutshell, a Resource or Endpoint is kind of an entry point to a remotely hosted application which lets the users to communicate to it via HTTP protocol.

最佳答案

我认为你要找的词是资源。我还认为获取和设置将组合在单个资源下,对该资源的 HTTP 调用将定义您是 GET 还是 PUT(使用 HTTP 在 REST 中设置)。

关于rest - 什么是 REST API 的组件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45986506/

相关文章:

rest - 请求实体中断开的链接的适当响应是什么?

java - Jersey 测试一直失败,读取实体时找不到 MessageBodyReader?

java - SugarCRM 关系可从活跃的机会中获取联系人

java - In-App Review 调用 Log 但不发起对话

python - 为什么我不能从 Python 发送推文?

cluster-computing - 那么分布式和集群有什么区别呢?

java - 认证和授权 jax-rs 休息服务

javascript - 模拟服务 worker /节点不工作,我不明白为什么

python - 推荐命名法 : a better term than "parent"?

networking - 端口号和协议(protocol)号有什么区别?