Thứ Tư, 8 tháng 7, 2015

REST là gì?

REST  là viết tắt của Representation State Transfer.
REST là một architecture style for designing networked applications được xây dựng dựa trên:
     + Stateless protocol.
     + Server-client protocol.
     + Cacheable communications protocol.
Hầu hết trong các trường hợp với REST,  HTTP protocol được sử dụng.

RESTful applications sử dụng các HTTP operations (POST, GET, PUT, DELETE) để post, update, read và delete data.

Note:
Stateless protocol là communication protocol:
+ Mỗi request được xử lý một cách độc lập với nhau.
+ Communication bao gồm cặp request và response.
+ Stateless protocol không yêu cầu server lưu trữ toàn bộ các communication (request + response)

Không có nhận xét nào:

Đăng nhận xét