bluzi / jsonstore

:rocket: jsonstore offers a free and secured JSON-based cloud datastore for small projects | Inactive
https://www.jsonstore.io/
MIT License
2.03k stars 74 forks source link

Support JSON Patch #31

Closed n1k0 closed 6 years ago

n1k0 commented 6 years ago

http://jsonpatch.com/

The idea is to avoid retrieving the entire JSON content of a database to alter a single value and resubmit the entire modified content. So better perfs & concurrency.

bluzi commented 6 years ago

I like the overall idea, but unless I'm missing something here, I'm not sure it's providing something that we're not already providing.

I mean, the equivalent of { "op": "replace", "path": "/baz", "value": "boo" } in jsonstore would be sending a PUT request to https://www.jsonstore.io/[token]/baz and providing "boo" as a value, so you don't really have to retrieve the entire JSON.

LMK if I'm missing anything.

n1k0 commented 6 years ago

I missed sub-paths were possible. I suppose this is now more a data-organization issue, which is not relevant to this project technically. Thanks!