Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tiempie
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
Show HN: Mocking APIs by just posting jsons to endpoints
(github.com)
2 points
by
tiempie
1y ago
|
0 comments
2.
▲
by
tiempie
1y ago
Nice. So sending {"username": "tom"} to /api/test/users will create > test.json with {"users": {"username": "tom"}} ?
3.
▲
Self-hosted API for CRUD-ing JSON data (for easy data storage)
(github.com)
3 points
by
tiempie
1y ago
|
1 comments
4.
▲
by
tiempie
1y ago
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 function