Settings

Theme

Show HN: API for CRUD-ing JSON data

github.com

4 points by tiemster 6 months ago · 5 comments · 1 min read

Reader

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 6 months ago

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

  • tiemsterOP 6 months ago

    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.

furrball010 6 months ago

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.

furrball010 6 months ago

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

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection