gpt4 book ai didi

rest - 什么是 REST API 的组件?

转载 作者:行者123 更新时间:2023-12-04 23:38:43 24 4
gpt4 key购买 nike

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

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com