REST
A software architectural style based on HTTP that is resource-centric and uses standard HTTP methods (GET/POST/PUT/DELETE) to operate on resources. It is the most widely used design paradigm for web APIs.
Core Facts
RESTful API uses URLs to represent resources, HTTP methods to represent operations (GET for query, POST for creation, PUT for update, DELETE for deletion), and HTTP status codes to represent results.
The REST architectural style was first proposed by Roy Fielding in his doctoral dissertation in 2000
In a REST API, GET is used to read a resource from the server and carries no request body, while POST is used to submit data to the server with the data placed in the request body.
Timeline (last 90 days)
Shopify's Admin API provides both REST and GraphQL interfaces; GraphQL allows clients to precisely specify the required fields in a single request, avoiding over-fetching of data.
At the interface level, REST is universally easy to debug, while gRPC is more efficient in high-throughput, strongly typed scenarios.
The core difference between REST and RPC lies in the perspective of abstraction: REST is resource-centric, using URLs to identify resources and HTTP methods to express operations; RPC is procedure-centric, using method names to express behavior.
REST emphasizes idempotency: GET, PUT and DELETE are idempotent, with repeated execution having the same effect as a single execution; POST is usually non-idempotent, and repeated submissions may create multiple records.
In REST style, different operations on the same resource are distinguished by request method: use POST to add, GET to retrieve all, GET plus an ID to retrieve a single one, PUT or PATCH plus an ID to modify, and DELETE plus an ID to delete.
OneMemory is a single-user, self-hosted shared memory server for AI agents that exposes both MCP and REST interfaces.
HATEOAS is a style of REST architecture in which, in addition to business data, API responses also carry links pointing to related operations (such as _links, href, next, etc.).
HTTP GET requests are naturally idempotent, and multiple identical requests produce the same backend state as a single one; POST, by REST convention, is non-idempotent, with each request expected to create a new entity.
Stacking abstraction layers is a common pattern in software engineering: HTTP sits on top of TCP, REST sits on top of HTTP, and various SDKs sit on top of REST, with each layer not eliminating the layer below.
The API world suffers from fragmentation: different styles such as REST, GraphQL, and gRPC, and each vendor's naming conventions, authentication methods, and error code definitions all differ, which is extremely inefficient for AI models.
23 more timeline events
All Facts (20)
RESTful API uses URLs to represent resources, HTTP methods to represent operations (GET for query, POST for creation, PUT for update, DELETE for deletion), and HTTP status codes to represent results.
90%VerifiedThe REST architectural style was first proposed by Roy Fielding in his doctoral dissertation in 2000
80%VerifiedIn a REST API, GET is used to read a resource from the server and carries no request body, while POST is used to submit data to the server with the data placed in the request body.
65%VerifiedThere are two mainstream API interface specifications: REST and RPC, with REST being dominant and RPC holding a smaller market share.
65%VerifiedREST (Representational State Transfer) is a software architectural style proposed by Roy Fielding in his doctoral dissertation in 2000.
65%VerifiedREST is an architectural style proposed by Roy Fielding in his 2000 doctoral dissertation 'Architectural Styles and the Design of Network-based Software Architectures'.
65%UnverifiedOneMemory is a single-user, self-hosted shared memory server for AI agents that exposes both MCP and REST interfaces.
60%UnverifiedREST的六大约束条件包括:客户端-服务器分离、无状态性、可缓存性、统一接口、分层系统和按需代码(可选)
60%UnverifiedShopify's Admin API provides both REST and GraphQL interfaces; GraphQL allows clients to precisely specify the required fields in a single request, avoiding over-fetching of data.
50%UnverifiedAt the interface level, REST is universally easy to debug, while gRPC is more efficient in high-throughput, strongly typed scenarios.
50%UnverifiedIn REST style, different operations on the same resource are distinguished by request method: use POST to add, GET to retrieve all, GET plus an ID to retrieve a single one, PUT or PATCH plus an ID to modify, and DELETE plus an ID to delete.
50%UnverifiedThe core difference between REST and RPC lies in the perspective of abstraction: REST is resource-centric, using URLs to identify resources and HTTP methods to express operations; RPC is procedure-centric, using method names to express behavior.
50%UnverifiedREST emphasizes idempotency: GET, PUT and DELETE are idempotent, with repeated execution having the same effect as a single execution; POST is usually non-idempotent, and repeated submissions may create multiple records.
50%UnverifiedHATEOAS is a style of REST architecture in which, in addition to business data, API responses also carry links pointing to related operations (such as _links, href, next, etc.).
50%UnverifiedHTTP GET requests are naturally idempotent, and multiple identical requests produce the same backend state as a single one; POST, by REST convention, is non-idempotent, with each request expected to create a new entity.
50%UnverifiedStacking abstraction layers is a common pattern in software engineering: HTTP sits on top of TCP, REST sits on top of HTTP, and various SDKs sit on top of REST, with each layer not eliminating the layer below.
50%UnverifiedThe API world suffers from fragmentation: different styles such as REST, GraphQL, and gRPC, and each vendor's naming conventions, authentication methods, and error code definitions all differ, which is extremely inefficient for AI models.
50%UnverifiedElevenLabs' API uses a REST + JSON structure and is compatible with browser-side fetch calls.
50%UnverifiedCapabilities that need to be dynamically discovered by AI or triggered by natural-language-described intent are suitable for exposure via MCP; fixed machine-to-machine calls between systems and scenarios with strict requirements on latency or throughput should go directly through traditional APIs such as REST or gRPC.
50%UnverifiedFor a single, simple, one-off integration requirement, writing a REST interface directly may be more lightweight than adopting MCP.
50%