![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=1738854535-Vs8FNjzvrG9def4VvGe6VhvxkRnjlaPY-0-538f988e926404e7835596aa4488a58c)
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.