Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PUT to a column family should truncate it and replace the content #1

Open
boneill42 opened this issue Feb 7, 2012 · 0 comments
Open

Comments

@boneill42
Copy link
Contributor

This may be embracing REST semantics too much, but a PUT is technically supposed to replace the content of the resource at the URL with the content in the request.

For CFs, this would mean truncating the CF and then doing the same sort of thing as PATCH on the CF (described in the other issue I just posted).

The net effect of both issues would then be:

A PUT with no data on a CF ensures it exists and is empty.
A PUT with data on a CF replaces the content with the content of the request.
A PATCH with no data on a CF ensures it exists (but will not truncate it).
A PATCH with data on a CF works as described in my other issue.

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

No branches or pull requests

1 participant