gpt4 book ai didi

休息而不放

转载 作者:行者123 更新时间:2023-12-04 12:07:28 26 4
gpt4 key购买 nike

关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。












想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。

6年前关闭。




Improve this question




ThoughtWorks Technology Radar July 2014在“技术/试用”下提到了一种名为 REST without PUT 的新趋势.他们将其解释为:

In the last radar we talked about Capturing Explicit Domain Events, putting emphasis on recording the business-meaningful events that have triggered state transitions instead of just CRUD’ing entities. REST interfaces commonly use PUT to update resource state, however it’s often better to POST to record a new event resource which captures intent. REST without PUT has a side-benefit of separating command and query interfaces and forces consumers to allow for eventual consistency.



是否有任何其他资源可以阅读此内容?是术语 REST without PUT一个由 ThoughtWorks 提出的想法,或者这是学术性的,还是……?

这有什么提示吗?

最佳答案

恕我直言,他们说的是应该停止关注 CRUD 操作并专注于状态转换。然后将一组转换映射到特定事件。其中之一用于更新实体。它将如何更新以及将更新什么取决于事件的上下文。一种需要 POST 更新事件而不是 PUT 更新。

顺便说一句,解决了在 REST 中使用纯 HTML 的一个问题——HTML 不允许在没有 JavaScript 的情况下触发 PUT 或 DELETE。

关于休息而不放,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26625671/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com