Why shouldn't data be modified on an HTTP GET request?

后端 未结 7 871
暗喜
暗喜 2020-11-27 05:36

I know that using non-GET methods (POST, PUT, DELETE) to modify server data is The Right Way to do things. I can find multiple resources claiming that GET requests should no

7条回答
  •  日久生厌
    2020-11-27 05:45

    I'm kind of looking for more than just "it doesn't make sense semantically" or "it makes things ambiguous."

    ...

    I don't care what The Right Way to do things is, it's easier for us

    Tell them to think of the worst API they've ever used. Can they not imagine how that was caused by a quick hack that got extended?

    It will be easier (and cheaper) in 2 months if you start with something that makes sense semantically. We call it the "Right Way" because it makes things easier, not because we want to torture you.

提交回复
热议问题