是否有一个 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/