Better HN
topnewbestaskshowjobs
Log inSign up

tiempie

2 karma · joined Sep 22, 2025 (1y ago) · 4 submissions

Submissions

1.

Show HN: Mocking APIs by just posting jsons to endpoints(github.com ↗)

2 points · by tiempie · 1y ago · discuss

comment 1y ago · link · parent

Nice. So sending {"username": "tom"} to /api/test/users will create > test.json with {"users": {"username": "tom"}} ?

comment 1y ago · link · parent

Note, the API is written in GO and 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. Great for personal projects!

  DELETE/PUT/GET: /api/file/key1/key2/...

4.

Self-hosted API for CRUD-ing JSON data (for easy data storage)(github.com ↗)

3 points · by tiempie · 1y ago · 1 comment