知识卡片
Web API以HTTP传输
Web API 是借助 HTTP 传输数据的 API。它利用 URL 标识资源,并可使用 HTTP 方法、请求头等协议能力组织交互。Web API 是 API 的一种;REST、GraphQL 等是可在这一语境中使用的不同技术,不能把 Web API 等同于某一种风格。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
原书出处
参考来源
- 位置:《Microservice APIs》第 1 章《What are microservice APIs?》(源文件:_epub-src/OEBPS/Text/01.htm)
- 结论依据:1.2.2 节直接定义 Web API 使用 HTTP,列出 URL、方法和请求头的作用,并把 SOAP、REST、GraphQL、gRPC 作为不同技术示例。
- 原始内容:A web API is an API that uses the Hypertext Transfer Protocol (HTTP ) protocol to transport data. ... HTTP uses the concept of a Uniform Resource Locator (i.e., URL) to locate resources on the internet, and it has features that can be leveraged by API technologies to enhance the interaction with the server, such as request methods (e.g., GET, POST, PUT) and HTTP headers.