Yes REST could definitely be used for this type of application.
However, be careful with the word transaction. If you mean transaction as in a "database transaction that can be automatically rolled back" then it is important to realize that those transactions should sit behind the REST interface.
If by transaction you mean "a series of steps that a user can choose to complete or cancel" then yes, REST can model those transactions as additional resources.
发布评论
评论(3)
是的,休息肯定会让你受益。
我认为您应该查看 Alexandros Marinos 的这篇文档 http:// docs.google.com/View?id=ddffwdq5_2csz22wfd&pageview=1&hgd=1,他详细解释了如何使用 RESTful 事务。
Yes REST would definitely benefit you.
I think you should check this doc by Alexandros Marinos http://docs.google.com/View?id=ddffwdq5_2csz22wfd&pageview=1&hgd=1, he explains in details of using RESTful transaction.
我问了一个关于 REST 的问题几天前,我们收到了极好的反馈。也许其中一些对你也有好处。
I asked a question on REST a few days ago that yielded excellent feedback. Maybe some of it benefits you as well.
是的,REST 绝对可以用于此类应用程序。
然而,要小心“交易”这个词。如果您指的是“可以自动回滚的数据库事务”中的事务,那么重要的是要认识到这些事务应该位于 REST 接口后面。
如果您所说的事务是指“用户可以选择完成或取消的一系列步骤”,那么是的,REST 可以将这些事务建模为附加资源。
Yes REST could definitely be used for this type of application.
However, be careful with the word transaction. If you mean transaction as in a "database transaction that can be automatically rolled back" then it is important to realize that those transactions should sit behind the REST interface.
If by transaction you mean "a series of steps that a user can choose to complete or cancel" then yes, REST can model those transactions as additional resources.