REST API(Representational State Transfer Application Programming Interface)是一种基于 REST 架构风格的应用程序编程接口,用于在客户端和服务器之间通过 HTTP 协议进行数据交换和通信。它是现代 Web 开发中最常用的接口设计规范之一。
/ˌrɛst ˌeɪ.piː.ˈaɪ/
Many mobile apps use a REST API to fetch data from the server.
许多移动应用使用 REST API 从服务器获取数据。
The development team designed a RESTful API with proper authentication and rate limiting to ensure secure and efficient communication between microservices.
开发团队设计了一个具有适当身份验证和速率限制的 RESTful API,以确保微服务之间安全高效的通信。
REST 由美国计算机科学家 Roy Fielding 在其 2000 年的博士论文中首次提出,全称为 Representational State Transfer(表述性状态转移)。API 则是 Application Programming Interface(应用程序编程接口)的缩写,这个概念从早期计算机科学就已存在。两者结合后,REST API 成为描述遵循 REST 架构约束的 Web 接口的标准术语,随着 Web 2.0 时代的到来而广泛流行。