REST - What exactly is meant by Uniform Interface?

前端 未结 4 1489
无人共我
无人共我 2021-01-30 02:34

Wikipedia has:

Uniform interface

The uniform interface constraint is fundamental to the design of any REST service.[14] The uniform i

4条回答
  •  礼貌的吻别
    2021-01-30 02:59

    Ok I think I understand what it means.

    From Fieldings dissertation:

    The central feature that distinguishes the REST architectural style from other network-based styles is its emphasis on a uniform interface between components (Figure 5-6). By applying the software engineering principle of generality to the component interface, the overall system architecture is simplified and the visibility of interactions is improved.

    He's saying that the interface between components must be the same. Ie. between client and server and any intermediaries, all of which are components.

提交回复
热议问题