Introduction to APIs - RESTful APIs

REST stands for Representational State Transfer.

Here is a short summary of the REST principles:

  • Uniform Interface: Every rest architecture must have a standardized way of accessing and processing data resources. This includes unique resource identifiers (i.e., unique URLs) and self-descriptive messages in the server response that describe how to process the representation (for instance JSON vs XML) of the data resource.
  • Stateless: Every client request is self-contained in that the server doesn’t need to store any application data in order to respond to subsequent requests.
  • Client-Server: There must be both a client and server in the architecture.
  • Cacheable & Layered System: Caching and layering increases networking efficiency.

Why RESTful are stateless?
It might appear easier to design a server that isn’t stateless. There is a reason why RESTful web servers are not allowed to remember anything about the previous requests that the user has sent. In short, stateless servers make your applications scalable.


What exactly is RESTful programming?

Best practices for REST API design

  • 3
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值