Skip to content
This repository has been archived by the owner on Jun 22, 2022. It is now read-only.

conditional create、update、delete 方法不一致的问题 #51

Open
wanghaisheng opened this issue Jun 8, 2015 · 1 comment
Open

Comments

@wanghaisheng
Copy link
Owner

hi, also why search params for conditional operations are passed in header for create and in query params for update and delete ? Why it's not consistent ?

@wanghaisheng
Copy link
Owner Author

[15/6/8 下午10:55:42] James Agnew: I raised this as a concern on the list back when I implemented the new transactions, and this was Grahame's response:
[15/6/8 下午10:55:46] James Agnew: "well, we couldn't do the conditional post as a URL - it violates the letter and spirit of HTTP. It would pretty much be, see this URL: post to anything but this. That's a pretty big violation.
We could have done the other two the same way, but it really did seem much more convenient and natural to do them as PUT/DELETE to a URL. If people think that consistency is better than simplicity, and prefer to have a custom header instead, I wouldn't really object "
[15/6/8 下午10:56:20] James Agnew: I figured I'd wait to see if others felt the same way before thinking about it again

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant