Software engineering --- Restful style of learning

 Highly recommended article: https://zhuanlan.zhihu.com/p/30396391?group_id=937244108725641216 (recommended)

summarize:

RestFul is Representational State Transfer expression state transition.

restFul is the information we need can access resources through a remote interface to api, and then use some form for delivery, which means that we only need to access one interface can get our resources.

restful most important thing is to write to the interface.

Meaning the interface must be able to able to understand the ah, or through interface calls, do not know the meaning of the interface, it is also to play Han.

Write interface has four level

level 0 - oriented front desk

level 1-- resource-oriented (face entity)

level 2 - the label facing (delet \ get \ post our way through the http request can represent our action a)

level 2 - incidental services (I just want to get information on 123 users, json just 123 incoming information, but also incoming data api other operations, such as how to delete)

General corporate level2 do it.

api service can be carried out as an interactive micro-docking services, and can reduce the size of the version of the service, to reduce the coupling of the internal implementation details of consumer services.

Guess you like

Origin www.cnblogs.com/fc520/p/11959266.html