更多操作
(创建页面,内容为“Web API 是用于 网络服务器 或 网络浏览器 的应用程序编程接口(API)。作为 Web 开发 中的一个概念,它可以与 Web 应用程序的客户端相关联(包括正在使用的任何 Web 框架)。服务器端 Web API 由一个或多个公开的端点组成,用于定义请求-响应消息系统,通常通过基于 HTTP 的 Web 服务器以 JSON 或 XML 的形式表达。除非通过远程 Web 应用程序公开访问,否…”) |
(→设计规范) |
||
第7行: | 第7行: | ||
=== Restful === | === Restful === | ||
* JSON:API | |||
* OData | |||
* HAL | |||
* ...... | |||
=== RPC-like === | === RPC-like === | ||
* | |||
参见:[https://www.smashingmagazine.com/2016/09/understanding-rest-and-rpc-for-http-apis/ Understanding RPC Vs REST For HTTP APIs]、https://aws.amazon.com/cn/compare/the-difference-between-rpc-and-rest/ | 参见:[https://www.smashingmagazine.com/2016/09/understanding-rest-and-rpc-for-http-apis/ Understanding RPC Vs REST For HTTP APIs]、https://aws.amazon.com/cn/compare/the-difference-between-rpc-and-rest/ |
2024年4月30日 (二) 19:43的最新版本
Web API 是用于 网络服务器 或 网络浏览器 的应用程序编程接口(API)。作为 Web 开发 中的一个概念,它可以与 Web 应用程序的客户端相关联(包括正在使用的任何 Web 框架)。服务器端 Web API 由一个或多个公开的端点组成,用于定义请求-响应消息系统,通常通过基于 HTTP 的 Web 服务器以 JSON 或 XML 的形式表达。除非通过远程 Web 应用程序公开访问,否则不认为服务器 API(SAPI)是服务器端 Web API。[1]
设计规范
包括但不限于下面两种:
Restful
- JSON:API
- OData
- HAL
- ......
RPC-like
参见:Understanding RPC Vs REST For HTTP APIs、https://aws.amazon.com/cn/compare/the-difference-between-rpc-and-rest/