Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: API for CRUD-ing JSON data (github.com/timokats)
4 points by tiemster 5 months ago | hide | past | favorite | 4 comments
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/...


I like this idea, you can use it to build something quickly


thanks! 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.


Maybe 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.


Nice. I like it also because SQL strings don't mix nicely with code, whereas an API like this does. Good job.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: