3 ms·
Show HN: API for CRUD-ing JSON data
For purely selfish needs, I created a self-hosted API for CRUD-ing JSON data in GO. Optimized for simplicity and interoperability. Perfect for small personal projects.
The API is based on your JSON structure. So the example below is for CRUD-ing [key1][key2] in file.json. The value (which can be anything) is then added to the body of the request. Moreover, there are helper functions for appending and incrementing values.
DELETE/PUT/GET: /api/file/key1/key2/...
- gangtao 1y agoI like this idea, you can use it to build something quickly
- tiemster 1y agothanks! That's the exact reason I made this. Just install and go. Most database software is built for a level of scale my personal projects never reach anyways, but I do get stuck with the complexity and configuration.
- ddarkterminal 1y ago[dead]
- furrball010 1y agoMaybe a small comment then, even though it's meant for quick-and-easy storage, you could look into making this more scalable if it gets traction.
- furrball010 1y agoNice. I like it also because SQL strings don't mix nicely with code, whereas an API like this does. Good job.