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

2 points by tiempie ↗ HN
I made a self-hosted API for crud-ing json data (initially for simple storage use cases). However, I started using to mock APIs, where I have scripts that create/edit random jsons and I make them available as API endpoints through this application.

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

0 comments

[ 1.8 ms ] story [ 11.9 ms ] thread

No comments yet.