![Building RESTful Web Services with .NET Core](https://wfqqreader-1252317822.image.myqcloud.com/cover/827/36699827/b_36699827.jpg)
上QQ阅读APP看书,第一时间看更新
REST constraints
REST is defined by six constraints, as shown in the following diagram. One of them is optional:
![](https://epubservercos.yuewen.com/40A1A0/19470392901563306/epubprivate/OEBPS/Images/Chapter_181.jpg?sign=1739140746-attlHZzJ4qDYetwromJ23pUYGwxs2HHS-0-9f53329eda51c3acbdbf865ee5608246)
Each of these constraints enforce a design decision for the service that is to be followed. If it is not followed, the service can't be denoted as RESTful. Let's discuss these constraints one by one.