![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=1738883141-K49GGAD7L08ZQlsDWDExMuxFKxHIXZQ7-0-97df50146a8de6befe0360ebd8ab3978)
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.