我最近读到了这篇discussion at SO,其中有人评论说,并不是所有的应用程序都适合基于REST的架构。
Here what I mean by "REST based architecture" is the whole thing with RESTful apis + HATEOAS. Most of the examples on web refer to the "coffee shop" example and they highlight the Hateoas part through the workflowy bit of creating an order --> update/confirm --> pay --> take delivery. So is REST most suitable for apps that has a prominent state-transition in them, or is it equally suited for other kinds of apps, where probably we should think more in terms of state transitions to have REST working for us发布于 2012-06-18 20:02:53
REST同样适用于其他类型的应用程序,在这些应用程序中,我们应该更多地考虑状态转换。对于如何实现这一点,Constructing the User Interface with Statecharts是一个很好的指南(如果你能以合理的价格获得一份副本)。当你阅读它的时候,只要确保你将“用户界面”替换为普通的旧“界面”即可。
https://stackoverflow.com/questions/11082040
复制相似问题